[python-win32] Problem with multiple calls of a DLL

2006-12-12 Thread Ola Rylow
Hi, I know this is not exactly a new question on this list but I have not been able to solve my problems by reading old threads. I have a dll (MyDLL) from which I want to call some methods. I've tried using Ctypes: print windll.MyDLL.FirstMethod() print windll.MyDLL.SecondMethod() If I

Re: [python-win32] Reading a UInt32 array from LabVIEW

2006-03-22 Thread Ola Rylow
thout having to change the type of the array in the source)   -Ola Från: [EMAIL PROTECTED] genom Mark HammondSkickat: ti 2006-03-14 23:21Till: Ola Rylow; python-win32@python.orgÄmne: Re: [python-win32] Reading a UInt32 array from LabVIEW > From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On>

[python-win32] Reading a UInt32 array from LabVIEW

2006-03-14 Thread Ola Rylow
I'm accessing LabVIEW through the ActiveX interface and I'm having a problem with reading a UInt32 array.   The code used is: inParams = ["Numeric", "Numeric 2", "Numeric 3", "Array"]inValues = [9,8,7, ()] retval = viReference.Call(inParams, inValues) where "Array" is output and the rest is input

[python-win32] Reading custom output parameters from LabVIEW/Acti veX

2005-11-08 Thread Ola Rylow
By using pythoncom.Missing, which I read about in another thread, I got a LabVIEW error message instead: return self._get_good_object_( pywintypes.com_error: (-2147352567, 'Exception occurred.', (5002, 'LabVIEW', 'LabVIEW : paramVals type mismatch. Expected 1D array of variants.', None, 0, 0),

[python-win32] Reading custom output parameters from LabVIEW/ActiveX

2005-11-02 Thread Ola Rylow
Hi! I'm running LabVIEW as a ActiveX server and access it from Python (which is a quit new language for me). Now I have encountered a problem when trying to read an output control that is a RefNum (actually a strict type def that I think is based on a DataLogRefNum containing a Enum). I get the fo