- From: Panagiotis Vartholomeos <barthol_at_central.ntua.gr>
- Date: Thu, 23 Feb 2006 19:51:35 +0200
Hi,
I have a pcmcia NI 6036E card. I try to generate an output sinewave.
My efforts are based on the function ao_waveform.c which can be found at
comedilib-0.7.22/demo/.
My problem is that after I fill in the comedi_command(), I test the pertinence
of the data structure using the following functions:
err1 = comedi_get_cmd_src_mask(dev, subdevice, &cmd);
err2 = comedi_command_test(dev, &cmd);
...they both output -1, and I get an error message saying that : "command is
not supported".
---------------------------------------------
my cmd data structure is:
cmd.subdev = subdevice;
cmd.flags = 0;
cmd.start_src = TRIG_INT;
cmd.start_arg = 0;
cmd.scan_begin_src = TRIG_TIMER;
cmd.scan_begin_arg = 1e9/freq;
cmd.convert_src = TRIG_NOW;
cmd.convert_arg = 0;
cmd.scan_end_src = TRIG_COUNT;
cmd.scan_end_arg = n_chan;
cmd.stop_src = TRIG_NONE;
cmd.stop_arg = 0;
cmd.chanlist = chanlist;
cmd.chanlist_len = n_chan;
where:
subdevice = comedi_find_subdevice_by_type("/dev/comedi0",COMEDI_SUBD_AO,0);
freq = 1e3
n_chan = 1
--------------------------------------
Could someone explain to me why the command is not supported?
Thank you for your time,
Panagiotis
Received on 2006-02-23Z17:51:35