GetSignal()

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

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

Member of the MccBoard class.

Function Prototype

VB .NET

Public Function GetSignal(ByVal direction As MccDaq.SignalDirection, ByVal signalType As MccDaq.SignalType, ByVal index As Integer, ByRef connectionPin As MccDaq.ConnectionPin, ByRef signalPolarity As MccDaq.SignalPolarity) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo GetSignal(MccDaq.SignalDirection direction, MccDaq.SignalType signalType, int index, out MccDaq.ConnectionPin connectionPin, out MccDaq.SignalPolarity signalPolarity)

Parameters

direction

Specifies whether to retrieve the source (MccDaq.SignalDirection.SignalIn) or destination (MccDaq.SignalDirection.SignalOut) of the specified signal.

signalType

The signal type connection to retrieved. Refer to SelectSignal for valid signal types.

index

The connection to reference when more than one connection is 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 connectionPins for the specified output Signal. The first connectionPin is indexed by 0.

For input signals (direction=MccDaq.SignalDirection.SignalIn), always set index to 0.

connectionPin

Returns the specified connection. This parameter is set to 0 if no connection is associated with the signalType, or if the index is set to an invalid value. Refer to the SelectSignal() method's "direction, connectionPin, and polarity parameter values" section for expected return values.

signalPolarity

The polarity for the associated signalType and connectionPin.

For output signals assigned an AuxOut connectionPin, the return value is either Inverted or NonInverted.

For AdcConvert, DacUpdate, AdcTbSrc and DacTbSrc input signals, the return value is either PositiveEdge or NegativeEdge.

All other signals return 0.

Returns

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.