GX5961, GX5964, File
Sets the specified channel input pull-up and pull-down resistive loads.
GtDio6xChannelSetSenseLoadResistance (nHandle, lChannelListArraySize, palChannelListArray, nPullUp, dPullDown, pdStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Session identifier:● Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization. ● File handle is used when communicating with a file. The File handle session identifier is returned by calling GtDio6xFileOpen. |
lChannelListArraySize |
LONG |
Used to specify the number of channels to set. This parameter should not be greater than the size of palChannelListArray. If GTDIO6X_ALL_DOMAIN is passed in, then the palChannelListArray parameter can be set to NULL and the settings will be applied to all channels in the Domain. |
palChannelListArray |
PLONG |
Array containing channels numbers that will be set by this function, channels numbers are 0-based and refers to any channel in the Domain. Auxiliary channel numbers begin with 1000.GX5961: Each GX5961 board has 4 fully programmable auxiliary channels, and 8 TTL I/O channels. First 4 auxiliary channels may use all the Pin Electronics API.GX5964: Does not have Auxiliary channels. |
dPullUp |
DOUBLE |
Used to set the input load pull up resistance.Input pull-up resistive loads can be one of the following:● GTDIO6X_RESISTIVE_LOAD_240_OHMS = 240. ● GTDIO6X_RESISTIVE_LOAD_290_OHMS = 290. ● GTDIO6X_RESISTIVE_LOAD_1K_OHMS = 1000. ● GTDIO6X_RESISTIVE_LOAD_OPEN = -1. |
dPullDown |
DOUBLE |
Used to set the input load pull down resistance.Input pull down resistive loads can be one of the following:● GTDIO6X_RESISTIVE_LOAD_240_OHMS = 240. ● GTDIO6X_RESISTIVE_LOAD_290_OHMS = 290. ● GTDIO6X_RESISTIVE_LOAD_1K_OHMS = 1000. ● GTDIO6X_RESISTIVE_LOAD_OPEN = -1. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
Each channel has an independent load with the following capabilities:
● Channels’ Input constant source and sink currents up to 24 mA – GtDio6xSetSenseLoadCurrent function.
● Maintain high impedance over a wide voltage.
● Separate high and low commutating voltages – GtDio6xSetSensetLoadCommutatingVoltage function.
● Channels’ Input Resistive load options - GtDio6xSetSenseLoadResistance function.
With independent high and low commutating voltages, the source and sink currents each have their own threshold voltage. If the voltage on the input, when the load is activated, is between the two commutating voltages, the load will remain in a high impedance state.
The input resistive load is useful in applications with very low DUT output swings (where a traditional active load will not switch on and off completely or quickly) and also as a means of forcing the DUT to a known voltage when the DUT is in HiZ.
NOTE: The source and sink currents should be programmed to 0 during normal operation of the resistive load.
When the resistive load is placed in HiZ (GTDIO6X_RESISTIVE_LOAD_OPEN) it maintains a low leakage current when the input voltage is between the supply rails.
Channels input pull-up and pull-down resistive loads can be read back and set dynamically at any time even while the DIO is running mode.
The following example sets channel 0 and 2 sense load resistance to 240Ohms pull-up and 1K pull down, and return channel 0 settings:
DOUBLE dPullUp, dPullDown;
SHORT nStatus;
LONG alChannelList[2];
// Fill channel array
alChannelList[0] = 0;
alChannelList[1] = 2;
GtDio6xChannelSetSenseLoadResistance(nHandle, 2 alChannelList, GTDIO6X_RESISTIVE_LOAD_240_OHMS, GTDIO6X _RESISTIVE_LOAD_1K_OHMS, &nStatus);
GtDio6xChannelGetSenseLoadResistance(nHandle, 0, &dPullUp, &dPullDown, &nStatus);
GtDio6xChannelSetSenseLevels, GtDio6xChannelSetSenseLoadCommutatingVoltage, GtDio6xChannelSetSenseLoadCurrent, GtDio6xChannelGetSenseLoadResistance, GtDio6xChannelSetSenseLoadState, GtDio6xGetErrorString