Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB EHDL(23) Err undefined

I am attempting to interface a GPIB device using the the GPIB-32.dll and the Interactive Control. I have sucessfully used several commands to interface w/ the board. However, I am attempting to make writes and reads to this board, but it is my understanding that before I can do this, I must command the device to respond, by giving it a command of ibcmd(ud, "*idn?");
However, this command responds w/ an EHDL(23) error, which is not defined in any of my documentation.
I have found this article, http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/a0c734e48762e8c686256ba3005ab464?OpenDocument, however, it does not provide a solution for me as I am already on Windows 2000.
I have also found this error on a few other commands.
0 Kudos
Message 1 of 2
(3,893 Views)
There are three types of calls to use when using the NI-488.2 API: board-level calls, device-level calls, and 488.2 style calls. It appears that you are trying to use device-level calls. ibcmd is a function used primarily to address the GPIB, and is a board-level call. When using device-level calls, the driver will address the bus for you, and you may simply use ibwrt and ibrd.

I believe what you're looking to do in this scenario is use ibwrt(ud, "*idn?");
You may then follow that with ibrd(ud, buf, bufsize);

I hope that this helps clarify the situation for you.

0 Kudos
Message 2 of 2
(3,893 Views)