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? |