LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Not Detecting Spade charactor in CVI

We are in the process of automating safety testing . The safety tester we have is RS232 comunication .The prompt it returns is "spade". When we tries to use spade charactor in CVI it shows no UI indentifier .We also tried difining the ASCI value that is 6 (decimal) but not working.
Pl find the syntax bellow for reading the reasult from the RS232 with terminate charector "spade"
rc = ComRdTerm (com_port, result, iobufsz,TermChar);
The "result" is always showing Zero. If we send the command through Hyperterminal it retuns the string .
Pl help me the solution for this
0 Kudos
Message 1 of 2
(2,791 Views)
What is the string that HyperTerm sees but your CVI app doesn't? Is it just the spade?
Here's something from the help for ComRdTerm: "If the read terminates on the termination byte, ComRdTerm neither writes the byte to the buffer nor includes it in count.". If you use spade as the termination character, your app will never see it.
If you need to see the spade in your app, consider using ComRd() or ComRdByte() instead of ComRdTerm.
0 Kudos
Message 2 of 2
(2,791 Views)