필터 지우기
필터 지우기

Writing File with xPC Target using xPC Target format

조회 수: 4 (최근 30일)
Gianpiero Buzzo
Gianpiero Buzzo 2013년 7월 16일
답변: Rajiv Ghosh-Roy 2014년 7월 2일
Hi everyone, I'm trying to save a file on target pc hard drive using xPC Target Tool.
At first, by mean of "Xpc Target From File" block, I'm able to load file, from target HDD, then by the unpacking block extract all data and use them in my model; at the end of simulation, some data will be changed, so I need to save, on the same target hdd, the file with same properties, (name... and so on) only changing some data, in order to load the new saved data when the application restart.
I didn’t find any block to do it.
How can I fix my issue?
Thanks in advance

답변 (1개)

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2014년 7월 2일
When the application is stopped, you can transfer the new file (with the same name) before starting the application. If you are using R2014a, you can use the API SimulinkRealTime.copyFileToTarget or otherwise the xpctarget.ftp object to do the transfer.
You can also transfer using the Simulink Real-Time Explorer (or xPC Target Explorer in older releases).

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by