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
 LabTalk script doesn't work from LabView

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
netta Posted - 08/17/2006 : 2:56:56 PM
Origin Version (Select Help-->About Origin):
Operating System:7.5

I've got a simple test application in LabView based emtirely on the example from the Origin Reference's Section on interfacing to other Applications entitled "Appending Data to an Origin Worksheet and Plotting in Real-Time". I've prepended the example code with an OAExecute VI to just pass a simple LabTalk script command directly into Origin. The purpose of the LabTalk script is to open a worksheet, open a graph and then plot the incoming data to the graph. The script is as follows:

window -t data ORIGIN "Data1";
window -t plot Line MyData;
MyData!layer.plotxy(Data1_C,Data1_B,200);
layer -a;

When I run, I see the worksheet window opened ok, and 3 columns of data being run ito it as expected. The columns are: A(X), B(Y) and C(Y). The graph window also opens but no graph is displayed.

Now, If I run the same commands from the LabTalk Console in the Code Builder, it draws the graph successfully. Equally, if I change the columns being plotted by the layer.plotxy method to be Data1_B and Data1_A then it also works fine from both the labview application and the LabTalk Console.

What am I doing wrong?
1   L A T E S T    R E P L I E S    (Newest First)
netta Posted - 08/18/2006 : 05:29:52 AM
Many thanks KitKit. That works perfectly!

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