Can not convert USHORT MAX to ufix16_Sp01

2 vues (au cours des 30 derniers jours)
galaxy
galaxy le 19 Nov 2020
Commenté : galaxy le 19 Nov 2020
Dear bros,
In Simulink model, I use constant block which has value (65535) and data type is ufix16_Sp01 (fixdt(0,16,0.01,0)). But there is error
I understand that ufix16_Sp01 is unsigned with wordlength is 16.
So, Can anyone explain for me???

Réponse acceptée

James Tursa
James Tursa le 19 Nov 2020
If you have a slope scaling of 0.01 and a bias of 0, doesn't that mean the max value is 65535*0.01 = 655.35?
  1 commentaire
galaxy
galaxy le 19 Nov 2020
I am wrong.
Thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by