Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create virtual components

Dear Multisim professionals.

I have a problem with creation of new component. The task is to create component, which will have several adjustable properties. Just like virtual components, which has Special tab on properties window, where you can specify parameters.
My research on Multisim documentation didn't reveal any way to create such type of components with custom editable properties.

I will really appreciate any advice.
0 Kudos
Message 1 of 3
(4,080 Views)

Hi StudentNI,

Currently, users do not have the ability to do this.

However, you can take an alternate path which will produce almost the same result using subcircuit parameters

 


Here's how you do this:

When creating a component, during the model creation stage, append to your the SPICE ".subckt" statement

"PARAMS: param1=xx param2=xx param3=xx...", where "param1" is an arbitrary name and its right hand side value is an arbitrary number

You can use these parameter names alone, or as part expressions, in your SPICE model. 

 


For example:

 

.SUBCKT FOO 1 2 3 4 5 PARAMS: AV=100K VRP=1 VRN=1 RO=10 Rin=10Meg

 

V1     1 2 DC {VRN}
R1    100 0 {(Rin/5)+1} 
B1    101 0 V = { (V(V_POS)+V(V_NEG))/2 + VRP  }

...

 

.ENDS

 

 

 

When you place this component on the schematic, double click it, and press "edit model", you will notice a special instance parameter text box containing the parameters you defined on the .subckt line. You can overwrite the default values for each instance of the component! This has the same effect as the virtual component with the exception of the user friendliness of tabular format.

 

Cheers,

 

Alec


Max
National Instruments
Message 2 of 3
(4,057 Views)
Dear Maxish,
 
THANK YOU SO MUCH!!!
It's just what I need. At least, it will be enough for my task. You really helped me.
0 Kudos
Message 3 of 3
(4,049 Views)