1. Direct MATLAB's directory to your model's subfolder. Let's use the Simulink model - InOut.slx as an example.

2. Uninstall VeriStand Model Framework from NI Package Manager, then install VeriStand Model Generation Support Addon 24.3 or newer version from MATLAB Add-Ons. Restart MATLAB.
3. Verify if the old VeriStand In/Out blocks are shown as ??? in the Simulink model.
4. Redirect MATLAB's directory to your model's subfolder. Run the following commands sequentially. It will load the model and replace NIVeriStand In/Out blocks with the new VeriStand In/Out blocks.
- load_system("InOut")
-
load_system('VeriStandBlocks')
- replace_block("InOut","NI VeriStand Inport","VeriStandBlocks/VeriStand In")
- replace_block("InOut","NI VeriStand Outport","VeriStandBlocks/VeriStand Out")
- save_system("InOut")
6. Verify if all the NIVeriStand In/Out blocks have been replaced.
7. Refer to Creating Simulation Models Using VeriStand Model Generation Support Add-On to compile the Simulink model.