フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to repeatedly call a SIMULINK model connected to a machine trough DAQ card?

1 回表示 (過去 30 日間)
Kevin
Kevin 2014 年 2 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I need to repeatedly call a SIMULINK model connected to a machine trough DAQ card. SIMULINK model should take 4 parameters form MATLAB workspace as regulation parameters, execute the given operation on the machine and return position of the machine and regulation error back to workspace while doing it.
I managed to do it when SIMULINK model is preforming a simulation on a transfer function block. Bun I don't know how to do it when SIMULINK model is sending and reading data from a machine. It works when I change the parameters, connect to target machine and run the model manually. But I need to somehow do it so the function I wrote does it every time it is called.
Can I somehow do it directly from a MATLAB function I wrote? Do I have to create an .exe or some other file from C code generated by the Build Model command in SIMULINK? Or is there some other way to do it?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by