Can I create PLC codes with variable-size arrays in the Simulink PLC Coder trial
Ältere Kommentare anzeigen
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 Kommentare
Aditya Venkataraman
am 5 Mai 2016
Bearbeitet: Aditya Venkataraman
am 5 Mai 2016
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
am 21 Jun. 2016
I have exactly the same problem! Has anybody found an answer to this by now?
Antworten (2)
Bill Chou
am 22 Jun. 2016
0 Stimmen
Unfortunately Simulink PLC Coder does not support variable-size signals as outlined here:
sajjad allahgoli
am 11 Mär. 2018
0 Stimmen
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
Kategorien
Mehr zu Simulink PLC Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!