LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB vi created with Instrument I/O assistant not timing out

Dennis,

I have a similar problem, when I looked at the generated code from the Instrument I/O Assistant. The Loop for the ID? check looped for ever because it didn't account for an error condition, such as a timeout. I'm using LabVIEW 7.1 but I noticed that the Instrument I/O Assistant is only at 1.0.1.

Maybe there is an inherit problem with the Instrument I/O Assistant?

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 11 of 14
(691 Views)

Ray,

I typically don't use the I/O Assistant and I don't even know how to check which version I have. The one have I generated code like shown below for a *IDN? query. The loop keeps running as long as the error code is x3FFF0006 which means more data might be in the buffer. For all other error codes, the loop should terminate.

Message Edited by Dennis Knutson on 05-02-2007 08:53 AM

0 Kudos
Message 12 of 14
(684 Views)

Dennis,

That's the sort of code I expected to see. So I not sure what's going on, I'll dig a bit deeper.

Likewise, its not something I haven't used much.

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 13 of 14
(671 Views)
Hi,
 
I think I know whats going on.
The Instrument I/O Assistant was set with GPIB Code Generation and for the Query and Parse, this exits the loop on the condition of END or ERR.
Unfortunately, if there is another instruction before the Query and Parse, such as a Write. Then If this were to generate an error, such as the wrong instrument address or the instrument not switched on. Then the error is fed to the input of the GPIB Read function (Query and Parse). As a result the Status array from the GPIB Read is empty and therefore the Loop never exits because element 13 or 15 will never be TRUE. There needs to be an check of Error Out or check that Status isn't empty. This needs to be changed to the Instrument I/O Assistant software.
 
I have switched to VISA Generation Code.
 
Hope this is of help to anyone.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 14 of 14
(665 Views)