LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous Serial Communication using Wait on Events

I have two loops running in parallel, one for Serial Tx and one for Serial Rx.  When I run just the Serial Rx loop Wait On Event works great.  It continues as soon as a character hits the serial port and generates no errors.

 

When I enable my Serial Tx loop, Wait On Event times out in the Rx loop with error code Error -1073807339 occurred at VISA Wait on Event in testSerialEvents.vi. Possible reason(s):VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.  The reason why the error happened is that the Serial Transmit loop only sent one character then waited for Wait on Events in the Rx loop to timeout.

 

The serial loop will transmit only one character at a time and wait for Wait on Events to timeout.  It seems that the Tx and Rx loop are in lock step and I want the loops to be independent of each other.  Why is the Tx loop not running independently of the Rx loop?

 

Matt
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 1 of 2
(3,483 Views)
Some more information....
 
The reason why it needs to be asynchronous is that not all command return a response.  In  my code example it needs to transmit 0x80 then 0x81 to get a response from the device under test.
 
Matt
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 2
(3,471 Views)