Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Code syntax for logical ABM components

Hello,

 

I have a simple programming question. I have a simple condition along the lines of,

 

If  -1.5< Vd <1.5, then condition 1

Otherwise, condition 2

 

How does one do this in the ABM code syntax? I know in C+ it'd be along the lines of what I'd written above or use the && statement, however , I am not sure what is correct in Multisim.

 

Thanks for any help

0 Kudos
Message 1 of 2
(4,688 Views)

Hello,

 

Check the Multisim Help menu. Go to the search tab and type "supported mathematical function". You'll find All the functions with ekamples on using the ABM.


For if you wanted the voltage of something based on some condition then,

 

V={if(testCondition, condition1, condition2)}

 

You can also see this white paper for more specific examples.
https://forums.ni.com/t5/NI-Circuit-Design-Community-Blog/Creating-a-Multisim-Component-from-the-Ana...

 

Regards,

Miguel V
National Instruments
0 Kudos
Message 2 of 2
(4,675 Views)