10-25-2011 09:44 AM
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.
Solved! Go to Solution.
10-27-2011 03:21 PM
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,
10-27-2011 03:41 PM
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.
10-31-2011 12:21 PM
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,