LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing a Matlab model window from Labview

Hi,
 
I use Labview with the Simulation Interface Toolkit to control a simulation system from Labview. I need to change the Simulink model dynamically from Labview when the users choose a given option (I directly replace code snippets in the .mdl file). In order to do this, I need to close the model window in Matlab from Labview and reload it when the modification is done.
 
Any idea?
 
Thanks,
 
Alex
0 Kudos
Message 1 of 4
(2,895 Views)
Greetings!
   Thanks for the request. Re-launching the model is required after every change. The connection manager retains the information and uses it in re-launch. Please refer to Page 16 of the simulation interface toolkit. You can submit a product suggestion in our product suggestion page. Also I am sure you would know the following -

You could build the model into a DLL for stand-alone simulation. You need MATLAB, Simulink, and Real-Time Workshop to build a model DLL and configure the user interface using the SIT Connection Manager Dialog box. Once you create the model DLL and user interface, you need only LabVIEW to run the simulation.

Thanks and hope this helps. Good luck
Avi

0 Kudos
Message 2 of 4
(2,881 Views)

Hi,

Thanks for the answer. Do you mean by reloading that I have to re-initialize the model each time I change the file? If you are, then I'll do just that, although that was pretty much what I was trying to avoid Smiley Wink

As for the DLL option, I know that it would be the very best option, but since I must change the model between each simulation run, I can't compile it statically... Anyway this project is destinated to a university and they have a Matlab license for each computer.

Thanks,

Alex

0 Kudos
Message 3 of 4
(2,876 Views)
Greetings!
    Yes , you could reinitialize the model and launch the connection manager from SIT. Please let me know if there are problems.
Thanks
Avi


0 Kudos
Message 4 of 4
(2,868 Views)