01-14-2019 09:41 AM
I am running into a problem with using the Waveform Chart in LabVIEW 17.0 (32bit). My chart has a left and a right Y axis. I would like to programmatically assign my plots (8 analog waveforms from DAQmx) to either one of two axis.
I have created the following two property nodes with the waveform chart as reference:
When I set ActPlot to one of my 8 plots (between 0 and 7), and ActYScl to 0 or 1 (corresponding to the index of the left or right Y axis) the axis assignment of the plot does not change. Manually changing the axis by right clicking on the plot > Y Scale > Axisname works as expected. The waveform chart does respond to the 'History' property node. I have included a demo VI which replicates this problem.
Solved! Go to Solution.
01-14-2019 10:07 AM - edited 01-14-2019 10:09 AM
You should be using Plot.Y Scale Index, not Active Y Scale.
Active Y scale is used to pick a Y scale and change the properties for it.
You should probably put that node in a case structure so that they don't execute all the time. Also, since you can only change one control at a time, you wind up changing the scale of the existing control, or the plot to the existing scale, undoing whatever changes you already made for that scale or plot.
01-14-2019 10:14 AM
That solved my problem, thank you!
I will make sure to put it in a case structure, I only need it to activate once before starting the measurements.