I am writing a program that interfaces with an HP/Agilent 4194a 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 original problem was 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. After implementing some advice, I'm still having a problem. When using an event handler, it only works once before crashing. The loop implementation doesn't work either. Below I've attached a link to a jpg of the part of the program in question. It includes both non-working solutions.
click herePlease let me know if you have any ideas. Thanks.
Message Edited by cheese on 06-24-2005 12:18 PM