Jump to content
Sign in to follow this  
Nit

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 ! 

--sreeram 

timdelay.vsm

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...