Author |
Topic  |
|
dupsy
Germany
1 Posts |
Posted - 04/28/2003 : 09:37:23 AM
|
Hi, I wonder if anyone could help. I would like to get ASCII data from my spectrometer to be opened in Origin 6.1 and displayed graphically, as soon as each measurement is made (6 sec interval), in the form X-axis time(sec), Y-axis Intensity(counts/sec). The instrument software does not allow for such online monitoring of transient signals (peaks)but writes immediately into any given file(ASCII format). Thanks, dupsy |
|
Mike Buess
USA
3037 Posts |
Posted - 04/28/2003 : 12:31:35 PM
|
Hi dupsy,
You can surely do that in Origin, but the details depend somewhat on the instrument software and how you want to import and view the results. I gather from your brief description that the instrument appends one data point (X and Y value) to an existing ASCII file once every 6 sec. If that's the case then you can try this...
1> Create a blank worksheet.
2> Select column B and run Plot->Scatter (or whatever plot type you want).
3> With the empty plot window active, enter the following script in the script window.
getfilename *.*; // open file selection dialog... find your ASCII file %Z=%B%A; // %A is selected file name, %B is its path %P=%H; // plot name %W=%[%C,'_']; // wks name. Next, define the TimerProc macro... def TimerProc { win -o %W {open -w %Z}; // import ASCII file to wks lay -a; // rescale to show new data }; timer 6; // run TimerProc every 6 seconds
4> To stop, enter the following command in the script window... timer -k;
Let us know if that does essentially what you want and we'll help you refine it. If I have misinterpreted how your instrument saves the data then please elaborate.
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 04/28/2003 12:33:34 PM |
 |
|
|
Topic  |
|
|
|