04-11-2019 01:32 AM
How to create subVI of VIs containing control and simulation loop functions e.g. TF block, summation, gain, saturation etc??
Regards
WAQAR
04-11-2019 03:08 AM
Do you want to create "Sub System"?
Types of Simulation Subsystems (Control Design and Simulation Module)
04-11-2019 05:21 AM
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.