PXI system, the card is provided with a software driver, utility software, a demo program for LabView and a calibration tool. The main part of the GX2472 driver consisst of a Windows dynamic link library, the gx2472.DLL For Labview users the driver also includes a LabView library with the gx2472.dll driver...
The PXI Kernel Driver cannot be installed on Windows95 or Windows NT. This selection will be disabled if one of these operating systems is detected. After installation shutdown the computer and place the GX2472 in the system. After turning on the computer the operation system should automatically detect the new hardware and install the low level driver.
Page 8
“gx2472.inf” The inf-subdirectory is a hidden directory. 2. If the pxi kernel mode driver is installed, copy also the gx2472.sys file. This file can be found in the directory \Drivers\Kernel\Winxx, where xx indicates the operating system. Copy this file to the Windows sub-directory \System\Drivers (e.g.
GX2472 DLL functions. This chapter describes the functions of the dll. Each function and its parameters are described in a table. The following parameter types are used: Type Details unsigned long 4-byte (32 bit) unsigned long double 8-byte floating point...
The status code returned by a 0 to 2^32 long gx2472 driver function errorMessage char* The error message string gx2472_error_query( vi, errorCode, Message ) Description: Error Query is not supported by this instrument. This function only exists for compliance with the VXI Plug and Play specifications.
Parameters: Name Type Direction Description Value unsigned Instrument Handle 0 to 2^32 long errorCode unsigned 0 to 2^32 long Message char* string 2.7 gx2472_FindInstruments( buslist, devicelist, count ) Description: Returns the number of available instruments and a list with the bus and device number for each instrument.
2.10 gx2472_GetCardConnection(vi, positiveInputConnection, negativeInputConnection ) Description: Get the status of the input relays. This routine returns the connection status from the active channel. There are 4 relays for each input. Each relay can be controlled with a bit: • Bit 1 (value 1 Hex) : Input relay; •...
2.14 gx2472_GetDCOffsetLimitVoltages (vi, positiveVoltage, negativeVoltage) Description: Returns the DC Offset Limit Voltages. See function SetDCOffsetLimitVoltages(..). Parameters: Name Type Direction Description Value unsigned long Instrument Handle 0 to 2^32 positiveVoltage double* positive limit voltage 5 to 6 negativeVoltage double* negative limit voltage -5 to - 6 2.15 gx2472_GetDCOffsetVoltage(vi , voltage ) Description:...
Parameters: Name Type Direction Description Value unsigned long Instrument Handle 0 to 2^32 voltage double* measured voltage depends on range code unsigned long* adc code 0 to 2^14 average unsigned long averages 1 to 2^19 timeOut unsigned long time out 0 to 2^32 no timeout it time out is 0 2.19 gx2472_GetLoopMode (vi, loopMode)
Parameters: Name Type Direction Description Value unsigned long Instrument Handle 0 to 2^32 triggerstatus unsigned long * out current trigger status 0 = no channels triggered 1 = channel A triggered 2 = channel B triggered 3 = both channels triggered 2.24 gx2472_GetTriggerInput (vi, triggerSource, triggerMode) Description: This function returns the trigger source and trigger mode settings.
2.26 gx2472_MemoryTest (vi, level, errorAddress) Description: This function performs a memory test. Parameters: Name Type Direction Description Value unsigned long Instrument Handle 0 to 2^32 level unsigned long level 0 = 1/10 of memory is tested 1 = total memory tested errorAddress unsigned long* error address...
SetAddressCounter(). After this function call the address-counter is incremented with one step. Parameters: Name Type Direction Description Value unsigned long Instrument Handle 0 to 2^32 data unsigned long* read data 0 to 2^16 2.30 gx2472_ReadInstrumentMemoryArray(vi , length , buf32, dataInterpretation ) Description: Read length ram-places from the capture ram (of the active channel), starting from the current address-counter value.
This function always returns the defined value VI_WARN_NSUP_REV_QUERY. Parameters: Name Type Direction Description Value unsigned Instrument Handle 0 to 2^32 long driverRev char* Driver revision instrRev char* Instrument revision 2.34 gx2472_self_test( vi, testResult, errorMessage ) Description: Self Test is not supported by this instrument. It returns a defined value VI_WARN_NSUP_SELF_TEST.
Name Type Direction Description Value unsigned long Instrument Handle 0 to 2^32 clockdivider unsigned long clock divider value 1 to 256 2.38 gx2472_SetClockOutputEnable(vi, enable ) Description: Enable the sample clock output. If annternal clock is selected and the clock output is enabled, the sample clock (clock/clockdivider) is available on the front clock connection.
disconnect negative input 2 connect dc offset & negative input 2.42 gx2472_SetDCOffsetLimitVoltages(vi , posvolt , negvolt ) Description: Set limit voltages of dc offset DAC (of the selected channel). These voltages are necessary for a calibrated offset voltage. Procedure to determine limit voltages: •...
code unsigned long in code for gain cal. 0 to 2^10 2.45 gx2472_SetLockMode(vi , lock ) Description: Lock or unlock the memory access for active channel. A channel should be locked before the channel can be used to capture a signal. The memory cannot be accessed (by a controller) and the channel waits for a trigger in this mode.
2.49 gx2472_SetSampleDivider (vi, sampleDividerValue) Description: This function will program the sample divider. The sample divider determines how many samples will be stored. E.g. if the sample divider is 2, 1 of the 2 samples will be stored in the capture ram. Programming the sample divider will actually lower the sample rate, while the ADC sample clock is not lowered.
Store calibration data (of both channels) in serial EEPROM. This function should be called after a calibration procedure to store the calibration data in the on board serial EEPROM. Parameters: Name Type Direction Description Value unsigned long in Instrument Handle 0 to 2^32 2.52 gx2472_WriteCardId(vi , id ) Description:...
data unsigned long in data to write 0 to 2^14 2.56 gx2472_WriteInstrumentMemoryArray(vi , length , buffer ) Description: Write a buffer with length (32 bit) words to the (capture) ram of the active channel, starting at the current address counter position. The address-counter can be initialized with the function SetAddressCounter().
Status codes This chapter will provides an overview of the possible status codes that can be returned by the dll-functions. General These codes can be returned by both VISA and non-visa driver functions. Completion without error: Constant name Value Description VI_SUCCESS No error(s) General error codes:...