use delay_ms and delay_us with Simulink

Post Reply
Posts: 5
Joined: Wed Mar 13, 2013 10:56 am

use delay_ms and delay_us with Simulink

Post by HeleneCT » Wed Mar 13, 2013 11:04 am

Hello everyone,

I would like to know if it is possible to use functions from the libpic30.h library with block programming with Simulink.
Do you have any idea on how to perform such a thing?

I already tried the Simulink block Unit Delay, Memory, Integer Delay aud others but it's not really performing what I want.
I want to be able to intruce a delay (in ms or us) with a time specified by me.

I thought that I could eventually make my own C-block function but I will need delay32() to do it so the question is the same.
Is there any file with the code associated with delay32() function? Because in the libpic30.h there is only one line.

How can I import a library in this kind of programming.


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest