[SciPy-user] Simulink API to Python?

David Warde-Farley dwf@cs.toronto....
Sat Apr 4 01:46:26 CDT 2009


Hi Xiangyu,

On 3-Apr-09, at 6:35 PM, Xiangyu Ding wrote:
>
> I was wondering, is there any existing module or something that will
> allow the transfer to be done in memory?

This sounds roughly like a job for Cython's numpy buffer support. It  
would allow you call whatever C functions you need to and expose  
contiguous blocks of memory (to which you have a pointer) to Python  
code.

See the tutorial at: http://wiki.cython.org/tutorials/numpy

David


More information about the SciPy-user mailing list