From: Mocanu L. <liv...@ya...> - 2008-10-24 15:43:26
|
I've used this in TCL interpreter prompt: %::RSLIB::rsfsp_init TCPIP::192.168.101.1::INSTR 0 0 123 TypeError in method 'rsfsp_init', argument 4 of type 'ViPSession' This function performs some initialization actions. What ViPSession represents (as per manual) : instrumentHandle ViSession This control returns an Instrument Handle that is used in all subsequent function calls to differentiate between different sessions of this instrument driver. Notes: Each time this function is invoked a Unique Session is opened. It is possible to have more than one session open for the same resource. So, I thought that the pointer of type "ViPSession" is being taken care automatically if I use typemaps.i and/or cpointer.i . Regards, Liviu ________________________________ From: Josh Cherry <jc...@nc...> To: Mocanu Liviu <liv...@ya...> Cc: swi...@li... Sent: Friday, October 24, 2008 5:35:06 PM Subject: Re: [Swig-user] cannot wrap correctly a pointer On Fri, 24 Oct 2008, Mocanu Liviu wrote: > Wrapper generation, compilation and linking are fine. > > All goes well, but there is a problem when using the wrapped function. > The fourth parameter (which suppose to be a handler to a session) is not > recognized. > > TypeError in method 'rsfsp_init', argument 4 of type 'ViPSession' > > > Whatever I do, I cannot get this right :( . I tried various combination > of interface files without luck. > > Any ideas on how to proceed? You haven't told us what you're trying to pass for this pointer. I can't see what it would be. Although you've %include'd cpointer.i, you haven't used it to create useful handling of unsigned long pointers. Josh |