isabella.li@mot.com (Isabella) writes:
> Hello,
>
> My application contains VISA serial port read with termination char of
> . The VISA read reused the Labview example "Labview <-> Serial".
> If I add delay in the "waits for bytes to arrive" loop, it can read
> more chars but still not stop at .
>
> But if I copy this part and test outside the application, it works
> very well.
>
> Can you please help me out with this? Thanks.
>
> Isabella
Isabella,
You can use the VISA featue I like most:
Just try to read a lot more bytes from "VISA read" than your device
will ever send. The function will stop after reading the and
deliver the message read so far.
You'll have to ensure that the VISA properties for term char etc. are
set. But AFAIR they
are default.
HTHm
Johannes Niess