Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

control valve with rs232

Hi everybody,I try to command the control valve opening percentage by passing port rs232. Firt I order with "servosetup".Second I set up percentage at

 

maximum time by pressing the shift and + lump.Third I set up percentage at minimum time by pressing the - lump .Finally I command to open valve with the

 

order (set follow percentage 3 points such as set050 is open 50 percentage).I want to order by typing percentage to open valve,but I don't know the method

 

to communicate with port.Anybody to help me ? I attach file to solution please.Thanks a lot.  

0 Kudos
Message 1 of 2
(3,087 Views)

Hello ktu,

 

All of these writes to your device will be through the VISA Write and if you read anything back will be done with the VISA Read.  To write the commands to your device, you will want to use the VISA calls within the loop with the event structure.  Alternatively you could also use the setup that you have in the first loop where you only send your writes when you toggle that boolean.  Hope this helps!

ColeR
Field Engineer
0 Kudos
Message 2 of 2
(3,062 Views)