Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

what is defined as the proper initialization of a GPIB controller prior to issuing ibdev?

CraigByrd,

 

I am not sure that I understand your question.  ibdev asks for the board index, primary address, secondary address, timeout, EOI mode, and End Of String mode/bye as inputs if that is what you are asking.  More information can be found in the 488.2 help menu, which can be found in your start menu at Start » All Programs » National Instruments » NI-488.2 » NI-488.2 Help.

 

Eric K

Applications Engineer

National Instruments

0 Kudos
Message 2 of 4
(3,425 Views)

For example, C:\Program Files\National Instruments\NI-488.2\Bin\Sample.txt demonstrates device level commands.  I am curious what are the board level commands (IFC, ibsre) one might send from the controller prior to running the device level commands upon startup of an application.

 

On a side note, where does one find the proper versions of (gpib-32.obj,ni4882.obj) and (decl-32.h or ni4882.h) to use with the Visual Studio 2008 development environment.

 

I have found various .h and .obj files in C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C\lib32 but would like to know which are used where (in terms of various Visual Studio environments (6.0, 2005, 2008)

 

0 Kudos
Message 3 of 4
(3,421 Views)

CraigByrd,

 

In many cases, ibdev may be the first command used.  For example, if you take a look at the simplescope example at C:\Documents and Settings\All Users\Documents\National Instruments\NI-488.2\Examples\Standard C\ScopeSimple\Simple.c, you can see that the first line of code in the main function is an ibdev call.

 

Eric K

Applications Engineer

National Instruments

0 Kudos
Message 4 of 4
(3,380 Views)