T O P I C R E V I E W |
jdwatson |
Posted - 03/15/2013 : 09:38:11 AM Origin Ver. and Service Release (Select Help-->About Origin): 8.0.63.988 SR6 Operating System: Win7
Hi everyone,
I'm trying to figure out how to plot data I collect in Labview to graphs in Origin. My real program collects 5 columns of data and sends it to a new workbook in Origin. My problem is with plotting columns to separate layers. I attached a picture of my simplified VI of the plotting portion of my code as well as a link to the labview forum where I posted the VI. I want to plot column B to layer one in the graph and plot column C to layer two in the graph. If I just use a single property node for the layer, I can plot either column to either layer. However, when I use the second property node it appears to put re-assign column B to layer 2 along with column C. Does anyone have experience with controlling Origin from Labview? Origin's documentation on more advanced stuff like this is pretty minimal. Thanks!
http://forums.ni.com/t5/LabVIEW/plot-to-different-layers-in-Origin/td-p/2351682 |
2 L A T E S T R E P L I E S (Newest First) |
easwar |
Posted - 03/19/2013 : 10:19:50 AM Hi John,
Another approach is to create an Origin project with the desired workbook/worksheet and graphs (and even analysis) all setup as desired, and then use such an OPJ as a "template" in your VI.
So in your case you could create an OPJ with a sheet with 5 columns of data, create the graph manually, set the graph axes to auto scale, then clear the worksheet data (menu: worksheet->clear worksheet), and save this "empty" project as a template. From your LabVIEW VI, you can then just open this OPJ and push data into the worksheet, and the graph will automatically update.
We have several examples of using either a project or a workbook as template, in the \Samples\Automation Sever\LabVIEW subfolder.
Easwar OriginLab |
Cecilia_syy |
Posted - 03/19/2013 : 06:15:54 AM Hi, You should get the GraphPage from OA_NewEmptyGraph, not GraphLayer. Wire the Origin.GraphPage of OA_NewEmptyGraph VI to the Property Node Graph Page. Wire the Layers to Method Item, and set the Index. Use a Variant to Data SubVI to convert the output of Item to get the Layer. You can see this VI for example by assuming [Book1]Sheet1 contains your data:
Cecilia Originlab Corp. |
|
|