ReserveInput
- Updated2026-03-24
- 1 minute(s) read
Reserves an circuit input for later use in simulation.
Syntax
Sub ReserveInput (_
ByVal inputName As String)
Parameters
inputName—The name of a source component in Multisim.
Remarks
Reserves an input, specified by inputName, for use later on during a simulation. Until data is supplied to this input, it has a zero output.
Any of the names in the list returned by EnumInputs may be used as the input name.
This function is not necessary if either SetInputDataSampled or SetInputDataRaw is used before a simulation is begun.
Example
Dim Circuit As MultisimInterface.MultisimCircuit
Dim inputs() As String
Private Sub ReserveInputs()
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)
' Reserve the first input
Circuit.ReserveInput inputs(0)
Exit Sub
ErrorHandler:
MsgBox "Inputs Error" & vbCr & Circuit.LastErrorMessage
End Sub