LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of different (digital and analog) values into multigraph

Hello everyone,

So I have an array with a timestamp on the first column, either "off" or "on" string on the second column, and a number value string on another. The columns are based of variables that reads data based on an update rate. My question is, what is the easiest way to separate these values into a digital and analog graphs. This is because the number values are so high that the "off" and "on" signal is being pushed down as the y-axis auto-scales. I'm hoping that I can use a multigraph, but the multigraph puts the data in one graph (since it's one array). 

 

Any suggestions or help is appreciated.

0 Kudos
Message 1 of 5
(2,562 Views)

Hi jachy25, 

Below is a link to a KnowledgeBase article that goes over how to use stacked plots in LabVIEW.

http://digital.ni.com/public.nsf/allkb/21E8163F259DA2058625703B007511AA

 

The second link contains a lot of general information on configuring graphs and charts in LabVIEW, and is a useful document to have when configuring plots.

http://zone.ni.com/reference/en-XX/help/371361L-01/lvconcepts/customizing_graphs_and_charts/

 

I hope this information helps!

Regards,
Kelly B.

National Instruments
0 Kudos
Message 2 of 5
(2,514 Views)

the_red_baroness,

Thank you for the reply. The stacked plots is exactly what I'm looking for. However, is there any way to do this programmaticaly so it will stack in real-time (when the VI is running)?

 

0 Kudos
Message 3 of 5
(2,504 Views)

I've got two solutions:

 

- Mixed signal graphs. I haven't found many users here that use these particularly well and/or understand them, however.

 

- Multiple axes on a single waveform graph / chart. Right click on your Y axis, select duplicate scale - voila, another scale with independent properties, plotted against the same X axis. You can assign plots to different scales either via the right click menu (Properties > Plots > Y-scale) or programmatically via the Plot > Y-scale index property or similar. This way, you could convert your on or off strings to 0/1s and plot on a separate scale to your data. For a digital signal, you'll probably want to change the interpolation style of the plot in question.

---
CLA
0 Kudos
Message 4 of 5
(2,485 Views)

Hi jachy25, 

I looked around for an example of how to do this programmatically, and I think this community example may be helpful.

https://decibel.ni.com/content/docs/DOC-15294

Regards,
Kelly B.

National Instruments
0 Kudos
Message 5 of 5
(2,464 Views)