10-10-2014 04:17 AM
Hi all,
my problem is that i'm trying to send "commande" to device via rs232 using a vi that configure write and read on the module NI 9780.
the code should run countinously while i'm changing "the sent strings to the device" , and receive corresponding outpout string from the device.
now i'm able to send command to the instrument and receive its outpout once '1 run on the vi),
the problem is also that sometimes it works sometimes it not.
I'm thinking ininserting the read vi in a while loop.
your help is welcom,
SASA
10-10-2014 05:15 AM
Yes, if the Write is outside of a loop then it will only execute once so only the first string in the field will work. If the serial protocol for the device is based on sending a message and receiving a response then the response will only be sent once.