Fixed-Point Data Type Limitation and Workaround in VeriStand Model Generation Support Add-On

Updated Jun 24, 2026

Reported In

Software

  • VeriStand
  • Simulink

Issue Details

When using the VeriStand Model Generation Support Add-On, Simulink model compilation may fail if fixed-point data types are connected to VeriStand Out blocks. During compilation, the following error message is reported:
Error reported by S-function 'VeriStandIO' in 'test/AfeHwFault_LBM_48V_ToBus/VeriStand Out':
VeriStand Error: DataType not supported.
This error occurs because the current add-on does not support fixed-point data types, leading to incompatibility during model generation.

Solution

To resolve this issue, all signals connected to VeriStand Out blocks must be converted to a supported data type, such as double. This can be achieved by inserting a Data Type Conversion block before each VeriStand Out block and setting the output data type to double.

To automate this process, a MATLAB script is provided that adds the required conversion blocks to the model:

  1. Place the attached .m file in the same directory as your Simulink model.
  2. Run the following command in MATLAB Command Window:
addCastToDoubleBeforeVeriStandOut('yourmodelname')
The script will automatically insert Data Type Conversion blocks to cast signals to double before all VeriStand Out blocks, ensuring successful model compilation and compatibility with the VeriStand Model Generation Support Add-On.