ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

viWrite abnormal return on retCount

Hello,
 
I having problom to locate where is the fault from
I create a small program doing looping on retrieving
"*IDN?" from an instrument.
 
sometime the retCount& variable return 0 bytes and cause time out error to my program (intermittant)
I having a hard time to find out is this GPIB card problem or driver or my program.
 
can someone help?
 
my program listing
viWrite(GPIB0::2::INSTR,"*idn?",5,retCount&)
 
 
 
0 Kudos
Message 1 of 2
(3,265 Views)

Hi,

Why are you looping and are you performing the Read to retrieve the return data from the instrument?

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,259 Views)