Dear Mads;
I have put the Bytes at port inside the while loop, and
surprise!!!it works, but in one vi it works properly, and in another
vi it doesn=B4t work, and the programm is similar, so I am thinking that
it depends on the command that I sent.So, I will see if I can find a
solution!!
Thank
You write your command to the port, then immediately check the bytes
at port and read those. Now since the time delay between these two
operations are 0 no bytes have yet arrived at the port and so the read
function is asked to read 0 bytes...
If you know how many bytes the reply will consist of
The default VISA timeout if you just open the port yourself is 2
seconds. (This is a fairly standard VISA default regardless of the
type of VISA resource you open.) We set it to 10 seconds by default
if you use VISA Configure Serial Port VI, since most users will need
slightly longer timeouts