×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Simulink: Two simulation steps within one

Simulink: Two simulation steps within one

Simulink: Two simulation steps within one

(OP)
Hello everyone,

Here is the problem: I have a simulink block-diagram scheme which represents a simple stepper motor control system. It consist of two parts - first is stepper itself with power source and controlled H-bridge, second part prepares control signals for that bridge. Input for the whole scheme is a sequence (1xN vector) of rotation values in degrees. Now how it should work: having the stepper motor step size (0.045 deg for example) system should compute how many steps should be done by stepper to achieve next position (next rotation value in sequence) and (let's say 2 steps should be done) output 2 corresponding control signals to H-bridge. The problem is, that if on let's say first simulation step motor should do two steps, that means that within one simulation step motor should do two simulation steps...

I tried to do that with For Loop, but it seems that For Loop performs all its iterations within one simulation step, which is not suitable in my case. Is it possible to solve such problem?

Many thanks in advace for an answer!

Best regards, Peter.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources