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,144 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,138 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,124 Views)

thank you

0 Kudos
Message 4 of 9
(3,068 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,059 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,033 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,031 Views)

thanks,all people,i have resolved this problem.

0 Kudos
Message 8 of 9
(3,022 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,011 Views)