Hi, how can I connect a HIL read digital from Q8 data acquisition target so it can stop a simulink system?
1 回表示 (過去 30 日間)
古いコメントを表示
Lizbeth Mileivi Salazar Galvan
2024 年 2 月 19 日
コメント済み: Lizbeth Mileivi Salazar Galvan
2024 年 3 月 16 日
The read digital HIL have 0 and 1 from a proximity sensor. This sensor may stop a servomotor from rotating on positive or negative direction, but I don't know how to connect this block on my contro system PID in simulink. Hope you can help me. Thanks
0 件のコメント
回答 (1 件)
Ninad
2024 年 2 月 28 日
編集済み: Ninad
2024 年 2 月 28 日
Hi Lizbeth,
I have attached a dummy Simulink Model "HILDemo.slx" to simulate a control system where a PID controller adjusts a servomotor's position based on a setpoint change.
The "Constant Block" simulates proximity sensor's digital input. It determines when the motor should stop.
For "high" input signal i.e. when the sensor is triggered, the "Switch" Block overrides the PID output with a "zero" signal and halts the motor.
"Transfer Function" block contains a second-order transfer function, which is used to represent the servomotor's dynamics.
The "Step" block is used to introduce a setpoint change. You can visualize the output in the scope block.
This is just a dummy model, so please tune the PID gains and Transfer function parameters to match the motor's characteristics and adjust the logic to reflect the sensor behavior.
Hope this helps.
Regards,
Ninad
参考
カテゴリ
Help Center および File Exchange で Classical Control Design についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!