Failure When Compiling Model for VeriStand in Simulink®

Updated May 8, 2023

Reported In

Software

  • VeriStand
  • LabVIEW Model Interface Toolkit for VeriStand

Issue Details

I created a custom library with subsystems containing Veristand Inports/Outports at Simulink. I cannot compile the model for VeriStand when the active links to a custom library are in the model. The compilation is successful when I brake the library links and they are not active anymore. 

I want to reach the state when I can compile model with the active library links. What is wrong and why can I not compile the model successfully?

Compilation error generated by Simulink is the following:
 
Code Generation 1 
Elapsed: 0.241 sec 
### Generating code into build folder: XXX 
### Aborted due to an error in the build procedure for model: TestModel 
Error in 'XXX': Initialization commands cannot be evaluated. 
Caused by: Modifying block 'XXX' not supported. 
Component:Simulink | Category:Block diagram error 
Error in 'XXX': Initialization commands cannot be evaluated. 
Caused by: 
Modifying block 'XXX' not supported. 
Component:Simulink | Category:Block diagram error 

Solution

Follow the procedure below to make the compilation with active library links successful:
  1. Right click on the library block and select Create Mask.
  2. Select Initialization tab in Mask Editor window.
  3. Select Allow library block modify its contents.
  4. Close Mask Editor window and compile the model.