From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

Constant issue: .mdl to .vi via simulation model converter / Control, Design and Simulation

Hello,

 

I am trying to convert some simulation .mdl Simulink files to .vi files using the Control, Design and Simulation Toolkit.  Currently, I'm just trying to learn what the limitations of this conversion process are.

 

The first limitation that I have found is in the conversion of a Simulink Constant (of type int or double).  The converted virtual instrument block diagram shows a constant but it is set to zero(?).  Somehow, the constant loses it's Simulink value during a conversion. I have tried changing some properties and parameters in Simulink but so far I have had no luck in finding a solution.  Does anyone have any thoughts or comments on this?

 

Additionally, I have attached both the .mdl file and resulting .vi file.

 

Cheers,

Abe

 

Software:

NI LabVIEW 2013

Mathworks Matlab and Simulink R2013b

Download All
0 Kudos
Message 1 of 4
(2,524 Views)

Hoping someone might have something to say today,

 

Cheers,

Abe

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

Hello Abe,

 

Thank you for posting your question concerning the Simulation Model Converter.  After looking through the VI and the screenshot you posted, it does appear that the constant is losing its value.

 

Could you please post the .mdl file as well, so we can try to reproduce the issue?

 

Best Regards,

Cameron
0 Kudos
Message 3 of 4
(2,477 Views)

Hi Abe,

 

Do you get any errors when going through the conversion process? Also, what settings are you choosing in the Simulation Model Converter? 

 

 

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 4 of 4
(2,459 Views)