06-15-2011 10:57 AM
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.
Solved! Go to Solution.
06-15-2011 11:23 AM
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.
06-16-2011 03:54 AM
Thank you, this has helped