LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing the number of data channel in wavechart.

Dear all,

During my work,I have a trouble to plot some data channels in plotting.

Some data channels could be invalidated as time goes on.
Therefore I treat the data as NaN(0 divided by 0).
In plotting the data, I would like to exclude the channel until validate.
The number of data could be changed.
How can I control the number of input to wavechart automatically?
(This mean the number of cluster(or array) element as time goes on.)

Thank you in advance.

Lee
*) I will very appreciate if you give an example code.
0 Kudos
Message 1 of 4
(2,598 Views)
One thing I've done to "hide" certain plots on my graph is to plot everything all the time but then to set the range of the y-axis to the range I want. This way, the NaN plots will not be seen and you don't have to worry about not plotting them.
0 Kudos
Message 2 of 4
(2,595 Views)
Thank you for the reply.
My problem was in multi-axis in a plot.
Hiding method is not suitable answer.
0 Kudos
Message 3 of 4
(2,591 Views)
You can monitor the data and if it is not valid you could use "array subset" to extract the valid data and only plot that. When the data is valid again....the case structure flips and there is no array subset...you take the whole thing.

Without knowing more about what you are doing, I would say the previous "hide plot" post is the easiest method.

-Brett
Message 4 of 4
(2,579 Views)