LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send new value if original value is changed

Hey there,

 

I have programmed a sequence that sends commands to a power supply using VISA write to change the voltage. Every step in the sequence (for example 10 minutes at 100 V -> 5 minutes at 150 V -> ...) is represented by a case in a case structure. I want the user to be able to change the voltage during the run (to compensate small variations for example). How would I go about "send the programmed value, but as soon as the voltage control is changed by the user, send the new value"? I could use an event structure with "value change" as condition, but how then would I send the original value?

 

Have a nice day.

0 Kudos
Message 1 of 4
(2,733 Views)

@Leukocyte wrote:

Hey there,

 

I have programmed a sequence that sends commands to a power supply using VISA write to change the voltage. Every step in the sequence (for example 10 minutes at 100 V -> 5 minutes at 150 V -> ...) is represented by a case in a case structure. I want the user to be able to change the voltage during the run (to compensate small variations for example). How would I go about "send the programmed value, but as soon as the voltage control is changed by the user, send the new value"? I could use an event structure with "value change" as condition, but how then would I send the original value?

 

Have a nice day.


Duplicate post of http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Control-Consort-EV232-power-supply-via-RS-232...

 

0 Kudos
Message 2 of 4
(2,722 Views)

Sorry, my bad. I thought the question was too off-topic since the original thread was posted in the hardware/instrument control section and the question is more about general Labview logic. Please delete this thread.

0 Kudos
Message 3 of 4
(2,689 Views)

When someone posts multiple times about the same problem to the same board it can be thought of as a chastisement; being that it's in another board you can think of it more as a redirection.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(2,676 Views)