LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does returning data from the port takes more time when the termination character is End of Text or End of Transmission?

Why does returning data from the port takes more time when the termination character is End of Text or End of Transmission?
0 Kudos
Message 1 of 4
(2,891 Views)
This could be related to the instrument that you are communicating with, some instruments have a faster way to handle the data. If the time difference is too big this could be a case that you actually get a timeout that stops the transmition if this is the case then you were using the wrong termination character. Plase post more details so that we can discuss the issue.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 4
(2,891 Views)
Hi Juan,
Thanks for your reply.PLease look into the attchement

Regards
Sonet
Download All
0 Kudos
Message 3 of 4
(2,891 Views)
Sonet,

There is a possibility that the function ComRdTerm() is timing out and returning the buffer of data the it received before timing out. watch the return value and if it is -99 the we do are getting timeout and may be a problem with the termination character. Another way that you can try is to use the function SetComTime to alter the timeout value and see if that has any effect on the second call with the delay.

One thing to watch is that the parameter for termination character in the function ComRdTerm() is an int, make sure that your istrument will return a value of 4 and not the ASCII code 4.

I hope this helps.

Regards,

Juan Carlos
0 Kudos
Message 4 of 4
(2,891 Views)