LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Second channel color changes when I disable first channel on waveform graph

Hi.

 

I have PXI-6230 8-analog channel ADQ.

To always have maximum sampling rate I am selecting in real-time which channel to sample.

 

Unfortunately, after switching Channel 0 off the color of the remaining plotted channels changes due to new order of plotted channels on the graph.

Channel 1, which was the second, now becomes the first and the order of the others decreases.

 

Could you share how to change that?

The color should be solid no matter on which plot number it is presented of the graph.

 

Thank you.

0 Kudos
Message 1 of 3
(2,057 Views)

Hi Mykeil,

 

you can change plot properties like colors using property nodes…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,988 Views)

When you have 3 channels (e.g. 1, 2, 3) you will have an array of 3 waveforms and they will plot with the 3 colors 1, 2, 3.

When your remove a channel from the list (let's say #2, leaving #1 and #3), you now have an array of 2 waveforms, so they will plot with colors 1 and 2.  (LabVIEW has no idea you got rid of a channel and you want to skip over that color!)

 

What you could to is always acqure all the data channels, but when you don't want channel #2, you could make that plot invisible.  Or you could replace the acquired data with an waveform consisting of NaN values.

 

 

0 Kudos
Message 3 of 3
(1,921 Views)