[Simulink] I want to just switch two values with positive trigger

3 ビュー (過去 30 日間)
Takatoshi Akamatsu
Takatoshi Akamatsu 2022 年 10 月 5 日
回答済み: Fangjun Jiang 2022 年 10 月 5 日
Hi,
I want to make a simple Simulink model, switching two values with positive trigger, as shown below.
How can I make it? I tried many things, but I could not.
# I want to use only HDL-compatible block.
Best,

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2022 年 10 月 5 日
Use the trig signal to trig a "triggered subsystem", the trigger type is "rising". Inside the subsystem is a "Not" logical block. Outside, feed the subsystem output to a "Unit Delay" block and then feed it to the input of the subsystem. Set the inital of "Unit Dela" to be 0.
All blocks are from HDL library.

カテゴリ

Help Center および File ExchangeSchedule Model Components についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by