- Double-click on the From Workspace block.
- Look for the Sample time parameter.
- Change it from 0 (continuous) to -1 (inherited) or specify a discrete sample time that matches the configuration of your subsystem, though -1 is typically what you'd use in an iterator subsystem since it lets the subsystem control the execution timing.
- Use a Constant block where you can specify the variable name directly. This block inherently has no issues with sample times in an iterator subsystem.
- Ensure the data is formatted appropriately in MATLAB Workspace to be used directly.
- Make sure your For Iterator subsystem is set up correctly to iterate over the indices you're interested in. The For Iterator block inside the subsystem should be configured with the appropriate start, step, and end values.
- The operation you perform inside the subsystem will need to be designed to handle indexing through your data correctly, based on the iterator index.