Import a signal from workspace to simulink
2 ビュー (過去 30 日間)
古いコメントを表示
I am doing motion control and I have imported a signal from SPiiPlus MMI Application into .m file to do a simulation
It is a position reference and i need to use that reference position for my simulation
i tried 'From workspace' block, 'Signal from workspace' block and output to the 'scope' block and I am unable to get the desired reference result
0 件のコメント
回答 (1 件)
Andreas Goser
2023 年 5 月 3 日
編集済み: Andreas Goser
2023 年 5 月 3 日
My guess is the From Workspace block is missing time values as your variable CH3 only has data values.
2 件のコメント
Andreas Goser
2023 年 5 月 3 日
編集済み: Andreas Goser
2023 年 5 月 3 日
There are multiple options, see https://www.mathworks.com/help/simulink/slref/fromworkspace.html. Assuming your measurements are equidistant, you could create a time vector with the same size as CH3 and then concatenate both to a matrix the From Workspace block understands.
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!