Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT! How to connect to a GPIB instrument?

We have the GPIB ENET-100. We've purchease the source code from NI and have successfully port it to VxWorks.

However, the function ibdev() was not included in the source code we received and the tutorials and sample codes uses this functions to attach to an instrument that is connected to the GPIB.

Does anyone have the source code for the ibdev() function? OR know the sequence of functions calls to connect to the instrument and be able to send commands to it.

We know that the ibdev() function uses the following functions: ibfind(), ibconfig(), ibrd(), ibwrt(), ibcmd(), ibrsp(), ibrpp(), ibsic(), ibonl(), ibwait()...and we have them. But, we don't know how to call these functions to attach to the instrument.

Any
help would be very much appreciated.

Thanks in advance.

Keo

PS. NI support has not be able to help us. We can't understand why NI support don't know the answer to this.
0 Kudos
Message 1 of 2
(3,145 Views)
Hello-

The source code for the ENET in VxWorks does not implement device-level calls. It is possible to write the code to do this yourself, or simply use the ibcmd function to send the appriopriate multi-line messages through GPIB. Appendix C of the TNT4882 manual (http://www.ni.com/pdf/manuals/320724.pdf) provides more detail about these messages.

Randy Solomonson
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,145 Views)