Why do I get a sample time mismatch error in my test harness that has a bus input?
I created a test harness for a subsystem which has a bus signal as input. I am providing a test sequence as an input, which has discrete sample time signals. When I attempt to run the simulation in the harness, I encounter the following error message.
Sample time mismatch. Sample time (0.001) of the signal at output port 1 of 'subsystemName_Harness1/Test Sequence' does not match the sample time (0) specified for this signal by the bus element in the bus object 'busName'. The bus object is resolved to the output port of 'subsystemName_Harness1/Input Conversion Subsystem/SigSpec1'. To eliminate this mismatch, consider changing the bus element property or the mismatching block settings.
I cannot change the sample times in the "Input Conversion Subsystem" because all the settings are grayed out. How can I fix this problem?
Best Answer