GtDio6xChannelGetSourceSlewRate

Applies To

GX5961, GX5964, File

Purpose

Returns the channel slew rate.

Syntax

GtDio6xChannelGetSourceSlewRate (nHandle, nChannel, pdRisingSlew, pdFallingSlew, 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.

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.
pdRisingSlew
PDOUBLE
Source rising slew rate values are 0.1V ns to 1.2V/ns.
pdFallingSlew
PDOUBLE
Source falling slew rate will have the same settings as source rising slew rate values.
pdBias
PDOUBLE
This parameter is currently not used.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

Each channel output has rising and falling slew rate capability with the following characteristics:

     Each output driver has a separate and independent adjustments for the rising and falling slew rate.

     Each output driver output stage has a programmable bias current to allow applications that require slower edge rates to consume less power.

     Separate and independent delay circuitry for each channel.

Channels output rising and falling slew rates can be read back and set dynamically at any time even while the DIO is running.

Example

The following example sets channels 0 and 2 source slew rates 0.5V/nS, and returns channel 0 settings:

 

SHORT nStatus;

LONG alChannelList[2];

DOUBLE dRisingSlew, dFallingSlew, dBias;

 

// Fill channel array

alChannelList[0] = 0;

alChannelList[1] = 2;

 

GtDio6xChannelSetSourceSlewRate(nHandle, 2, alChannelList, 0.5, 0.5, 0, &nStatus);

GtDio6xChannelGetSourceSlewRate(nHandle, 0, &dRisingSlew, &dFallingSlew, &dBias, &nStatus);

printf(“Channel 0 slew rate is %f V/ns”, dRisingSlew);

 

See Also

GtDio6xChannelSetSourceLevels, GtDio6xChannelGetSenseLevels,  GtDio6xChannelSetSenseLevels, GtDio6xChannelSetSourceSlewRate,  GtDio6xGetErrorString