LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating subVI containing control and simulation loop functions

How to create subVI of VIs containing control and simulation loop functions e.g. TF block, summation, gain, saturation etc??

 

Regards

WAQAR

0 Kudos
Message 1 of 3
(2,098 Views)

Do you want to create "Sub System"?

Types of Simulation Subsystems (Control Design and Simulation Module)

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 3
(2,076 Views)

There are million ways to do that. It depends on the details, as usual.

 

When do you want\need to switch? What do you want to control? What and how do you want to simulate?

 

For me, I'd automatically go for OO. Implement an interface for each device, then implement a child for the physical device, and one for the simulation device. Then switch when appropriate.

 

Or is it that you want a control loop, and test that control loop against a simulation? A similar solution would apply, but again, details are quite important here.

0 Kudos
Message 3 of 3
(2,067 Views)