VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate dll error using NIVeristand.tlc in matlab r2021b

Hi,

 

    I'am using simulink to generate dll with NIVeristand.tlc, My enviroment is matlab r2021b, VS2019, ni-veristand-2023.

    the error is like this:

 

Error: File: C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc Line: 34 Column: 55 Unable to find BlockIdx within the GlobalBlockOutput scope Main program: ==> [00] C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc:LibGrSrcExists(34) [01] C:\MATLAB\R2021b\rtw\c\tlc\public_api\utils_api.tlc:LibGetBlockPath(115) [02] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiUtilityLib.tlc:NiLibGetBlockPath(276) [03] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(135) [04] C:\VeriStand\2021\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(445) Error: File: C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc Line: 34 Column: 64 The argument for an [] operation must be a repeated scope symbol, a vector, or a matrix Main program: ==> [00] C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc:LibGrSrcExists(34) [01] C:\MATLAB\R2021b\rtw\c\tlc\public_api\utils_api.tlc:LibGetBlockPath(115) [02] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiUtilityLib.tlc:NiLibGetBlockPath(276) [03] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(135) [04] C:\VeriStand\2021\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(445) Error: File: C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc Line: 34 Column: 74 Unable to find BlockIdx within the GlobalBlockOutput scope Main program: ==> [00] C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc:LibGrSrcExists(34) [01] C:\MATLAB\R2021b\rtw\c\tlc\public_api\utils_api.tlc:LibGetBlockPath(115) [02] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiUtilityLib.tlc:NiLibGetBlockPath(276) [03] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(135) [04] C:\VeriStand\2021\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(445) Error: File: C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc Line: 34 Column: 83 The argument for an [] operation must be a repeated scope symbol, a vector, or a matrix Main program: ==> [00] C:\MATLAB\R2021b\rtw\c\tlc\private_api\utility_private_api.tlc:LibGrSrcExists(34) [01] C:\MATLAB\R2021b\rtw\c\tlc\public_api\utils_api.tlc:LibGetBlockPath(115) [02] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiUtilityLib.tlc:NiLibGetBlockPath(276) [03] C:\VeriStand\2021\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(135) [04] C:\VeriStand\2021\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(445) ### Aborted due to an error in the build procedure for model: VeristandSender
    Does anyone know what the problem is?
 
   thanks for any help!
 
0 Kudos
Message 1 of 3
(987 Views)

Are you using the legacy VeriStand Model Framework? Matlab 2021b is not supported. See VeriStand LabVIEW Modeling and Legacy Simulink Modeling Version Compatibility

You should use VeriStand Model Generation Support instead.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 3
(953 Views)

I'm using VeriStand Model Framework, the "NI Package Manager" shows that.

0 Kudos
Message 3 of 3
(939 Views)