cbSelectSignal()

Configures timing and control signals to use specific Auxiliary or DAQ Sync connections as a source or destination.

This function is intended for advanced users. Except for the SYNC_CLK input, you can easily configure all the timing and control signals using InstaCal.

Note: This function is not supported by all board types. Please refer to board specific information for details.

Function Prototype

C/C++

int cbSelectSignal(int BoardNum, int Direction, int Signal, int Connection, int Polarity);

Visual Basic

Function cbSelectSignal(ByVal BoardNum&, ByVal Direction&, ByVal Signal&, ByVal Connection&, ByVal Polarity&) as Long

Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99. The board must have configurable signal inputs and outputs.

Direction

Direction of the specified signal type to be assigned a connector pin. For most signal types, this should be either SIGNAL_IN or SIGNAL_OUT. For the SYNC_CLK , ADC_TB_SRC and DAC_TB_SRC signals, the external source can also be disabled by specifying DISABLED(=0) such that it is neither input nor output. Set it in conjunction with the Signal, Connection, and Polarity arguments using the information listed in the Direction argument values section below.

Signal

Signal type to be associated with a connector pin. Set it to one of the constants listed in the "Signal argument values" section below.

Connection

Designates the connector pin to associate the signal type and direction. Since individual pin selection is not allowed for the DAQ-Sync connectors, all DAQ-Sync pin connections are referred to as DS_CONNECTOR. The AUXIN and AUXOUT settings match their corresponding hardware pin names.

Polarity

ADC_TB_SRC and DAC_TB_SRC input signals (SIGNAL_IN) can be set for either rising edge (POSITIVEEDGE) or falling edge (NEGATIVEEDGE) signals. The AUXOUT connections can be set to INVERTED or NONINVERTED from their internal polarity.

Returns

Signal argument values

SignalConnection
ADC_CONVERTA/D conversion pulse or clock.
ADC_GATEExternal gate for A/D conversions.
ADC_SCANCLKA/D channel scan signal.
ADC_SCAN_STOPA/D scan completion signal.
ADC_SSHA/D simultaneous sample and hold signal.
ADC_STARTSCANStart of the A/D channel-scan sequence signal.
ADC_START_TRIGA/D scan start trigger.
ADC_STOP_TRIGA/D stop- or pre- trigger.
ADC_TB_SRCA/D pacer timebase source.
CTR1_CLKCTR1 clock source.
CTR2_CLKCTR2 clock source.
DAC_START_TRIGD/A start trigger.
DAC_TB_SRCD/A pacer timebase source.
DAC_UPDATED/A update signal.
DGNDDigital ground.
SYNC_CLKSTC timebase signal.

Direction argument values

Valid input (Direction=SIGNAL_IN) connection pin and polarity settings include:

SignalConnectionPolarity
ADC_CONVERTAUXIN0..AUXIN5
DS_CONNECTOR
POSITIVEEDGE or NEGATIVEEDGE
ADC_GATEAUXIN0..AUXIN5See cbSetTrigger()
ADC_START_TRIGAUXIN0..AUXIN5
DS_CONNECTOR
See cbSetTrigger()
ADC_STOP_TRIGAUXIN0..AUXIN5
DS_CONNECTOR
See cbSetTrigger()
ADC_TB_SRCAUXIN0..AUXIN5POSITIVEEDGE or NEGATIVEEDGE
DAC_START_TRIGAUXIN0..AUXIN5
DS_CONNECTOR
Not assigned here.
DAC_TB_SRCAUXIN0..AUXIN5POSITIVEEDGE or NEGATIVEEDGE
DAC_UPDATEAUXIN0..AUXIN5
DS_CONNECTOR
POSITIVEEDGE or NEGATIVEEDGE
SYNC_CLKDS_CONNECTORNot assigned here.

Valid output (Direction=SIGNAL_OUT) connection pin and polarity settings include:

SignalConnectionPolarity
ADC_CONVERTAUXIN0..AUXIN2
DS_CONNECTOR
INVERTED* or NONINVERTED
ADC_SCANCLKAUXIN0..AUXIN2
ADC_SCAN_STOPAUXIN0..AUXIN2
ADC_SSHAUXIN0..AUXIN2
ADC_STARTSCANAUXIN0..AUXIN2
ADC_START_TRIGAUXIN0..AUXIN2
DS_CONNECTOR
ADC_STOP_TRIGAUXIN0..AUXIN2
DS_CONNECTOR
CTR1_CLKAUXIN0..AUXIN2
CTR2_CLKAUXIN0..AUXIN2
DAC_START_TRIGAUXIN0..AUXIN2
DS_CONNECTOR
DAC_UPDATEAUXIN0..AUXIN2
DS_CONNECTOR
DGNDAUXIN0..AUXIN2Not assigned here.
SYNC_CLKDS_CONNECTOR

* INVERTED is only valid for Auxiliary Output (AUXOUT) connections.

Valid disabled settings (Direction=DISABLED):

Signal ConnectionPolarity
ADC_TB_SRCNot assigned here.Not assigned here.
DAC_TB_SRC
SYNC_CLK

Notes

Default input signal connections
Input signalDefault connection
ADC_CONVERTAUXIN0
ADC_GATEAUXIN5
ADC_START_TRIGAUXIN1
ADC_STOP_TRIGAUXIN2
DAC_UPDATEAUXIN3
DAC_START_TRIGAUXIN3