Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending ibonl in LabVIEW

Hi,

 

Background

I have a test system which is experiencing some problems with the VISA or GPIB communication.

The main exe-file dynamically loads and runs VIs to do the measurements, i.e all the HW communication is made from those VIs and NOT from the exe-file.

The measurements takes about 30 min and is executed once/day.

Sometimes there are communcation problem with the hardware when the program has been idling for a full day.

I use both NI VISA and NI488.2 drivers.

 

 

Problem

The NI488.2 driver does not (what I know of) have a function for sending the ibonl command, and I have seen that this is sent when the exe-file closes, and not the dynamically loaded VIs. Since the exe-file is not closed in between the measurements, the device handle becomes invalid and program crashes/hangs.

 

I've tried to using the gpib-32.dll for sending the ibonl command, but without success, does anyone know how to do that? Or better yet, have a wrapper for the DLL in LabVIEW?

 

 

/Andreas

 

 

0 Kudos
Message 1 of 2
(2,898 Views)

Hi Andreas,

 

Did you call ibfindA/ibfindW to get a device descriptor before calling ibonl. Didn't have any hardware to test with but here is a example.

 

Best regards

Klas

0 Kudos
Message 2 of 2
(2,886 Views)