EMI_GetCurrentVersion (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_GetCurrentVersion (EMI Function)
Owning Class: User Interface
Requires: Control Design and Simulation Module
Prototype
long EMI_GetCurrentVersion(void);
Description
Returns the current installed version of the External Model Interface. A return value of 1 indicates the LabVIEW 2009 External Model Interface. Use this function in the Simulation shared library NILVSim.dll, (Mac OS X) NILVSim.framework or (Linux) NILVSim.so, located in the labview/vi.lib/Simulation/Implementation/Shared/ directory, to determine which version of the External Model Interface is installed. Generate C/C++ code that is compatible with the installed version of the External Model Interface.
Return Value
Returns the current installed version of the External Model Interface. A return value of 1 indicates the LabVIEW 2009 External Model Interface.
Examples
switch(EMI_GetCurrentVersion())
{
case 1 :
// Generate code compatible with version 1 of the External Model Interface.
// Version 1 was first released with LabVIEW 2009.
// ...
break;
default :
// Handle any other version of the External Model Interface.
// Consider reporting an error or warning.
}