Jump to content
Sign in to follow this  

Implementing while and for loop

Recommended Posts

Is it possible to implement delayus() a C library function In Embed through block diagram? . If yes then how to do it?

Any other way of implementing delay in block diagram?

Share this post

Link to post
Share on other sites

Hi Nit, 


Here is a simple Embed diagram of one possibility that should demonstrate the timedelay block. In this case i added a 5 second but could be any other as well. 

There are also other ways for instance : 

1) You could rely on the runcount and setup the step time of a diagram .

2) Use a statechart and do a software counter and trigger right events from a state chart .


Hope this helps ! 



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this