Author |
Topic  |
|
surfion2
S. Korea
1 Posts |
Posted - 10/08/2003 : 4:02:52 PM
|
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
|
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 |
 |
|
greg
USA
1379 Posts |
Posted - 10/15/2003 : 09:30:32 AM
|
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.
|
 |
|
|
Topic  |
|
|
|