03-11-2009 07:53 AM
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
03-12-2009 01:52 AM
03-12-2009 02:12 AM
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
03-12-2009 07:26 AM
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
03-12-2009 07:38 AM
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