# cbGetSignal()

Returns the configured Auxiliary or DAQ Sync connection and polarity for the specified timing and control signal.

This function is intended for advanced users. Except for the SYNC_CLK input, you can easily view the settings for the timing and control signals using InstaCal. This function is not supported by all board types.

## Function Prototype

C/C++

int cbGetSignal(int BoardNum, int Direction, int Signal, int Index, int* Connection, int* Polarity)

Visual Basic

Function cbGetSignal(ByVal BoardNum&, ByVal Direction&, ByVal Signal&, ByVal Index&, ByRef Connection, ByRef 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

Specifies whether retrieving the source (SIGNAL_IN) or destination (SIGNAL_OUT) of the specified signal.

Signal

Signal type whose connection is to be retrieved. See cbSelectSignal for valid signal types.

Index

Used to indicate which connection to reference when there is more than one connection associated with the output Signal type. When querying output signals, increment this value until BADINDEX is returned or 0 is returned via the Connection parameter to determine all the output Connections for the specified output Signal. The first Connection is indexed by 0.

For input signals (Direction=SIGNAL_IN), this should always be set to 0.

Connection

The specified connection is returned through this variable. This is set to 0 if no connection is associated with the Signal, or if the Index is set to an invalid value.

Polarity

Holds the polarity for the associated Signal and Connection.

For output Signals assigned an AUXOUT Connection, the return value is either INVERTED or NONINVERTED.

For Signal settings of ADC_CONVERT, DAC_UPDATE, ADC_TB_SRC and DAC_TB_SRC input signals, either POSITIVEEDGE or NEGATIVEEDGE is returned.

All other signals return 0.

## Returns

- Error code or 0 if no errors.

## Notes

Timing and control configuration information can be viewed and edited inside InstaCal. Do the following:

1. Run InstaCal.
2. Click on the board and press the Configure... button or menu item. If the board supports DAQ Sync and Auxiliary Input/Output signal connections, a button labeled Advanced Timing & Control Configuration displays.
3. Press this button to open a display for viewing and modifying the above timing and control signals.