[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:

>Hi, 
>
>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 
>
>App.Execute(command)
>
>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. 
>
>Thanks!
>
>Best regards,
>Jingzhao
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32@python.org
>http://mail.python.org/mailman/listinfo/python-win32
>  
>

-- 
Jens B. Jorgensen
jens.jorgensen@tallan.com

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