[python-win32] How to handle arguments of "Pointer SafeArray Real 8 (Flags=3)"

Jens B. Jorgensen jens.jorgensen@tallan.com
Mon, 24 Mar 2003 09:59:11 -0600

You should be able to get this to work. When you say it failed in 
python, could you show us the code and the exceptions you got?

Jingzhao Ou wrote:

>I tried to use MATLAB from python through the MATLAB COM server. I use
>the following code to invoke the COM server:
>App = win32com.client.dynamic.Dispatch('Matlab.Application')
>Then, after that, I can execute MATLAB commands using 
>However, I encountered problem when I tried to import/export data from/to
>MATLAB using the GetFullMatrix and PutFullMatrix functions. I check the input
>to these two functions. They require arguments of "Pointer SafeArray Real 8
>(Flags=3)" type. I tried to use list or tuple data type in python to handle
>them  but failed. 
>Can anyone help me out by telling how I can solve this problem in python?
>Should I write some C code to solve it? 
>BTW, VB can handle this data type. 
>Best regards,
>Python-win32 mailing list

Jens B. Jorgensen

"With a focused commitment to our clients and our people, we deliver value through customized technology solutions"