Timestamp Error in Simulink From Workspace Block

5 ビュー (過去 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
  1 件のコメント
석준
석준 2023 年 10 月 4 日
Thank you for your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by