SIMULINK model error with 'to file'

조회 수: 10 (최근 30일)
cr28
cr28 2012년 9월 2일
A simulink model i created worked fine on my university system and laptop. I then added a few 'to file' blocks (to save on ram during long simulations)to the working model and now this new model runs only on my uni pc.....i get an error when i trying running it on my laptop.....it reads as follows;
block error..source;to file.....Error encountered in block 'tuesday4_2/To File1' model error..source;unknown.....Error opening or closing file 'data.mat'
any idea whats happening and how can i rectify it....thanx.

답변 (2개)

TAB
TAB 2012년 9월 3일
Seems that you don't have write access to the directory in which mat-files are being written. Open the Matlab as admin try again.
  댓글 수: 1
cr28
cr28 2012년 9월 4일
will do that and keep u posted..thanx

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


Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 3일
I suggest to change the directory where you are saving your file, if it's in C: do it in D:
  댓글 수: 1
cr28
cr28 2012년 9월 4일
the files are being written to the default 'MATLAB' folder in 'Documents' which is definitely C

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

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by