Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

List box to pass test parameter to Instrument

I create a while loop.  Within the loop, I have a list box and a event structure.  Inside the event structure, I have put code to control a DC source.

I config the event structure to detect changes in list box.

When I run the program, it is always passing previous selection to the event.structure.

E.g. My list box has Voltage, Current.  When select Current, the Voltage is always passed. When select Voltage, the current is passed.

Am I doing the right thing?

Can u please recommend me the right way to pass current parameter from List box to event structure.

You may also recommend a completely different solution too 🙂

Thanks and great day
0 Kudos
Message 1 of 2
(3,634 Views)
I don't understand how you could be getting old values. The control is inside the event, isn't it? You aren't using a local variable are you? Since you didn't attach any code (and why not?), all anyone can do is speculate.
0 Kudos
Message 2 of 2
(3,631 Views)