フィルターのクリア

Connecting to a Real Time Target

2 ビュー (過去 30 日間)
James Brown
James Brown 2020 年 10 月 21 日
コメント済み: Diego Kuratli 2020 年 10 月 22 日
I wish to create an app that will connect to an SLRT target armed only with run-time knowledge of the target's IP, port, etc. This app will be compiled and will be running on a machine other than my normal host. Thus, the typical
tg = slrt('name');
construct won't work.
The old C-API included calls such as xpcOpenPort( ip, port ), but I can't find anything like that within the Matlab environment.
Thanks

採用された回答

Diego Kuratli
Diego Kuratli 2020 年 10 月 21 日
In R2020b you can use any SSH client to connect to the target computer, install, load, start and stop a real-time application.
For more advanced instrumentation, MATLAB and Simulink Real-Time are required in the host computer (MATLAB Coder and Simulink Coder are no longer required if you don't need to modify/build the real-time application).
You can use the MATLAB API to build instrumentation with MATLAB App Designer:
If you need to work with external tools and languages, you can use MATLAB External Language Interfaces:
  2 件のコメント
James Brown
James Brown 2020 年 10 月 21 日
Hi Diego,
Thanks. But, I should have said that I'm using 2018b and will be for some time. I am using the App Designer and the App Compiler. I have several bits of heartburn associated with newer versions of SLRT (I've been talking with Sam Mirsky and others about that.) I plan to resist upgrading as long as possible.
Thus, back to my original question. Is there a Matlab analog to xpcOpenPort?
Thanks,
Jim B
Diego Kuratli
Diego Kuratli 2020 年 10 月 22 日
Hi Jim, I would look at this example, specifically at the code behind the "Connect to Target" button:
I hope this helps.
Diego

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by