LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview stop sending termination char

Hello. In my project I communicate with a custom board through rs232 cable. Sometimes after my command (for example a read command) I receive strange characters " {u}w_mo.uw{ ". I checked the data transmitted and it seems that the termination character (LF) has not been sent anymore. Why could it stop to send it?

Thank you

0 Kudos
Message 1 of 5
(165 Views)

I have seen this occur several times over the years.  It has led me to attach the termination character into the string I send to the device rather than depending on the settings.

I.E. "*IDN?" now becomes "*IDN?\n"

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 5
(127 Views)

You don't provide any information to answer your question.  First of all, LabVIEW (meaning the LabVIEW program running on your computer) doesn't stop sending the (unspecified) termination character -- rather the unknown "custom board" appears to not (yet) have sent it.  You provide no code for us to examine, no description of the custom board, nothing about the computer, OS, LabVIEW version, etc.  Maybe your remote device just isn't working ...

 

Bob Schor

0 Kudos
Message 3 of 5
(124 Views)

@Bob_Schor wrote:

no description of the custom board


This is probably the biggest one to me. The few times I have seen random characters like that are when there is a massive noise source (ex high voltage power supply), the serial port gets powered off (inadequate power supply, Windows randomly turns off the port), or the baud rate for one of the devices gets updated. This could potentially also happen from the port getting closed during transmission.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(100 Views)

I discovered that was the port closed.

Message 5 of 5
(75 Views)