Solution
As the above error message notes, this error is typically caused by either a mismatch between a model's data and specified data of that model in VeriStand, an issue with global parameters for your project's models having the same name but different dimensions, or the use of non-Unicode characters (such as Chinese characters) in model or parameter definitions. Below are some steps that can be tried for these scenarios.
- For issues with model data size mismatch:
- To ensure that your models are referencing their DLLs correctly, remove the models present in your project, save your project, and re-import the models into your project. Ensure that when you re-import the models, you are specifying to import the models with parameters as shown below.
- If the issue persists after re-importing your models, you should check to ensure that your Vector Port Specification is correct for your imported parameters. This setting controls whether or not inport/outport vectors are imported as a collection of scalar channels or a single vector channel. Scalar channels are easier to connect to other parts of your system but could result in data mismatches if you try to map a port broken into scalar channels to a model expecting a vector channel - the appropriate implementation will depend on your project. Vector Port Specification is another setting in the "Add Simulation Model" dialog box.
- If your issue persists, you could run the System Definition vs Model File Compare Tool, an open-source tool developed to compare System Definition and Model File parameters to determine mismatches. Correcting issues revealed by the tool should resolve errors dealing with model size mismatches.
Ensure that model names, parameter names, and related definitions do not contain non-Unicode characters (such as Chinese characters). The presence of such characters can lead to unexpected errors or incompatibilities in VeriStand. Replace any non-Unicode characters with standard ASCII/Unicode-compatible characters and reload the project to verify whether the issue is resolved.