How to prevent imported discrete signal from stepping automatically.

1 view (last 30 days)
Hello, I am trying to codegen a Simulink model that uses imported data as an input. The inputs are in the form of arrays of values, and inside the model I use a selector to manually change between elements in these arrays.
To get this to work, I had to use a structure with no time data (as in http://www.mathworks.co.uk/help/simulink/ug/importing-data-to-test-a-discrete-algorithm.html ). But now, the Input blocks automatically select elements of the array one-by-one, changing sequentially in each simulation step.
Is there a way of using array data as an input (without specifying time), whilst being able to select elements manually, rather than changing automatically for each simulation step?
Thanks!
  1 Comment
David
David on 11 Nov 2014
To clarify: I want the simulation to run a number of simulation steps for a given element from the arrays, until a logic check triggers a request for selecting the next element.

Sign in to comment.

Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!