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.
Below is a link to a KnowledgeBase article that goes over how to use stacked plots in LabVIEW.
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.
I hope this information helps!
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)?
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.
I looked around for an example of how to do this programmatically, and I think this community example may be helpful.