LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Receive Non-ASCII characters

You can certainly send binary data through a serial port with LV, although not, as I mentioned earlier, with Xon/Xoff.  Please post your program so we can look at what you are doing.  Someone will probably be able to identify the porblem and suggest a solution.

 

Lynn

0 Kudos
Message 11 of 18
(1,579 Views)

Here's the code

0 Kudos
Message 12 of 18
(1,575 Views)

Serial Settings:End Mode for Reads

Short name: ASRL End In

Requires: Base Package

Classes: Instr, Serial Instr

Specifies the method used to terminate read operations. Valid values include: (0) None, (1) Last Bit, (2) TermChar. If the value is (2) TermChar, then the value of the property Termination Character Enable (TermChar En) is ignored. The default is (2) TermChar.

 

You need to set this property to 0


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 18
(1,561 Views)

Then you push the enter key in hyperterm. You will also generate a Carriage Return Constant<CR> or a Linefeed Constant<LF> or a combination of both them <CR>+<LF>. I am not sure which one but it is only 4 combinations to test. You will find <CR> and <LF> as constants in the string palette.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 14 of 18
(1,559 Views)

Hyper Term can be configured to not send a CR/LF.

That is how I have it configured.

 

There is no CR LF; only the 0x010 going on the transmit line.

 

 

0 Kudos
Message 15 of 18
(1,542 Views)

It is configured as 0.


If you look at the code notice that there is a != 0 comparison.

Since I am sending a 0, it is false and therfore no termination.

 

0 Kudos
Message 16 of 18
(1,541 Views)

That's the Send term on WRITE property


@jspaarg wrote:

It is configured as 0.


If you look at the code notice that there is a != 0 comparison.

Since I am sending a 0, it is false and therfore no termination.

 


 


"Should be" isn't "Is" -Jay
0 Kudos
Message 17 of 18
(1,532 Views)

Okay, I realize now that you mean that there is a read termination, but I don't see it on the palette.

 

Also, when I do normal string transfers, I do not necessarily use a CR termination character, sometimes it is a semi-colon (;) with no CR or LF.

 

I don't change the receive termination, and those still work.

 

Why would this be different?

 

0 Kudos
Message 18 of 18
(1,524 Views)