Data logging from simulink. It only stores a few values

4 次查看(过去 30 天)
Hi, I am quite new in Matlab and I´m stuck in the following problem; I am trying to save to a varible a set of point (ones and zeros) acquired via the digital input of a data acquisition board (Advantech pci 1711) in simulink. After the simulation I check the data stored in the variable and I find the it has only saved the last few point of the simulation. Also I placed a scope block with data logging enabled and I get the same situation. The time step is set to 0.0005 sec in the digital input block and the scope block. The option of data logging in the configuration parameters dialog box is checked but in the workspace I don´t see the variables checked in the dialog box.
Thank a lot in advance.
Alejandro

回答(1 个)

Albert Yam
Albert Yam 2012-7-5
For only recording the last few points, did you change the option for 'Limit data points to last XX'? With your time step size, you may need to record a lot of values.
I would suggest using 'To Workspace' blocks or Signal logging, rather than using a Scope block. (But I'm using an old version.)
  2 个评论
Alejandro Martín
Hello Albert, thanks a lot for your answer, but I already checked what you mention and didn´t solve the problem because regardless of the number I write in the option "Limit data points to last..." I does not store more than 1000 values.
I tried also using "To workspace" block but I had the same problem I have had using a Scope block.
Thanks again
ayam mohsen
ayam mohsen 2013-4-21
hello,i need to know the version of matlab that you are using with pci-1711 ,please help me

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by