LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart not responding to 'Active Y Scale' property node

Solved!
Go to solution

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:

  • Active Plot
  • Active Y Scale

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.

0 Kudos
Message 1 of 3
(2,765 Views)
Solution
Accepted by topic author Elmar123

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.

Message 2 of 3
(2,752 Views)

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.

0 Kudos
Message 3 of 3
(2,746 Views)