Copy file to target in C - Simulink real-time

1 回表示 (過去 30 日間)
Van Thang PHAM
Van Thang PHAM 2016 年 9 月 20 日
回答済み: Rajiv Ghosh-Roy 2016 年 9 月 27 日
Hello, I would like to know if I can write a C code to copy file from host computer to target PC (which is in stand-alone mode). It must be the same function SimulinkRealTime.CopyToTarget, but in C language. Thank you alot. Thang

回答 (1 件)

Rajiv Ghosh-Roy
Rajiv Ghosh-Roy 2016 年 9 月 27 日
You will have to use the C/C++ API to do this; it should be documented. However, there is no function in that API to copy a file over, you will have to use functions such as xPCFSOpenFile, xPCFSWriteFile and so on to copy the data from your local file over in chunks.
Note that there is also a .NET API if you are able to use C# or other .NET languages instead of C.

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by