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 for Programming
 LabTalk Forum
 LabTalk script doesn't work from LabView
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

netta

UK
Posts

Posted - 08/17/2006 :  2:56:56 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

netta

UK
Posts

Posted - 08/18/2006 :  05:29:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks KitKit. That works perfectly!
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