- The output is great or equal to the period of your repeating sequence, or
- Whatever condition you desire
Reset Repeating Sequence Block
10 visualizaciones (últimos 30 días)
Jacob Rhodes el 22 de Jun. de 2022
I am trying to implement a Repeating Sequence block that can be reset to its initial state based on a condition. I've attempted to use a Resettable Subsystem as this works with a Sample Based Pulse Generator, but it does not provide the same behavior for the Repeating Sequence. Anyone have any possible solutions? I need to be able to create a signal that can repeatedly ramp up and ramp down, but only start and be reset when a given condition is met, which is why I gravitated towards the Repeating Sequence block.
Fangjun Jiang el 22 de Jun. de 2022
Editada: Fangjun Jiang el 22 de Jun. de 2022
If you look inside the mask of the "Repeating Sequence" block, you will see it is built on top of the 1-D lookup table.
To achieve what you want, you can use an Integrator block with external reset. The input is 1 so the output is basically the simulation time t. The output is reset by
Feed this output to a 1-D lookup table, where you specify your repeating sequence data.