I have a double input but the CANdbc requires an uint16 in vehicle networking toolbox. This throws up an error.
I have a double input but the CANdbc requires an uint16 datatype specified. I am using a CAN pack block but during the compilation it throws up an error regarding the incorrect datatype. I tried using the data type conversion block but it throwed up an error regarding the round() function. We are using the embedded coder to compile the model.
The constant block image is also shared
This is my CAN pack setup
The exact error I am getting
I am using matlab 2021b for the testing of my codeI have a double input but the CANdbc requires an uint16 datatype specified. I am using a CAN pack block but during the compilation it throws up an error regarding the incorrect datatype. I tried using the data type conversion block but it throwed up an error regarding the round() function. We are using the embedded coder to compile the model.
The constant block image is also shared
This is my CAN pack setup
The exact error I am getting
I am using matlab 2021b for the testing of my code I have a double input but the CANdbc requires an uint16 datatype specified. I am using a CAN pack block but during the compilation it throws up an error regarding the incorrect datatype. I tried using the data type conversion block but it throwed up an error regarding the round() function. We are using the embedded coder to compile the model.
The constant block image is also shared
This is my CAN pack setup
The exact error I am getting
I am using matlab 2021b for the testing of my code simulink, can pack, vehicle networking toolbox MATLAB Answers — New Questions