LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send more than one command at the same time to write buffer in VISA READ?

Hi,
I'm using the LABVIEW->serial.VI with a small modification for my serial communication with a shutter control unit.At present,I can send one command CTSO1 to the write buffer.My instrument can read upto 5 commands.I want to send CTSO1 and CTSO2 simulatenouly so that i could open two shutters simulatenously.Note that commands have carraige return constants as terminatting characters.I'm enclsoing the VI which works for one command.
Any help in this regard is greatly appreciated!
Regards,
Rajesh
0 Kudos
Message 1 of 3
(2,718 Views)
Just concatenate all the command strings with the carriage returns before sending the string to the Write function. For example: "CTSO1"&""&"CTSO2"&

where & represents the concatenate operation and is a carriage return character.

Lynn
0 Kudos
Message 2 of 3
(2,718 Views)
You cannot do two different simultaneous VISA writes over a serial bus. There is a single rx line on the pc's com port and a single rx line on the instrument. You only hope is if the instrument allows you to chain commands and the reception of the carriage return triggers the instrument to implement both at the same time. Maybe you can send CTS01 and CTS02 separated by a space or comma. The manual should tell you if that's possible or maybe you need to ask the manufacturer.
0 Kudos
Message 3 of 3
(2,718 Views)