I am getting this error why? I tried sending all rang of data(uint ,sfix ) and tried all type of data conversion, I changed the sample per clock cycle to 8 and decimation to 2

6 次查看(过去 30 天)
Data type mismatch. 'Input Port 1' of 'soc_range_doppler_top/RF Data Converter/Sample to Stream1/Variant/ADC_tdata0' expects a signal of data type 'uint32'. However, it is driven by a signal of data type 'ufix128'.
Component:Simulink | Category:Model error
Data type mismatch. 'Output Port 1' of 'soc_range_doppler_top/RF Data Converter/Sample to Stream1/Variant/On' is a signal of data type 'ufix128'. However, it is driving a signal of data type 'uint32'.
Component:Simulink | Category:Model error
  3 个评论

请先登录,再进行评论。

回答(1 个)

prabhat kumar sharma
Hello Piyush,
I understand that you are encountering an error and are also unable to open the "RF Data Converter" block.
Based on the error you've described, the issue appears to be due to a data type mismatch.
The problem is that 'Input Port 1' of the 'ADC_tdata0' block is expecting a signal of data type 'uint32', but it is instead receiving a signal of data type 'ufix128'. To resolve this issue, you need to convert the 'ufix128' data type to 'uint32' before it reaches the 'ADC_tdata0' input port. This conversion can be achieved by inserting a Data Type Conversion block that changes the 'ufix128' signal to 'uint32'. A similar conversion is necessary for 'Output Port 1'.
After you have inserted the necessary conversion blocks, please update the model and verify that there are no remaining data type mismatches.
If no further errors are present, proceed to run the simulation to confirm that the data type conversion does not negatively impact the model's functionality.
Regarding the inability to open the subsystem, please make sure you have tried all the following methods:
There are three different ways to open a subsystem in a new window.
1. Hold the 'Shift' key while double-clicking on the subsystem.
2. Open the Model Browser, and hold the 'Shift' key while clicking on the subsystem in the model browser.
3. Right-click on the subsystem and choose "Open in New Tab."
I hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by