SWIG generated... TypeError

J

julia

Hi,

I'm using a library in python which was generated by SWIG. Basically,
there is a struct in the C code, but I'm not sure what it is
equivalent to in the python code. I want to pass a pointer to some
data as an argument to a function like so:

comedi_data_read(it,subdev,chan,range,aref,data)

but get this error

Traceback (most recent call last):
File "test_comedi2.py", line 14, in ?
comedi_data_read(it,subdev,chan,range,aref, data)
TypeError: Type error. Expected _p_lsampl_t

So I'm wondering if anyone knows where stucts go in SWIG and how to
alloc one in python?

Thanks!
julia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top