LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to have the cluster size change automatically using the "Array to Cluster" Function?

I am trying to plot several different sensor readings using a Waveform Chart. The readings come from a multiplexor which steps through the different addresses inside a loop. The sensor values leave the loop as an array of numbers, and the input to the waveform chart needs to be in cluster form as I understand it. I'm currently using an array to cluster function to convert the array to the right format, but the size of the cluster must be set from the diagram each time the number of different readings that I want to plot changes. For example, if I change the number of readings that the multiplexer is currently checking from 3 to 4, the plot only shows the first three u
ntil I go into the diagram, pop up on the array to cluster function, then change the size to four. I can handle this myself, but my boss seems to think this is a hassle if he decides to change something when I'm not around.

The rest of the program is set up to adjust to a different number of sensors that need to be read automatically. Is there a better way to go about creating this plot of multiple signals that will automatically change with the number of signals I am monitoring?
0 Kudos
Message 1 of 3
(2,671 Views)
You can use an array of waveforms to do what I think you want.

The WF datatype was hard for me to get my head around at first but I end up using them frequently now.

See attached.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,671 Views)
Re-reading your post I just realized that I did not answer your question.

No,

there is no way to change that at run time.

See my other answer for an approach that may work for you.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,671 Views)