LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why won't controls disable dynamically in Labview 6.1?

I am writing a program that interfaces with an HP/Agilent 4194s Impedance Analyzer through a GPIB interface. In the interface to the program, I have two options for selecting a frequency range. One is a start-stop option, the other is a Fy-Fz option. Only one option may be used at a given time, so I have the toggle switch set to gray out/disable one pair or the other.
The problem is that switching the toggle only affects the disable as the run button is pressed. After the program starts running, switching the toggle has no effect on which controls are disabled. Is there a way around this issue? I've tried setting the controls to syncronous, but it has no effect. Thanks
0 Kudos
Message 1 of 3
(2,646 Views)
Your switch must be in the main loop, in code that actually executes. Detect when the switch has changed state (e.g. with an event structure) and write the property whenever this happens. Think dataflow! 🙂

Please attach a simplified example if you continue to have problems. Thanks!

Message Edited by altenbach on 06-23-2005 12:09 PM

Message 2 of 3
(2,640 Views)
It sounds like you might have your Boolean outside the while loop. If you want to keep reading the value of any control, it has to be inside the loop. If you have 6.1 or higher, you should be using the event structure to enable/disable the controls. Post your code or an image of it (no bmp files please) if that's not the problem.
Message 3 of 3
(2,633 Views)