National Instruments Circuit Design Community Blog

Community Browser
Labels
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: LabVIEW-Multisim Co-Simulation with Variants and Hierarchical Blocks (Part 2)

NI Employee

Last week I described how to achieve design reuse for LabVIEW-Multisim co-simulation using variants, and promised to describe how to achieve the same thing using hierarchical blocks the week after. Our goal was to be able to use only one design, whether for LabVIEW-Multisim co-simulation, Multisim-only simulation, or transfer to Ultiboard for layout.

Hierarchical Blocks

The HB/SC connectors that you use for co-simulation are the exact same connectors that you use for hierarchical designs. By using the exact same connectors, the design you have for co-simulation is already setup for hierarchical designs, so our first step is to create a container schematic to host the design.

File > New Design

Next, we will place the primary design as a hierarchical block in this container (Place > Hierarchical block from file...). If your using the summer example, you can file the same at C:\Users\Public\Documents\National Instruments\Circuit Design Suite 12.0\samples\LabVIEW-Multisim Co-simulation\summer.ms12.

hb_with_summer.png

Our design looks a little sparse, so let's add some sources to drive the input connectors and a scope to show the output.

hb_complete.PNG

For LabVIEW-Multisim co-simulation, just simulate as normal. For Multisim-only simulation, select the container design, and simulate. For transfer to Ultiboard, open the summer design, and transfer as normal.

I've attached the complete design as a Multisim packed project.

Garret
Senior Software Developer
National Instruments
Circuit Design Community and Blog

If someone helped you, let them know. Mark as solved or give a kudo. Smiley Happy
Comments
Member

Hey Garret,

Very helpful post, can you do the same for "bus HB/SC connector" to use with LV cosimulation?

Ahmad Zaatari

National Instruments
Applications Engineer
NI Employee

Hi Ahmad,

The bus HB/SC connectors are not exposed for co-simulation, so they will not work in this way.

Garret

Garret
Senior Software Developer
National Instruments
Circuit Design Community and Blog

If someone helped you, let them know. Mark as solved or give a kudo. Smiley Happy