Hello,
I'm having the following problem: I am trying to communicate via serial connection to a device using VISA in LabView 6.1. I have explicitly set the following using a property node:
baud = 9600
data bits = 8
flow control, parity, ASRL End In = 0
stop bits = 10
timeout = 5000
I write commands to the instrument, and then try to read them back. It wasn't reading at all till I set the ASRL End In = 0, a fix which I found here on the message boards. Now, it reads everything, seemingly correctly, but it still returns a timeout error (-1073807339), regardless of the timeout value I use (and I've tried a lot of them).
Ordinarily, I wouldn't care that there's an error since, other than that, it does re
ad the data, except that when I do two commands in a row, if the buffer I allocate in the first VISA read is big enough for both the first command's response and second command's response, it seems to put them both in there, leaving the second VISA read empty, which is a problem. This would seem to indicate to me that the timeout error is valid, and the first read hasn't finished yet, so it's still waiting for data. That's my guess at least, but I don't know what to do about it 😞
Does anyone have any ideas?
Thanks very much!
Steve