Timestamp Error in Simulink From Workspace Block
3 次查看(过去 30 天)
显示 更早的评论
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
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 Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!