Connect
- Updated2026-03-24
- 1 minute(s) read
Starts a new instance of Multisim and connects to it.
Syntax
Sub Connect()
Remarks
The version of Multisim is specified by the file path stored in the Path property.
This is a synchronous call that does not return until Multisim is initialized and running or has failed to start. Depending on your system, startup may take 10 seconds or more. If the LogFile property is set (it is by default), then Multisim logs critical startup information in the file.
A single instance of Multisim is created for each MultisimApp object.
If using the Path property, it must be initialized before Connect() is called.
Example
Dim MSApp As New MultisimInterface.MultisimApp
MSApp.LogFile = "C:\temp\MultisimLogFile.log"
MSApp.Connect
If Not MSApp.IsConnected Then
MsgBox "Unable to establish connection with Multisim."
End If
' Do some processing
MSApp.Disconnect