Page 1 of 1

use delay_ms and delay_us with Simulink

Posted: Wed Mar 13, 2013 11:04 am
by HeleneCT
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.


Thanks,