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.
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
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.
| Signal | Connection |
| ADC_CONVERT | A/D conversion pulse or clock. |
| ADC_GATE | External gate for A/D conversions. |
| ADC_SCANCLK | A/D channel scan signal. |
| ADC_SCAN_STOP | A/D scan completion signal. |
| ADC_SSH | A/D simultaneous sample and hold signal. |
| ADC_STARTSCAN | Start of the A/D channel-scan sequence signal. |
| ADC_START_TRIG | A/D scan start trigger. |
| ADC_STOP_TRIG | A/D stop- or pre- trigger. |
| ADC_TB_SRC | A/D pacer timebase source. |
| CTR1_CLK | CTR1 clock source. |
| CTR2_CLK | CTR2 clock source. |
| DAC_START_TRIG | D/A start trigger. |
| DAC_TB_SRC | D/A pacer timebase source. |
| DAC_UPDATE | D/A update signal. |
| DGND | Digital ground. |
| SYNC_CLK | STC timebase signal. |
Valid input (Direction=SIGNAL_IN) connection pin and polarity settings include:
| Signal | Connection | Polarity |
| ADC_CONVERT | AUXIN0..AUXIN5 DS_CONNECTOR | POSITIVEEDGE or NEGATIVEEDGE |
| ADC_GATE | AUXIN0..AUXIN5 | See cbSetTrigger() |
| ADC_START_TRIG | AUXIN0..AUXIN5 DS_CONNECTOR | See cbSetTrigger() |
| ADC_STOP_TRIG | AUXIN0..AUXIN5 DS_CONNECTOR | See cbSetTrigger() |
| ADC_TB_SRC | AUXIN0..AUXIN5 | POSITIVEEDGE or NEGATIVEEDGE |
| DAC_START_TRIG | AUXIN0..AUXIN5 DS_CONNECTOR | Not assigned here. |
| DAC_TB_SRC | AUXIN0..AUXIN5 | POSITIVEEDGE or NEGATIVEEDGE |
| DAC_UPDATE | AUXIN0..AUXIN5 DS_CONNECTOR | POSITIVEEDGE or NEGATIVEEDGE |
| SYNC_CLK | DS_CONNECTOR | Not assigned here. |
Valid output (Direction=SIGNAL_OUT) connection pin and polarity settings include:
| Signal | Connection | Polarity |
| ADC_CONVERT | AUXIN0..AUXIN2 DS_CONNECTOR | INVERTED* or NONINVERTED |
| ADC_SCANCLK | AUXIN0..AUXIN2 | |
| ADC_SCAN_STOP | AUXIN0..AUXIN2 | |
| ADC_SSH | AUXIN0..AUXIN2 | |
| ADC_STARTSCAN | AUXIN0..AUXIN2 | |
| ADC_START_TRIG | AUXIN0..AUXIN2 DS_CONNECTOR | |
| ADC_STOP_TRIG | AUXIN0..AUXIN2 DS_CONNECTOR | |
| CTR1_CLK | AUXIN0..AUXIN2 | |
| CTR2_CLK | AUXIN0..AUXIN2 | |
| DAC_START_TRIG | AUXIN0..AUXIN2 DS_CONNECTOR | |
| DAC_UPDATE | AUXIN0..AUXIN2 DS_CONNECTOR | |
| DGND | AUXIN0..AUXIN2 | Not assigned here. |
| SYNC_CLK | DS_CONNECTOR |
* INVERTED is only valid for Auxiliary Output (AUXOUT) connections.
Valid disabled settings (Direction=DISABLED):
| Signal | Connection | Polarity |
| ADC_TB_SRC | Not assigned here. | Not assigned here. |
| DAC_TB_SRC | ||
| SYNC_CLK |
| Default input signal connections | |
|---|---|
| Input signal | Default connection |
| ADC_CONVERT | AUXIN0 |
| ADC_GATE | AUXIN5 |
| ADC_START_TRIG | AUXIN1 |
| ADC_STOP_TRIG | AUXIN2 |
| DAC_UPDATE | AUXIN3 |
| DAC_START_TRIG | AUXIN3 |