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

Andrew Markebo andrew.markebo at comhem.se
Wed Nov 23 14:19:30 CET 2005


Hello!

Sorry for getting in so late, are there any god notes/examples on how
to use InvokeTypes? Been looking around a little but don't get it
straight.

/ "Mark Hammond" <mhammond at skippinet.com.au> wrote:
|> So the new question is: how do you create a 1D array of variants
|> in python?
|> >From what I've read this is normally handled behind the scenes by
|> PythonCom...?
|
| That's correct - just pass a list or tuple.  However, that is rarely the
| complete answer - what *type* of variant should be in the array?  Since you
| only received this error when you changed to Missing, it appears LabView
| *is* seeing the real param as an array of variants, as it does not return
| this specific error.
|
| Sadly there is no easy way to explicitly specify the exact variant type,
| other than using InvokeTypes.

-- 
 "I [..] am rarely happier than when spending an entire day programming
my computer to perform automatically a task that it would otherwise
take me a good ten seconds to do by hand."
			        -- Douglas Adams, "Last Chance to See"
					 -= May he rest in peace! =-



More information about the Python-win32 mailing list