EnumOutputs
- Updated2026-03-24
- 1 minute(s) read
Enumerates all outputs in the Multisim circuit.
Syntax
Function EnumOutputs (_
ByVal outputType As SimulationIOType) _
As Variant
Parameters
outputType—Specifies what type of probes to enumerate as specified by the enum SimulationIOType enumeration.
Remarks
Returns a list of strings containing the names of all probes available in the circuit, which match the type specified by outputType.
The output names matches exactly the ones that appear in the Output tab of the analysis setup pages in Multisim.
If no outputs are available, an empty variant is returned.
The names returned from EnumOutputs can be used in the output functions SetOutputRequest, OutputReady, GetOutputData and ClearOutputRequest.
Example
Dim Circuit As MultisimInterface.MultisimCircuit
Dim outputs() As String
Private Sub SetupOutputs()
If Circuit Is Nothing Then
Exit Sub
End If
On Error GoTo ErrorHandler
' Get a list of all output probes (test points)
outputs = Circuit.EnumOutputs(SimulationIOAll)
' Set all of the outputs to retrieve data
Dim output As Variant
For Each output In outputs
Call Circuit.SetOutput—Request output, SimulationInterpolationForceStep, _
sampleRate, numSamples, True)
Next
Exit Sub
ErrorHandler:
MsgBox "Error setting outputs" & vbCr & Circuit.LastErrorMessage
End Sub
See Also