GX5961, GX5964, File
Returns the channel output impedance.
GtDio6xChannelGetSourceImpedance (nHandle, nChannel, pnImpedance, pnStatus)
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. |
nChannel |
SHORT |
Used to specify the channel to Get. This parameter is 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. |
pnImpedance |
PSHORT |
Used to set the source impedance.0. GTDIO6X_TERM_LOWZ: Low impedance (approximately 12Ohm) path. 1. GTDIO6X_TERM_50OHM: 50-Ohm path. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative value on failure. |
This function is used to switch between the two paths by way of a solid-state switch.
The following sets channels 0 and 2 output impedance to 50 Ohms, and returns channel 0 settings:
SHORT nImpedance, nStatus;
LONG alChannelList[2];
// Fill channel array
alChannelList[0] = 0;
alChannelList[1] = 2;
GtDio6xChannelSetSourceImpedance(nHandle, 2, alChanneList, GTDIO6X_TERM_50OHM, &nStatus);
GtDio6xChannelGetSourceImpedance(nHandle, 0, &nImpedance, &nStatus);
GtDio6xChannelSetSourceImpedance, GtDio6xChannelSetSourceLevels, GtDio6xChannelGetSourceLevels, GtDio6xChannelGetSenseLevels, GtDio6xChannelSetSenseLevels, GtDio6xChannelSetSourceSlewRate, GtDio6xGetErrorString