Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout expired ???

Dear Sirs:

I had set up InstrumentI/O for my instrument, but it keeps sending me error messages regarding the timeout expried.
Here is the message:
Error- 1073807339 occurred at VISA Read
possible reasons:
VISA:(HEX 0xBFFF0015) Timeout before expired operation complete.

I had set the timeout for 2000ms in InstrumentI/O, and the baud rate is 9600.
For my instrument, the spec. said it will continuously send signal to RS232 every 1.6 second.

I am attaching my VI, and please take a look.

Sincerely,
0 Kudos
Message 1 of 4
(4,047 Views)
it sends error messages every 5 or 10 mins.
I still can run the VI, but need to stop for error message.
I want to run it continuously 3 days.
0 Kudos
Message 2 of 4
(4,046 Views)
Amon,

I have not reviewed your vi. So just a guess:
If your device sends every 1.6 s, the message needs to be shorter than 0.4 s or 400 ms in order to avoid a timeout in worst case. For 9600 bauds this is about 400 bytes transmission.

I'd suggest two things:
1. Increase the VISA timeout value to at least double the transmission period, in your case to at least 3200 ms.
2. If the timeout is just 'disturbing' you and you could live well if it would not be processed - Why not just ignoring it? Compare the error value with a constant created from such an error and use another error constant (No error) instead.

HTH and
Greetings from Germany!
--
Uwe
0 Kudos
Message 3 of 4
(4,038 Views)
Thx, Lul.

I already fix the problem.
I just put a time delay into my loop, and found out the problem is the synchronization between the iteration of my while-loop and subVI.

thx for all your help,

Sincerely,
0 Kudos
Message 4 of 4
(4,009 Views)