NI Labs Toolkits

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW support for FMI for Model Exchange

Description


The Functional Mockup Interface ("FMI") is a vendor-independent dynamic system model format, described more fully here. Instances of models in this format are called Functional Mockup Units ("FMU's.")

This tool adds partial support for FMI to LabVIEW. In particular, it supports the import of Model Exchange FMU's of version 1.0 or 2.0. This tool does not currently support the import of models generated in the "Co-simulation" form, nor does it support the export of FMU's from LabVIEW.

Requirements

  • Windows operating system
  • LabVIEW 2014
  • LabVIEW Control Design and Simulation Module 2014
  • One or more FMU's. (An example FMU is provided in the tutorial.)

Instructions

  1. Download the installer.
  2. Unzip the file to a temporary directory.
  3. Run setup.exe, and follow the on-screen prompts.
  4. Follow the instructions in the tutorial to import and run your FMU.

History

9-2-2015: New version (1.0.39) posted. This version contains bug fixes related to event handling.

9-18-2015: New version (1.0.40) posted. The file is "NI Labs--FMI For Model Exchange v2.zip". This version turns off verbose logging and fixes an incorrect setting in the configuration file (EMI_FMI Configuration.txt)

Comments
Harshapolimi
Member
Member
on

ni.jpgHi,

 

Thanks for this wonderful support for FMI, I'm able to run the FMU model in LabVIEW as being instructed. I have created a simple model of a DC motor in Openmodellica, I exported the modelica model into FMU. When I try to import it in LabVIEW I notice these things:

1. It showed me that I have one input port and an output. (Attachment shows that I have Input as well as put in my model)

2. The input and output terminals doesn't show up in the VI. (problem that has to be solved)

3. The name of the FMI model doesn't changes automatically to the file name of .fmu

without the terminals I can not use the FMI block.

Looking forward for the support Thanks in advance for your time!

xmalik16
Member
Member
on

Hello,

i have absolutly the same problem. Termanals is not possible to see, display or anyway make them visible.

Thanks for every idea
Lukas

TedAnderson
Member
Member
on

Hi,

 

Did @xmalik16 and @Harshapolimi resolve this issue? I'm hoping to get back into Modelica soon.

 

Cheers,

Ted

xmalik16
Member
Member
on

Hi Ted,

 

I didn't resolve the problem. This tool is not applicable in my point of view although tool seems anyway easy to use. Instead of this way I moved to linux OS and OpenModelica under the linux. I'm able to run executable program and debug them inside the cRIO. This way seems hopeful.

 

Regards

Lukas

yanhong
NI Employee (retired)
on

Hi @xmalik16 and @Harshapolimi, 

Would you attach your .fmu files here ?

 

Thank you!

-Yanhong

Taylorh140
Member
Member
on

I had the same issue with this not working properly. I think there are some things to consider. (on Windows)

A. If you have LabVIEW 32bit use 32 bit Openmodellica.

B. This only works with Model Exchange setting (combo mode doesn't seem to work).

C. I think there is a permissions issue with Openmodellica (it seems to occasionally require different permissions) So i just copy the output folder, to a more usable location.

Settings i used are:

Taylorh140_0-1618500132528.png

Hope it helps.

Contributors