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,530 Views)

It does not work Dennis.

0 Kudos
Message 12 of 32
(3,524 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,519 Views)
What did you set the eos byte to?
0 Kudos
Message 14 of 32
(3,511 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,500 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,490 Views)

Hi,

 

Try using

 

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

 

Curt

0 Kudos
Message 17 of 32
(3,484 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,483 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,466 Views)

Hi,

 

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

 

Curt

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