LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Serial Communication-Receive xxxx0Axxx¡±.

I used LabViews 6i. I modified example ¡°Serial Communication Examples--Serial Communication¡±.

I can not receive Hex xxxxxx0Axxxx correctly.

Please help,

Thanks

Q. Han
0 Kudos
Message 1 of 10
(2,850 Views)
What does it display and have you set the string indicator to Hex display instead of Normal?
0 Kudos
Message 2 of 10
(2,850 Views)
the received message stoped at 0A, no more reading.

Hex 0A = /n
0 Kudos
Message 3 of 10
(2,850 Views)
You need to change the termination character by using the serial configuration vi. By default it is set to hex 0A.

Brian
0 Kudos
Message 4 of 10
(2,850 Views)
Thanks.

How can I change the configuration to "without termindation character". Because, all the data is usefull, and no one know what I should get before I get it.

Han
0 Kudos
Message 5 of 10
(2,850 Views)
I usually wire a zero to it, and I've never had any messages truncated.

Brian
0 Kudos
Message 7 of 10
(2,850 Views)
See if this helps:

In the sub-vi Serial Read with Timeout.vi, modify the Instr property node to
add the property Message Based Settings:Termination Character Enable. Wire
false to Term Char En. Or add Message Based Settings:Termination Character
and change the Term Char.

"qh01132" wrote in message
news:506500000005000000922D0000-991728092000@quiq.com...
> the received message stoped at 0A, no more reading.
>
> Hex 0A = /n
0 Kudos
Message 6 of 10
(2,850 Views)
"add the property Message Based Settings:Termination Character Enable." is good solution.

Unforturnately, my labView (version 6.0) does not work, no matter whatever I write-- false or true.

I can change the Term Char. But I really need make "Termination Character Enable" work.
0 Kudos
Message 8 of 10
(2,850 Views)
You also need to set "Serial End Mode for Reads" to 0 (End none); the
default is 2 (TermChar).
Not obvious, I agree.

Jean-Pierre Drolet

"qh01132" a écrit dans le message news:
5065000000050000008B2F0000-991728092000@quiq.com...
> "add the property Message Based Settings:Termination Character
> Enable." is good solution.
>
> Unforturnately, my labView (version 6.0) does not work, no matter
> whatever I write-- false or true.
>
> I can change the Term Char. But I really need make "Termination
> Character Enable" work.


LabVIEW, C'est LabVIEW

0 Kudos
Message 9 of 10
(2,850 Views)
Jean-Pierre,

Thanks. It works.
By the way. Is any good book for these 'Not obvious' secret.

Thanks again,

Han
0 Kudos
Message 10 of 10
(2,850 Views)