Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI Version 3.2.1 - Does this version contain ugpib.h file

Solved!
Go to solution

I am trying to add error checking into my driver.

I've included the ugpib.h header.

ibeos(handler, 0x140a)

if(ibsta & ERR) GpibError("ibeos Error");

else

....

 

I can't seem to find this file in the installed version of this NI.

0 Kudos
Message 1 of 4
(3,014 Views)

Hi sle2011,

 

When you say you are adding error checking to your driver, what driver is it? is it a driver that you are writing?

Also you said you are using NI Version 3.2.1, that´s the version of what? Is it NI-488.2? I´m assuming that you are trying to get the ugpib.h file from one of our (NI) drivers to use it in you driver, is this the case?

 

Regards,

 

 

Jorge
Applications Engineer
National Instruments
________________________________________
Certified LabVIEW Associate Developer (CLAD)
0 Kudos
Message 2 of 4
(2,999 Views)

Sorry for the vague message.  Yes it is for th NI-488.2.  I am modifying it for the DC Power Supply Driver.

The current code is as follow:

ibwrt(dcp_handle, tmp, strlen (tmp));
Delay(0.2);
ibrd(dcp_handle, cBuf, 49);

 

I was hopping to check the read to make sure that it does/does not return a 0.

0 Kudos
Message 3 of 4
(2,997 Views)
Solution
Accepted by topic author sle2011

Hello sle2011,

 

I haven´t found any information about a ugpib.h file, so I´m wondering, did you mean gpib.h? If so, gpib.h is located in C:\Program Files\National Instruments\CVI2010\include.

 

Please notice that National Instruments do not support modifications to our drivers, so the driver won´t be supported once it has been modified.

 

Also, we recommend error handling as something that is done in the code, not modified in the actual driver code.

 

Regards,

 

Jorge
Applications Engineer
National Instruments
________________________________________
Certified LabVIEW Associate Developer (CLAD)
0 Kudos
Message 4 of 4
(2,987 Views)