I have one power supply which could be controlled by GPIB, I want to use a toggle switch to turn this power supply ON and OFF in LabVIEW. The LabVIEW program basically is one while loop, in which I am doing some other DAQ tasks until I press STOP button, which will stop the while loop.
Here are what I want to implement and my questions.
1. Whenever I press toggle switch, power supply will be turned ON or OFF. What is the best/simplest way to implement this? What I did is to put a event structure in while loop, but I feel this might not be a efficient way.
2. Whenever I press STOP button, the while loop will stop, power supply will be turned off, and the toggle switch will be in OFF position. Looks like this is not possible to me since the toggle switch is a control not an indicator. Any suggestions?
Thank you very much.
Best regards,
chc