Timestamp Error in Simulink From Workspace Block

조회 수: 3 (최근 30일)
석준
석준 2023년 10월 3일
댓글: 석준 2023년 10월 4일
Error: "'myOneLegSys/heave +1' has specified an invalid workspace variable as input. Time values should not decrease."
I put the matrix I entered in the from workspace block of the simulation link and ran it, and this error occurred. "MyOneLegSys/heave +1's has been specified an invalid workspace variable as input. Time values should not be specified." From workspace block, the description says, "For matrix types, It says "each row of a matrix contents in the first column and then a vector with the corresponding data sample in the next column", but do I have to make a time vector for the size of the matrix to call up the element values of the matrix?
  댓글 수: 1
檮杌
檮杌 2023년 10월 4일
It would be helpful if you can share the matrix that you tried to use in the "From Workspace" block. Also, it would be good if you can share your Simulink model to reproduce your issue. It's hard to decipher what the issue is only with your description.

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

채택된 답변

Kilsu Kim
Kilsu Kim 2023년 10월 4일
Hello,
If you just want to use matrix or array as a constant value in Simulink, you can simply use "Constant" block instead of "From Workspace" block.
"From Workspace" block is for loading signal data, and you need to use specific formats supported by "From Workspace" block. The following documentations contain many examples of how to load signal data in various formats using "From Workspace".
- From Workspace
- Load Data Using the From Workspace Block

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by