LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable an input to build array depending on user input

Solved!
Go to solution

Hi,

 

I am using labview to run a mass spectrometer.  I have made a program to monitor up to five masses, where it sends the mass to the mass spec (DAC) and then receives the data (Analogue signal) and plots/saves, this is then repeated for the next four masses before returning to the first.

 

I have five controls on the front panel, where the user can then enter the five masses they wish to monitor.

 

My problem is how to disable some of the masses, if I only want to monitor 1,2,3 or 4 masses instead of all five.  As obviously it takes more time to complete each cycle with the more masses.  How can I disable the inputs if the user puts in zero for instance?  Or have some way to check which masses to follow.  Which will stop five voltages being sent via DAC, and send only 1,2,3 or 4 depending on what is selected?

 

I have attached my vi.

0 Kudos
Message 1 of 3
(2,325 Views)
Solution
Accepted by topic author louise85

I do not see an Event Structure in your vi. That is the easiest and best way to capture event changes and manipulate. Look up help on Event Structures and you will find lots of examples. You need the full version of LabView to have access to the Event Structure.

0 Kudos
Message 2 of 3
(2,318 Views)

Thank you, this has helped

0 Kudos
Message 3 of 3
(2,302 Views)