From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ReadString() get time limit exceed to complete operation error

Try setting terminate read on eos. The instrument does not appear to be compliant with IEEE-488.2 where it sends eoi.
0 Kudos
Message 11 of 32
(3,507 Views)

It does not work Dennis.

0 Kudos
Message 12 of 32
(3,501 Views)

Hi,

 

Try using a byte count with the readstring command

 

device.ReadString(1024); 

 

 

try different count values

 

Also,

 

Try changing the bus timing setting to 2usec or 500nsec.

 

Curt

0 Kudos
Message 13 of 32
(3,496 Views)
What did you set the eos byte to?
0 Kudos
Message 14 of 32
(3,488 Views)

@Curt_C. I have tried to ReadString(1024); ReadString(256) and also change bus timing to 2us; 500ns. No go.

@Dennis. I don't know which value of EOS byte is correct. I have tried with 0; 1; 13. Still error.

 

Any new idea?

 

Many thanks

Thang

0 Kudos
Message 15 of 32
(3,477 Views)
It should be the same as your write termination. Try 10. You are reading some actual data it seems.
0 Kudos
Message 16 of 32
(3,467 Views)

Hi,

 

Try using

 

device.ReadByteArray(1024);  //or some other value

 

Curt

0 Kudos
Message 17 of 32
(3,461 Views)
It's actually kind of silly to not be doing the debug in MAX. Do a write and a read and show the results.
0 Kudos
Message 18 of 32
(3,460 Views)

@Dennis: Tried 10 for EOS byte. No go. The device does not show in NI MAX.
@Curt_C: Tried device.ReadByteArray(1024); // and 256 -> still error.

Any new idea?

Thanks and kind regards,
Thang

0 Kudos
Message 19 of 32
(3,443 Views)

Hi,

 

There's something wrong with your meter. Does it have an rs232 port?

 

Curt

0 Kudos
Message 20 of 32
(3,434 Views)