10-20-2014 11:39 AM
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.
10-21-2014 03:15 PM
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!
10-21-2014 04:27 PM
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)?
10-22-2014 02:37 AM
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.
10-22-2014 11:16 AM
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