Writing File with xPC Target using xPC Target format

1 visualizzazione (ultimi 30 giorni)
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

Risposte (1)

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy il 2 Lug 2014
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).

Community Treasure Hunt

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

Start Hunting!

Translated by