Hello
I have imported a model as a DLL from Simulink to LabVIEW using Simulation Interface Toolkit 3.0.1 and I execute it on a Windows computer. The model is a simulator of real mechatronic device and is very complex so I decided to import that instead of writing it from the beginning in LV. My aim is to test some control algorithms (like PID, fuzzy, etc) on this model in LV before I apply them on real device. I'd like to get a subVI with that model as a kind of black box with some inputs and outputs and put it to the control loop similar to that demo:
http://forums.lavag.org/index.php?act=attach&type=post&id=6880
Imported model works fine independently from Matlab but I can't create a subVI to put it in closed control loop. Below is a diagram with my model automatically generated by SIT:
http://forums.lavag.org/index.php?act=attach&type=post&id=6881I can't use it as a subVI in control VI because of front panel terminals inside loops. I tried to overcome that using property nodes or global variables but there was no success.
Front panel:
http://forums.lavag.org/index.php?act=attach&type=post&id=6882
Any suggestions how to solve the problem?
Regards
610