LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial termination char is not work

In my serial communication ,the termination char is not work ,when the serial receive '0',it will stop receive other words,so i set the termination char to '0x30',and enable termination char to TRUE,but when i transmit "14023",the receive is ''14023' too,not "140".if someone know the reason,please tell me ,thank you.

0 Kudos
Message 1 of 9
(3,154 Views)

Please post your VI or some cutout showing the problem, there's too little information for me (and others) to help.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 9
(3,148 Views)

Hello,xiaojing.If you wanna use customized termination char, you could set it in Property Node of VISA. By default, the Termination char is \n or \r. See the attachment for details.

0 Kudos
Message 3 of 9
(3,134 Views)

thank you

0 Kudos
Message 4 of 9
(3,078 Views)

What do you want your termination character to be?

You set it for 0x30.  Hex 30 is the ASCII character zero "0".  So of course it is going to terminate on the zero if you are sending it the characters "14023".

0 Kudos
Message 5 of 9
(3,069 Views)

You have wired "Read # characters" on the read Visa, i dont remember if that overrides the termchar property or not, but it might.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 9
(3,043 Views)

it could override the termination chars by Read Proverty Node.

 

And also termination chars could be set in "VISA Configure Serial Port.vi"

0 Kudos
Message 7 of 9
(3,041 Views)

thanks,all people,i have resolved this problem.

0 Kudos
Message 8 of 9
(3,032 Views)

Please mark the solving post as Accepted solution.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 9
(3,021 Views)