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.
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)
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.
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.).
| Signal | Connection |
| AdcConvert | A/D conversion pulse or clock. |
| AdcGate | External gate for A/D conversions. |
| AdcScanClk | A/D channel scan signal. |
| AdcScanStop | A/D scan completion signal. |
| ADC_SSH | A/D simultaneous sample and hold signal. |
| AdcStartScan | Start of A/D channel-scan sequence signal. |
| AdcStartTrig | A/D scan start trigger. |
| AdcStopTrig | A/D stop- or pre- trigger. |
| AdcTbSrc | A/D pacer timebase source. |
| Ctr1Clk | CTR1 clock source. |
| Ctr2Clk | CTR2 clock source. |
| DacStartTrig | D/A start trigger. |
| DacTbSrc | D/A pacer timebase source. |
| DacUpdate | D/A update signal. |
| DGnd | Digital ground. |
| SyncClk | STC timebase signal. |
| Valid input settings (direction = MccDaq.SignalDirection.SignalIn) | ||
| signalType | connectionPin | polarity |
| AdcConvert | AuxIn0..AuxIn5 DsConnector | PositiveEdge or NegativeEdge |
| AdcGate | AuxIn0..AuxIn5 | See SetTrigger(). |
| AdcStartTrig | AuxIn0..AuxIn5 DsConnector | |
| AdcStopTrig | AuxIn0..AuxIn5 DsConnector | |
| AdcTbSrc | AuxIn0..AuxIn5 | PositiveEdge or NegativeEdge |
| DacStartTrig | AuxIn0..AuxIn5 DsConnector | Not assigned here. |
| DscTbSrc | AuxIn0..AuxIn5 | PositiveEdge or NegativeEdge |
| DacUpdate | AuxIn0..AuxIn5 DsConnector | PositiveEdge or NegativeEdge |
| SyncClk | DsConnector | Not assigned here. |
| Valid output settings (direction = MccDaq.SignalDirection.SignalOut) | ||
| signalType | connectionPin | polarity |
| AdcConvert | AuxOut0..AuxOut2 DsConnector | Inverted* or NonInverted |
| AdcScanClk | AuxOut0..AuxOut2 | |
| AdcScanStop | AuxOut0..AuxOut2 | |
| AdcSsh | AuxOut0..AuxOut2 | |
| AdcStartScan | AuxOut0..AuxOut2 | |
| AdcStartTrig | AuxOut0..AuxOut2 DsConnector | |
| AdcStopTrig | AuxOut0..AuxOut2 DsConnector | |
| Ctr1Clk | AuxOut0..AuxOut2 | |
| Ctr2Clk | AuxOut0..AuxOut2 | |
| DacStartTrig | AuxOut0..AuxOut2 DsConnector | |
| DacUpdate | AuxOut0..AuxOut2 DsConnector | |
| DGND | AuxOut0..AuxOut2 | Not assigned here. |
| SyncClk | DsConnector | Not assigned here. |
* Inverted is only valid for Auxiliary Output (AuxOut) connections.
| Valid disabled settings (direction = MccDaq.SignalDirection.Disabled) | ||
| signalType | connectionPin | polarity |
| AdcTbSrc | Not assigned here. | Not assigned here. |
| DacTbSrc | ||
| SyncClk | ||
| Default input signal connections | Input signal | Default connection |
| AdcConvert | AuxIn0 | |
| AdcGate | AuxIn5 | |
| AdcStartTrig | AuxIn1 | |
| AdcStopTrig | AuxIn2 | |
| DacUpdate | AuxIn3 | |
| DacStartTrig | AuxIn3 |