python wrapper

Hi,

I have some troubles with the comedi python wrapper.

I want to implement the same functionality as in ao_waveform.c demo,
using the comedi_tr_timer driver.

I have no problem in building the comedi_cmd struct, but since
comedi_rt_timer accepts only TRIG_INT as start_src, I need also to build
an insn_struct in order to trigger the acquisition start.

But I don't know how to set insn.data. In C, type of insn.data is
lsampl_t *.

I tried the following code:

insn = comedi.insn_struct ()
data = []
data.append (0)
insn.data = data

But python fails saying it needs a pointer.

Any idea ?

	Emmanuel.

Received on 2005-02-22Z14:26:29