read data from a .mat file one by one using simulink and run it on a realtime system.

I have 1000 samples of pressure data in a .mat file. I want to read this data one by one using simulink and display it. When i use 'from file' block, the data is parallelly being sent. But I want it to be sent one by one. I used 'from workspace' block and it worked very well offline. But when i run the same on a real time operating system, an error saying 'undefined variable using from workspace' is displayed.
So basically I want to read 1000 samples of data from a file one by one using simulink on a realtime system.
Please help me to resolve this issue. Thanks in advance.

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Asked:

on 4 Sep 2014

Community Treasure Hunt

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

Start Hunting!