From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulink Model to LabView VI converter

Dear Andy Chang ,

 

Thanks of the information.

 

I have tried to get .VI for the below mentioned simulink model.

 

But it is giving the errors (as attached in *.jpeg images).

 

Pls help me also let me know the trick to be used for errorless VI regarding this matter.

 

I am using below mentioned versions of LV and Matlab.

LabVIEW 2012

MATLAB 2013a

 

Thanks !

Shailesh

+919766108221

Download All
0 Kudos
Message 11 of 13
(893 Views)

Hey Shailesh,

 

Andy's post is from almost 4 years ago so next time, if you have a new question, I would recommend creating a new thread.

 

With regards to the errors you're receiving, they are expected behavior based on the function blocks you're using. Per the Control Design & Simulation help documentation, note that the Simulation Model Converter only supports blocks in the The MathWorks, Inc. Simulink® application software Base package. This is discussed further here:

 

Unsupported Blocks (Control Design and Simulation Module)

http://zone.ni.com/reference/en-XX/help/371894G-01/lvsimconcepts/sim_c_ublocks/

 

The simulation blocks in your application are from The MathWorks, Inc. SimPowerSystemslibrary and are therefore unsupported for the conversion process. Since they're unsupported the converter is creating placeholder simulation subsystems (as expected and as explained in the above help) that you will then need to code with the proper logic (in LabVIEW) to create those subsystems. Should you not want to re-code the subsystems and if you have the LabVIEW Simulation Interface Toolkit (SIT), you may want to build your model into a dll and communicate with it using the SIT API's below:

 

User Interface VIs

http://zone.ni.com/reference/en-XX/help/371504E-01/lvsit/user_interface_vis/

 

Model Interface VIs

http://zone.ni.com/reference/en-XX/help/371504E-01/lvsit/model_interface_vis/

 

However, note that the latest version of The MathWorks, Inc. MATLAB® software supported by the LabVIEW Simulation Interface Toolkit 2012 (Since you're in LabVIEW 2012) is MATLAB 2011a. This is discussed further here:

 

LabVIEW 2012 Simulation Interface Toolkit Readme

http://digital.ni.com/public.nsf/allkb/049295038FF0EE2A86257A06006B2DAD

 

Hope this helps!

 

--Ryan_S

 

MATLAB, Simulink, and SimPowerSystems are Registered Trademarks of The MathWorks, Inc.

0 Kudos
Message 12 of 13
(873 Views)
Dear Ryan, Sorry for the inconvenience caused.Next time i will keep in mind. Thank you for your meaningful reply. - Shailesh
0 Kudos
Message 13 of 13
(856 Views)