I am trying to use matlab to run a bunch of simulations in Multisim. I managed to get it to talk to multisim and run the simulations and return the data. Now, the whole point of this is to use matlab to automatically change parameters in the circuit which is where my problem starts. I can use the command
circuit.CircuitParameterValue('R1')
which correctly returns the value of R1 which is a parameter. So how to I change that parameter say from 10 to 11? I tried a lot of combinations of "=11" with the above to no avial. If you look in the manual it does not have an example it just says this:
Syntax
Property CircuitParameterValue ( _
ByVal
CircuitParameterName As String) _
As Double
Parameters
CircuitParameterName—The name of the circuit parameter to get/set.
Remarks
This read/write property allows the user to get/set the value of a circuit parameter.
If the circuit parameter does not exist in the circuit, an error occurs.
Attempting to change circuit parameter values while a simulation is running causes an error. The simulator must be in the stopped state.
If a circuit parameter contains an expression, it will be evaluated first. For example if x=1
, x+1
will return 2
, not “x+1
”. If an error occurs, 0
will be returned.
When setting a circuit parameter value, only numeric values are supported, not expressions.
To access parameters inside sub-sheets, use:
<HB/SC refdes>.<parameter name>
For example, SC1.Vin
Anything helps, especially an autmoation example from something other than labview.