Why I cannot use 64 Bit datatype in Stateflow with MATLAB Action Language in R2020a?
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
    MathWorks Support Team
    
 2020년 4월 23일
  
    
    
    
    
    편집: MathWorks Support Team
    
 2023년 1월 23일
            Why I cannot use 64 Bit datatype in Stateflow with MATLAB Action Language in R2020a?
I have a Simulink Parameter with int64 datatype and now in the Diagnostic Viewer I can see the following error:
'paramChartInt64' has a value of an unsupported type.'
In R2019a and R2019b there was no error.
I use the following code to specify the parameter:
paramChartInt64 = Simulink.Parameter;
paramChartInt64.DataType = 'int64';
paramChartInt64.Value =1;
채택된 답변
  MathWorks Support Team
    
 2022년 12월 23일
        
      편집: MathWorks Support Team
    
 2023년 1월 23일
  
      In R2019a and R2019b we unintentionally allowed to use 'int64' datatype in Stateflow charts. This was fixed in R2020a and now it correctly shows an error, because it is not supported.
Our development team currently plans to include this functionality in a future release.
In the meantime you can use the following workaround:
paramChartInt64 = Simulink.Parameter;
paramChartInt64.Value = fi(-1, 1, 64, 0);
64-bit datatypes are allowed in Stateflow starting in R2021a and are represented as a standard builtin type (not a fixed type alias).
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
