GtDio6xChannelSetSourceImpedance

Applies To

GX5961, GX5964, File

Purpose

Programs the channel output impedance.

Syntax

GtDio6xChannelSetSourceImpedance (nHandle, lChannelListArraySize, palChannelListArray, nImpedance, pnStatus)

Parameters

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.
nImpedance
SHORT
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.

Comments

This function is used to switch between the two paths by way of a solid-state switch.

Example

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);

 

See Also

GtDio6xChannelGetSourceImpedance, GtDio6xChannelSetSourceLevels, GtDio6xChannelGetSourceLevels, GtDio6xChannelGetSenseLevels, GtDio6xChannelSetSenseLevels, GtDio6xChannelSetSourceSlewRate, GtDio6xGetErrorString