07-14-2009 05:37 AM
Hiii
I am having 1 doubt in visa we knows bytes at port by using the property node...
but for TCP/IP how should i get bytes at port .... i want to read how many bytes are available in that port.....
can any 1 suggest answer......
07-14-2009 05:58 AM
Would you please explain why you need this?
I always use TCP Read instead of VISA Read for TCP/IP communications. If you send a package, you can first send the length of the package and then the package itself. If you read you read first 2 or 4 bytes, where the length of following package is, and than the whole package.
It works fine.
07-14-2009 09:27 AM
I can see why knowing how many bytes are available would be quite useful. Would prevent having to do what you're suggesting (which is the typical solution), or to have a Read with a really short timeout and a software buffer (and ignoring the expected timeout from the read).
Alas, it's not possible.