Trouble with From Workspace Simulink Block
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm using a From WorkSpace Simulink block in R2013 and I keep getting this error even though I created the structure with time and signals.values fields.
Invalid structure-format variable specified as workspace input in 'TestVICONcode/From Workspace'. If the input signal is a bus signal, the variable must be a structure of MATLAB timeseries objects. Otherwise, the variable must include 'time' and 'signals' field, and the 'signals' field must be a structure with a 'values' fields.
Here is the code I used to create the structure I want to input into my Simulink model.
signals = struct('values', [1, 2; 2, 4; 3, 6],'dimensions', [2 1]);
Output_GetTimecode = struct('signals', signals);
Output_GetTimecode = struct('time', [0; 1; 3] );
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!