Screenshot from the help for number of samples per channel for a Read task :
Please add an option for a continuous sample task to read all currently available samples (-1) but with a wait for a minimum number of samples (#min). Behavior of this configuration :
- #available samples >= #min : read all available samples
- #available samples < #min : wait until #min samples are available or until timeout
This would be very useful in several cases. For example :
- No extra coding to handle or avoid the error that appears if 0 sample is available.
- Avoid the use of a wait function in the loop to ensure a minimum number of samples are available.