05-12-2008 10:09 AM
Ravens Fan wrote:Instead of using a wait statement and reading the bytes at port and only reading that many, it would be better to get rid of the wait, read a sufficiently large number of bytes into the VISA Read statement and let the termination character of carriage return be what returns the data from the VISA read function.
05-12-2008 10:25 AM
05-12-2008 10:26 AM
Have you tried a low wait time, such as 2 to 5 ms?
Sorry.. I didn't read the entire thread, but I did find that on some instruments, small wait time is needed between the write and read transactions. Some as high as 10 ms.
For some instruments that are slow to respond (1990's vintage), I typically prepare a reading loop which stores everything in a shift register until I finished reading the serial transaction. Then pass the values for processing. If it is continuously running, I then use the producer - consumer loops and feed the consumer loop at intervals though a Queue.
RayR
05-13-2008 12:09 PM
01-14-2019 04:39 AM
Hello,
I have the same issue. Can you tell me how did you fixe your program please?
01-14-2019 05:34 AM
Hi sam,
you have the same problem with the very same hardware and software like someone 11 years ago?
(Do you really expect answers from "you" after that long time?)
It would be helpful if you create your own thread with explaining the exact problem!
01-15-2019 09:23 AM
Hello GredW,
Thank you for your message. I created my own thread. it will be a please if you can take a look.
https://forums.ni.com/t5/LabVIEW/Multi-signals-acquisition-from-the-same-serial-port/td-p/3882310
Thank you.
Best regards.