GX5055, File.
Sets the channel output rising and falling slew rate.
DioSetuptOutputSlewRate (nHandle, nChannelListMode, nCountOrFirstChannel, panChannelList, nLastChannel, dRisingEdge, dFallingEdge, dBias, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
DIO Master handle, Slave handle or File board handle. |
nChannelListMode |
SHORT |
Channel list mode dictates how nCountOrFirstChannel and panChannelList parameters are used. Channel list mode options are as follows:0 DIO_CH_LIST_MODE_ARRAY_OF_CHANNELS: The user specifies an array of channels where nCountOrFirstChannel is the number of elements in the list array and panChannelList is an array contains the channels numbers. In this mode nLastChannel is ignored.1 DIO_CH_LIST_MODE_ALL_BOARD_CHANNELS: Apply the settings to all the board’s channels associated with this board handle. In this mode nCountOrFirstChannel, panChannelList and nLastChannel variavles are ignored.2 DIO_CH_LIST_MODE_ALL_DOMAIN_CHANNELS: Apply the settings to all the channels in the domain, e.g. if there are two boards in the domain (Master and a Slave), then all 64 channels will be set. In this mode nCountOrFirstChannel, panChannelList and nLastChannel variavles are ignored.3 DIO_CH_LIST_MODE_RANGE_OF_CHANNELS: Apply settings to a range of channels where nCountOrFirstChannel is the first channel number and nLastChannel is the last channel number. In this mode panChannelList variavle is ignored. |
nCountOrFirstChannel |
SHORT |
If nChannelListMode parameter is set to DIO_CH_LIST_MODE_ARRAY_OF_CHANNELS, then it is specifying the number of elements in the panChannelList array parameter.If nChannelListMode parameter is set to DIO_CH_LIST_MODE_RANGE_OF_CHANNELS, then it is specifying the first channel number to apply the settings to,otherwise it is ignored and should set to zero.Channel number in the DIO domain, each DIO board adds 32 I/O channels. I/O channels number range is 0-991 (1 master and 30 slaves). |
panChannelList |
PSHORT |
Array of channels numbers. Channels numbers can be from 0 to the last channel in the domain. E.g., if the domain has two boards then the last channel is 63.This parameter is only used if nChannelListMode parameter is set to DIO_CH_LIST_MODE_ARRAY_OF_CHANNELS, otherwise is should be passed as NULL. |
nLastChannel |
SHORT |
If nChannelListMode parameter is set to DIO_CH_LIST_MODE_RANGE_OF_CHANNELS, then it is specifying the last channel number to apply the settings to,otherwise it is ignored and should set to zero.Channel number in the DIO domain, each DIO board adds 32 I/O channels. I/O channels number range is 0-991 (1 master and 30 slaves). |
dRisingEdge |
DOUBLE |
Output rising slew rate in Volts per nSec, values are from 0.1V/ns to 1.2V/ns in steps of 0.1 V/ns. |
dFallingEdge |
DOUBLE |
Output falling slew rate will have the same settings as rising edge. Currently not used. |
dBias |
DOUBLE |
The driver output stage has a programmable bias current to allow applications that require slower edge rates to consume less power. Currently not use. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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 mode.
The following example uses an array of channels list to set output rising and falling slew rate:
SHORT anChannelList[]={0, 2, 5, 7, 9, 13, 14, 27};
DioSetupOutputSlewRate (nHandle, DIO_CH_LIST_MODE_ARRAY_OF_CHANNELS, 8, anChannelList, 0, 0.5, 0, 0, &nStatus);
The following example sets all the board’s channels output rising and falling slew rate:
DioSetupOutputSlewRate (nHandle, DIO_CH_LIST_MODE_ALL_BOARD_CHANNELS, 0, NULL, 0, 0.5, 0, 0, &nStatus);
The following example sets all the boards channels output rising and falling slew rate:
DioSetupOutputSlewRate (nHandle, DIO_CH_LIST_MODE_ALL_DOMAIN_CHANNELS, 0, NULL, 0, 0.5, 0, 0, &nStatus);
The following example sets channels 5 to 10 output rising and falling slew rate:
DioSetupOutputSlewRate (nHandle, DIO_CH_LIST_MODE_RANGE_OF_CHANNELS, 5, NULL, 10, 0.5, 0, 0, &nStatus);
DioSetupInputLoadResistance, DioSetupInputThresholdVoltages, DioGetErrorString