LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically add input to bundle for charting

Solved!
Go to solution

Hello,

 

I am trying to programmatically add or remove an input from a bundle that is providing data to a chart. In this case, I would like to add Slide 3 to the chart programmatically. I was expecting to be able to somehow use a property node, but that doesn't seem to be available. Is there a way to change the number of bundle elements programmatically? Or another way to send data to a chart that can be changed programmatically?

 

HobieTcat_0-1694988941149.png

 

0 Kudos
Message 1 of 5
(890 Views)
Solution
Accepted by topic author HobieTcat

Bundle all and replace the ones you want to hide with NaN, or just use the visibility checkbox.

Message 2 of 5
(865 Views)

b.png

 

Note: You can also feed a 2D array of doubles to a Waveform Chart.

Each column is a different plot; rows correspond to x-values

0 Kudos
Message 3 of 5
(859 Views)

@altenbach wrote:

Bundle all and replace the ones you want to hide with NaN, or just use the visibility checkbox.


The two choices are not entirely equivalent, because the visibility property will hide the entire trace while the NaN can be used to create temporary "gaps", e.g. as follows.

 

altenbach_0-1695048119602.png

 

Message 4 of 5
(780 Views)

Thanks for the clarification on using NaN. I used the visibility checkbox and it worked the way I wanted, so I went with that as the Accepted Solution.

Knowing it was available was the biggest challenge for me.

 

0 Kudos
Message 5 of 5
(763 Views)