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!