LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crio serial communication

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

 

0 Kudos
Message 1 of 2
(2,458 Views)

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.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 2
(2,446 Views)