Can I create PLC codes with variable-size arrays in the Simulink PLC Coder trial

조회 수: 3 (최근 30일)
Hello, I am trying the trial of the Simulink PLC Coder. It runs well if the Matlab block doesn't include variable-size arrays. But if I add variable-size arrays, it shows me that " Variable-size arrays are currently disabled for code generation. Consider selecting the 'Support variable-size signals' option on the Configuration Parameters > Code Generation > Interface page. " I tried to do what it said. But I couldn't find the item it shows me. I don't know if the trial version allow me to use the variable-size arrays. If you know anything, please reply me. Thank you very much!!!!!!!!
  댓글 수: 2
Aditya Venkataraman
Aditya Venkataraman 2016년 5월 5일
편집: Aditya Venkataraman 2016년 5월 5일
Please help. I have the same issue, as well. I can't locate the option suggested in the menu. I looked online for a solution but there is no documentation on this.
Ruven Weiss
Ruven Weiss 2016년 6월 21일
I have exactly the same problem! Has anybody found an answer to this by now?

댓글을 달려면 로그인하십시오.

답변 (2개)

Bill Chou
Bill Chou 2016년 6월 22일
Unfortunately Simulink PLC Coder does not support variable-size signals as outlined here:

sajjad allahgoli
sajjad allahgoli 2018년 3월 11일
I have too this problem. i define a empty matrix for desired matrix like bellow: A= zeros(10,10); then you can define variable size matrix and generate its plc code. hope this helps sajjad

카테고리

Help CenterFile Exchange에서 Simulink PLC Coder에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by