I am trying to convert a Simulink model (.mdl) to a VI labVIEW model by using tha Simulation Model Converter.
The Simulink model contains some parameters (Matlab variables) initialised through a .m script.
The conversion fails and the following error is reported:
ERROR: LabVIEW could not communicate with MATLAB.An installation of MATLAB is required to use initialization scripts.
I am using MATLAB 2009b and LabVIEW 2010 SP1.
Is it a bug or is there some configuration that I am missing?
My name is David and I am an Applications Engineer at National Instruments UK.
There versions of MATLAB and LabVIEW that you are using should create no problems as they are compatible with each other. Do you have the error code for the error that occurs? This should speed up the trouble shooting process. Also what is the reason for you converting the Simulink model to LabVIEW? Have you considered using the LabVIEW Simulation Interface toolkit which is designed to create a LabVIEW User-Interface for Simulink models? I have included a link to this for you to have a look at:
I hope this helps and am more than willing to try and help further if you reply with some more details.
Thank you for answering.
First of all, I am a LabWIEW newbie, whereas I have got some experience in Matlab/Simulink.
No error code is returned. The conversion procedure just terminate with a window displaying the error I reported and some more errors related to the fact that the .m script was not run.
Recently, my company has decided to switch to NI technolgy to implement a control loop on a FlexRIO board.
Previously we used Simulink to perform design, simulation and hardware implementation of the control loop.
So now I was trying to port all my stuff to LabWIEW.
The LabVIEW Simulation Interface toolkit seems interesting. How can I launch it? Do I need a special license to use it?
OK, I am trying to use the Simulation Interface toolkit, but I got stuck again.
I cannot find the"NI signal probe" model in Simulink libraries.
Considering the problem I have reported before in this thread, I believe that Matlab was not properly configuredduring the installation of LabVIEW.
Am I right? Is there a way to configure it?
The reason that the NI Signal Probe is not showing up in Simulink is most like as you expected, that it was not configured properly during installation.The 'MATLAB Support' option needs to be selected during the installation process. If you check whether or not this is selected then it could well be the solution to your issue. Either way, let me know the outcome.
Thank you David.
is there a way to to check if I have gotn the Matlab support installed?
If not, can I install it without reinstalling LabVIEW?
No problem. If you try to reinstalll LabVIEW your PC should tell you that LabVIEW is already installed so won't install it completely again but you should still get the option to check the 'MATLAB' support option.
I hope this works for you.
Well... I checked all installation DVD and there is no MATLAB support or any other toolbox mentioning MATLAB to install.
I'm quite lost. Is there a way to download it?
I have found MATLAB support + Simulink Interface Toolkit (SIT) on NI web page, I have downloaded and installed them, but still does not work at all.
For instance, when I open Matlab the message
Starting the SIT Server on port 6011
SIT Server started
is not desplayed (it should be accrodingly to this web page: http://zone.ni.com/devzone/cda/tut/p/id/3057)
Sorry for the late reply, I was in a meeting yesterday when you replied. In my opinion the reason that you are not seeing the message that you should is due to the path to the SIT server in MATLAB possibly being wrong. Unfortunately we have very few resources here to help with path specifications on other applications. It could be worth contacting MATLAB technical support as they will know more about this side of things. Also just one last check that you are running MATLAB while trying to do all of this?
Have a nice day.