Enumerates all inputs in the Multisim circuit.

Syntax


Function EnumInputs( _
       ByVal inputType As SimulationIOType)  _
       As Variant

Parameters

inputType—Specifies what type of sources to enumerate as specified by the enum SimulationIOType enumeration.

Remarks

This method returns the list of all possible inputs (sources) available in the circuit, which match the type specified by inputType. If no inputs are available, the return will be an empty variant. The names returned from EnumInputs can be used in input functions ReserveInput, ClearInputData, SetInputDataRaw and SetInputDataSampled.

  Only Voltage and Current are valid selections for the io type terminal. Power and Digital will have no effect on this function.

Example


Dim Circuit As MultisimInterface.MultisimCircuit
Dim inputs() As String
Dim DataValues(1, 99) As Double ' 2-dimensional array of time-voltage data

Private Sub SetupInputs()

       If Circuit Is Nothing Then
              Exit Sub
       End If

       On Error GoTo ErrorHandler

       ' Get a list of all voltage and current inputs
       inputs = Circuit.EnumInputs(SimulationIOAll)

       ' Set the input of the first source component to use the array of data
       Call Circuit.SetInputDataRaw(inputs(0), DataValues, True)

       Exit Sub

ErrorHandler:
       MsgBox "Input Error" & vbCr & Circuit.LastErrorMessage

End Sub