LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

there is some way to know when LabVIEW finished to dend data (through RS-232) ?

i need to build program in labview that read the status of ESP300 controller continuousness.
additional, i need to send data to the controller when user push O.K. button.
 
1)how i can know when labview finished to send the data   through  RS-232 cable ?
 
2)it is possible that i will read status and send data at the same time ?  
   if not what i need to do ?
 
 
 
thanks 
0 Kudos
Message 1 of 2
(2,389 Views)
you fist need to know how the controller uses serial communication, maybe you need to send a read command to get data from the controller, in that way, yo need to write data to the serial port first, then read the serial port.

You could use a sequence  to write first, and read later. But you need to put delays between the comands

Write --> Delay --> Read --> Delay

The second delay is because you will put the sequence inside a while loop.

To send data when you press a button you can use a case structure to send this data when you press the button, and the case is true. When the case is false it read fro the controller.
0 Kudos
Message 2 of 2
(2,373 Views)