07-19-2019 12:58 PM - edited 07-19-2019 01:08 PM
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.
07-19-2019 02:37 PM
07-20-2019 11:09 PM
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.