twin_platform_support#
- static TwinRuntime.twin_platform_support(file_path)#
Determines whether the TWIN model has Windows and/or Linux binaries.
Note that “zip_handler.namelist()” might return different contents depending on how the model archive was created. For example, FMUs and Twin models return the following list. Note that there are entries for binaries/linux64/ and binaries/win64/ folders.
[ ‘binaries/’, ‘documentation/’, ‘resources/’, ‘modelDescription.xml’, ‘binaries/linux64/’, ‘binaries/win64/’, ‘binaries/linux64/ModelWith_Min50_Max150.so’, ‘binaries/win64/ModelWith_Min50_Max150.dll’ ]
For a .tbrom model, the following list is returned. Note the absence of binaries/linux64/ and binaries/win64/ folders. [ ‘model.png’, ‘binaries/win64/rom24LP.dll’, ‘binaries/win64/RomViewerSharedLib.dll’, ‘binaries/linux64/rom24LP.so’, ‘binaries/linux64/RomViewerSharedLib.so’, ‘resources/properties.json’, ‘resources/binaryOutputField/basis.svd’, ‘resources/binaryOutputField/points.bin’, ‘resources/binaryOutputField/settings.json’, ‘resources/binaryOutputField/views.json’, ‘resources/binaryOutputField/operationsDefinition.json’, ‘resources/model.coreRom’, ‘modelDescription.xml’] ]