The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Can import use my own binary-to-ascii conversion?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

surfion2

S. Korea
1 Posts

Posted - 10/08/2003 :  4:02:52 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have binary datafiles (*.ms files), produced by some odd
experimental machine. I myself have written a program that
converts such binary files to common X/Y ascii datafiles.

Now I do understand that I can convert all binaries manually
to ascii and then import that into Origin :).
However, I want a more elegant way.
So here's my question:

Is there a way to teach Origin, when I select a binary (*.ms) file
for import, that Origin will automagically convert it first to
ascii, using my program and then import the generated ascii data?

If not, is there then another trick, to let me select the binary
files, and have Origin use my program to generate the corresponding
ascii data for import.

The version of Origin currently available to me is 6.

Thanks.

Rob.

Edited by - surfion2 on 10/08/2003 4:06:26 PM

Mike Buess

USA
3037 Posts

Posted - 10/08/2003 :  4:58:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Rob,

If you have OriginPro 6 you can use the file utility module (FUM) to import binary data directly. If not, you can launch your conversion program with LabTalk's run command...

run -e "path\program.exe";

You may run into problems supplying the data file name to your program as an argument. Another thing to watch out for if you choose this approach is that once Origin launches your program it will not wait around for the outcome. It will continue with the next command immediately whether the conversion is done or not.

Mike Buess
Origin WebRing Member
Go to Top of Page

greg

USA
1379 Posts

Posted - 10/15/2003 :  09:30:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you have Origin 7, then you can port your code to our OriginC to import directly to a worksheet. This is what we did for WAV, JNB, and other import routines. With some additional work, you can even support drag-and-drop from Explorer into Origin.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000