Logging different data at same time

I wanted to log store different data form simulnk motor model like angle, torque, speed, current, back emf. I have tried storing the data with different methods like storing from scope data, using 'to_workspace" block, also using 'log signals' options. But in all theses methods the data is stored at different time stamps. Is it possible to store a specific number of data points (eg; 50000), which is collected at every 0.1 s. I tried changing logging intervals from model settings. But I don't know how to give parameter in this to store value every 0.1s.

댓글 수: 3

Mathieu NOE
Mathieu NOE 2023년 4월 6일
hello
what kind of solver options did you choose ?
if your different variables run at different time steps , I would suggest you use a zero order hold block at 0.1 s and you have everything synchronized and sampled identical
then it should be no problem to connect to a "to workspace block" or any other alternative
Vrinda V Nair
Vrinda V Nair 2023년 4월 6일
Hi,
Thanks it worked with zero order hold block.
I have used variable-step type solver.
Mathieu NOE
Mathieu NOE 2023년 4월 7일
My pleasure !

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2023년 4월 6일

댓글:

2023년 4월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by