SelectSignal() method

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

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

Member of the MccBoard class.

Note: SelectSignal() is not supported by all board types. Refer to the board-specific information contained in the Universal Library User's Guide for details.

Function Prototype

VB .NET

Public Function SelectSignal(ByVal direction As MccDaq.SignalDirection, ByVal signalType As MccDaq.SignalType, ByVal connectionPin As MccDaq.ConnectionPin, ByVal polarity As MccDaq.SignalPolarity) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo SelectSignal(MccDaq.SignalDirection direction, MccDaq.SignalType signal, MccDaq.ConnectionPin connectionPin,MccDaq.SignalPolarity polarity)

Parameters

direction

Direction of the specified signal type to be assigned a connector pin. For most signal types, this should be either SignalIn or SignalOut.

For the SyncClk, AdcTbSrc and DacTbSrc 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 signalType, connectionPin, and polarity parameters. Refer to the "direction, connectionPin, and polarity parameter values" section below.

signalType

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

connectionPin

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 DsConnector. The MccDaq.ConnectionPin.AuxIn and MccDaq.ConnectionPin.AuxOut settings match their corresponding hardware pin names.

polarity

AdcTbSrc and DacTbSrc input signals (direction = MccDaq.SignalDirection.SignalIn) can be set for either rising edge (MccDaq.SignalPolarity.PositiveEdge) or falling edge (MccDaq.SignalPolarity.NegativeEdge) signals. The AuxOut connections can be set to MccDaq.SignalPolarity.Inverted or MccDaq.SignalPolarity.NonInverted from their internal polarity.

Returns

signalType parameter values

All of the signalType settings are MccDaq.SignalType enumerated constants. To set a variable to one of these constants, you must refer to the MccDaq object and the SignalType enumeration (variable = MccDaq.SignalType.AdcConvert, variable = MccDaq.SignalType.AdcGate, etc.).

SignalConnection
AdcConvertA/D conversion pulse or clock.
AdcGateExternal gate for A/D conversions.
AdcScanClkA/D channel scan signal.
AdcScanStopA/D scan completion signal.
ADC_SSHA/D simultaneous sample and hold signal.
AdcStartScanStart of A/D channel-scan sequence signal.
AdcStartTrigA/D scan start trigger.
AdcStopTrigA/D stop- or pre- trigger.
AdcTbSrcA/D pacer timebase source.
Ctr1ClkCTR1 clock source.
Ctr2ClkCTR2 clock source.
DacStartTrigD/A start trigger.
DacTbSrcD/A pacer timebase source.
DacUpdateD/A update signal.
DGndDigital ground.
SyncClkSTC timebase signal.

direction, connectionPin, and polarity parameter values

Valid input settings (direction = MccDaq.SignalDirection.SignalIn)
signalTypeconnectionPinpolarity
AdcConvertAuxIn0..AuxIn5
DsConnector
PositiveEdge or NegativeEdge
AdcGateAuxIn0..AuxIn5See SetTrigger().
AdcStartTrigAuxIn0..AuxIn5
DsConnector
AdcStopTrigAuxIn0..AuxIn5
DsConnector
AdcTbSrcAuxIn0..AuxIn5PositiveEdge or NegativeEdge
DacStartTrigAuxIn0..AuxIn5
DsConnector
Not assigned here.
DscTbSrcAuxIn0..AuxIn5PositiveEdge or NegativeEdge
DacUpdateAuxIn0..AuxIn5
DsConnector
PositiveEdge or NegativeEdge
SyncClkDsConnectorNot assigned here.

 

Valid output settings (direction = MccDaq.SignalDirection.SignalOut)
signalTypeconnectionPinpolarity
AdcConvertAuxOut0..AuxOut2
DsConnector
Inverted* or NonInverted
AdcScanClkAuxOut0..AuxOut2
AdcScanStopAuxOut0..AuxOut2
AdcSshAuxOut0..AuxOut2
AdcStartScanAuxOut0..AuxOut2
AdcStartTrigAuxOut0..AuxOut2
DsConnector
AdcStopTrig AuxOut0..AuxOut2
DsConnector
Ctr1ClkAuxOut0..AuxOut2
Ctr2ClkAuxOut0..AuxOut2
DacStartTrigAuxOut0..AuxOut2
DsConnector
DacUpdateAuxOut0..AuxOut2
DsConnector
DGNDAuxOut0..AuxOut2Not assigned here.
SyncClkDsConnectorNot assigned here.

* Inverted is only valid for Auxiliary Output (AuxOut) connections.



Valid disabled settings (direction = MccDaq.SignalDirection.Disabled)
signalTypeconnectionPinpolarity
AdcTbSrcNot assigned here.Not assigned here.
DacTbSrc
SyncClk

Notes

Default input signal connectionsInput signalDefault connection
AdcConvertAuxIn0
AdcGateAuxIn5
AdcStartTrigAuxIn1
AdcStopTrigAuxIn2
DacUpdateAuxIn3
DacStartTrigAuxIn3