LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to speed up while loop


@cstorey  ha scritto:

@pincpanter wrote:

I'm not really familiar with interfacing oscilloscopes, so my question may not be relevant.

How many bytes do you actually receive? 999999?

If it's less, the full VISA timeout will elapse before the VISA Read terminates. Default VISA timeouts are typically long.


That's not correct, that 999999 is just a memory buffer allocation size for the read, not a number of bytes to read.  It does not affect VISA timeout.  


VISA Read Details

This function might return less than the number of bytes requested if the function reaches the end of the buffer, reaches a termination character, or if a timeout occurs. The output error cluster indicates if a timeout has occurred.

 

Well I did not say that that number "affects VISA timeout". But reading the help better I understand - although not very clearly stated - that there is a receiving buffer size which is different from the number of bytes requested.

The help of the Set I/O Buffer Size function states "If you do not call this function, the buffer size depends on both VISA and the operating system configuration". I don't know the actual size of this buffer, but I thonk it's unlikely to be of the order of than 1 Mb. In that case the actual number of bytes received should always be much less than 999999.

 
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 11 of 11
(66 Views)