04-03-2006 12:02 AM
04-03-2006 12:47 AM
04-03-2006 02:01 AM
A little addition to Makoto good explanation.
> 2, Before getting expected number of bytes, viRead will keep reading until timeout ?
Definitely YES: viRead is a syncronous function. That is: the function will not return control to your application until one of the following occur:
- Timeout
- Received expected number of bytes, or
- Received termination character
After the function terminates you will need to test return value and if not timeout handle the received message.