State Flow C Action Language Bitwise Operators
이전 댓글 표시
I am trying to use bitwise operators to AND as well as OR an uint value with an int value in stateflow with C action language. I need to use 32 bit values but the results appear to be incorrect with 32 bit values, while 8-, 16-, and 64- bit values all seem to give correct results. Image below shows the stateflow chart and correct results using 16 bit values vs incorrect results with 32 bit values. Am I missing something? Or is this a known issue?

댓글 수: 1
Fangjun Jiang
2024년 4월 26일
It makes me worried. int, uint, and, or, all keywords.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Decision Logic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!