NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Recieve with termination character

Hi All,

 

I have developed a seqence fileto transmit data on the serial port and loop back to recieve the data on reciever of same port. I'm transmitting "Test

 Serial" (Note: I'm not transmitting "Test\\rSerial") and recieving the data with termination character "carriage return".I'm using ASCII value 13 for the carriage return,but the recieve is not terminating on carriage return.

 

It seems Teststand is not able to recognize "13" or "\r" is seen as 2 character.

I'm attaching the sequence file for your perusal.It would be great if somebody can suggest me ways to make this work.

 

Thanks in advance.

 

Regards

VDC

 

PS: IVI serial driver need to be installed.You need to select Serial driver in device driver installation

0 Kudos
Message 1 of 5
(3,604 Views)

Hi VDC,

 

Have you ever tried to enter "\x0D" instead of "\r"

see Special charcters in TS-Help

 

Greetings

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 5
(3,586 Views)

Hi j_dodek,

 

I have tried using ASCII value of carriage return i.e 13 or 0x0D,but TS is unable to interprete that as carriage return. On the NI site about the special characters "\\r" is recogized as carriage return.But the user will never transmit the data with "\\r" imbedded in his transmission text.

 

Regards

VDC

0 Kudos
Message 3 of 5
(3,582 Views)

Hi VDC,

 

I am not famous in using this driver. But is possible that there is an InitOption where you can set the termination characters ?
Have you ever recored your string (eg. TeraTerm or Ni-Spy) and watched it with a Hex-Viewer?

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 5
(3,568 Views)

HI,

 

I tried to find this dll, where is it located?

If this is using "IVI" then you could see every action in NI-Spy !

I watched you code. Another thing you could try is disabling the caching. Try Cache=0

now data shold send very time to your device by the IVI engine

 

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 5
(3,566 Views)