int64 in simulink / stateflow?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I'm working on a simulink model using stateflow charts, there is no option to declare variables to be of the int64 datatype. When I attempt to use int64(var), it gives me an error saying "Cast to 'int64' class is not supported".
Is there a workaround to this that will allow me to use int64 variables in my model?
0 Kommentare
Antworten (2)
ES
am 4 Sep. 2013
Matlab supports int64 whereas Simulink/Stateflow does not.
Workaround will be to use two int32 variables.
so your expected value will be UpperInt32Variable * LowerInt32Variable.
You can increment UpperInt32Variable every time the LowerInt32Variable overflows.
1 Kommentar
Andy Bartlett
am 10 Sep. 2020
Update: 64 bit integer modeling in Stateflow is now available.
As a side note,
when discussing usage of 64 bit integers in Simulink,
the question of required licenses often comes up.
In R2016b and earlier,
use of 64 bit integers in Simulink requires a Fixed-Point Designer license.
As of R2017a,
usage of 64 bit integers in Simulink does not require any additional licenses.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Stateflow finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!