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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 realtime data acquisition

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dupsy 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
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000