Implementing the C Function Call
Posted: Tue Mar 18, 2008 1:17 am
Hello Lubin,
I've been looking at your blockset and it is really amazing. For me being a seasoned PIC and dsPIC programmer, it is just amazing how much leverage your tool gives. Congrats on a great product. One thing I am trying to implement is the QEI, now I've already read that you currently have no plans to suport it, and honestly I would much rather see you devote time to an interrupt driven (virtual buffer) UART, SPI and CAN.
So I think (correct me if I am wrong) that using the C-Fucntion Call shall allow me to completely use the QEI in the following way:
1.- Create a C function to initialize the QEI and call it once when the model starts execution; and,
2.- Create a C function to read the status of the QEI registers (specially POSCNT) and send the data to Simulink to further use it.
So I was wondering if you could post a simple example of the usage of the function call, and I will do the QEI Example and make it available here on the forum for your registered users.
Cheers
Mariano
I've been looking at your blockset and it is really amazing. For me being a seasoned PIC and dsPIC programmer, it is just amazing how much leverage your tool gives. Congrats on a great product. One thing I am trying to implement is the QEI, now I've already read that you currently have no plans to suport it, and honestly I would much rather see you devote time to an interrupt driven (virtual buffer) UART, SPI and CAN.
So I think (correct me if I am wrong) that using the C-Fucntion Call shall allow me to completely use the QEI in the following way:
1.- Create a C function to initialize the QEI and call it once when the model starts execution; and,
2.- Create a C function to read the status of the QEI registers (specially POSCNT) and send the data to Simulink to further use it.
So I was wondering if you could post a simple example of the usage of the function call, and I will do the QEI Example and make it available here on the forum for your registered users.
Cheers
Mariano