LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and write data "simultaneously" from serial port

Solved!
Go to solution

Hi!

I am interfacing a labview program with a microcontroller using RS-232. My test VI is supposed to read from the MCU continuously and send commands back to the mcu when needed. I am new to the parallel loop concept in labview so I am probably doing something wrong. The attached VI works as intended except the reading process stops while the write function is waiting for CTS from the MCU (or timeout if it never happens). I tried to solve the problem by using the VISA serial cts event function, but that only caused the serial port to never send anything.



Another thing, if I do not connect anything to the usb-rs232 cable, then toggling the TX loop a couple of times causes Windows to crash (blue screen). I looked at the dump and the prolific PL2303 (USB serial chip) driver caused the crash. If I simulate the conditions in a terminal program nothing happens…



I am running Labview 8.5 on Win7 64bit using the newest VISA drivers.



Kristoffer

0 Kudos
Message 1 of 2
(3,663 Views)
Solution
Accepted by topic author koff1

The solution was simple. I had forgot about the property nodes... Just another case stucture enabled by cts active.

 

Kristoffer 

Message 2 of 2
(3,654 Views)