LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Serial Port 6.1

Hi,
I use Bytes At Serial Port and Serial Port Read VIs from Serial Compatibility to read strings. In some cases if there are few strings at the port at the same time part of some of them is missing. Increasing the delay in Wait Until Next Multiple VI helps but still is hard to define is this the decision. Any suggestions?
Thanks.
0 Kudos
Message 1 of 4
(2,807 Views)
Is the problem that you sometimes don't read multiple lines of text? If that's the case, check your VISA Configure Serial Port and see if the Enable Termination Char input is true. If it is, the serial read will end whenever the termination character is detected and the default term character is x0A or the Linefeed character. The solution is to set Enable Term Char to false.
Message 2 of 4
(2,807 Views)
I do not use VISA tools, just simple Read Serial Port
0 Kudos
Message 3 of 4
(2,807 Views)
First, I'd recommend that you try using VISA for serial I/O. It's more robust.

It sounds like you might just be having problems with hardware flow control. Do you have it enabled on your instrument? If not, I would try enabling it, and enabling it with VISA in your application.

If you are getting messages that are terminated by end-of-line characters (or some other message that's not part of the data), then I would investigate the solution that Dennis recommended.

I hope this helps.

Brian
0 Kudos
Message 4 of 4
(2,807 Views)