Error -383200 When Loading FMI Models Using LabVIEW Model Interface Toolkit

Updated Mar 26, 2024

Reported In

Software

  • VeriStand
  • LabVIEW
  • LabVIEW Model Interface Toolkit

Issue Details

I’ve developed a simulation model using the FMI standard, and now I want to load and run it using the LabVIEW Model Interface Toolkit. However, when I run the VI that loads the model, LabVIEW throws the error -383200. How can I resolve this?

Error -383200 occurred at xxx. <Additional Message>  Model Interface Toolkit: Failed to load file model xxx.

Possible reason(s):
Model Interface Toolkit: Cannot load model. Ensure the Model Library Path is valid and the model conforms to the NI VeriStand Model Framework header file (ni_modelframework.h). If you are deploying to a VxWorks target, you must FTP your .out file to the ni-rt/ or ni-rt/system/ directory.

 
Error SCR.png

Solution

The error indicates that LabVIEW failed to load or open the VI on the initialization step.
To resolve the error:
  • Ensure that the model conforms to the NI VeriStand Model Framework header file (NIVERISTAND_API.h). Otherwise, LabVIEW returns error code -383200.
  • Note that the Model Interface Toolkit exclusively supports Co-Simulation models of version 2.0 according to the FMI standard. Loading a model with any other configuration will fail with an error.
  • Any problems in the FMU XML file can prevent the toolkit VIs from loading the model, resulting in this error.
    • For instance, the default step size is defined in decimal format. If your system interprets a comma as a delimiter instead of a dot, the model parser will generate an error. To work around this issue, adjust the regional settings on your PC or represent the numbers using scientific notation.
  • Make sure the model file is not being blocked by the antivirus software.

Additional Information

You can configure the log level of the FMU to debug your code.