- From: george gomes <georgegdc4_at_gmail.com>
- Date: Sat, 25 Aug 2007 19:38:16 -0700
Hello All
does anyone here know how to get hair to growback quickly? I have pulled out
all my hair tring to solve this problem.
I do not know if I am having a problem in c or in comedi. When I prepare a
command (type comedi_cmd) and run it through comedi_command_test(device,
&command) i get different returns based on whether the command had values
assigned to its members in the code just before the execution of
comedi_command_test(device, &command); or if its members were assgined in a
function that was called previously.
Zero is returned in the following case
/////////
//*
comedi_cmd command;
command.subdev = 1;
unsigned int list[1];
list[0] = 0;
command.chanlist = list;
command.chanlist_len = 1;
command.flags = 0;
command.start_arg = 0;
command.start_src = TRIG_INT;
command.scan_begin_arg = 1200;
command.scan_begin_src = TRIG_TIMER;
command.convert_arg = 0;
command.convert_src = TRIG_NOW;
command.scan_end_arg = 1;
command.scan_end_src = TRIG_COUNT;
command.stop_arg = 0;
command.stop_src = TRIG_NONE;
command.data_len = 1;
ret = comedi_command_test(device, &command);
/////////
*****************************************************
-1 is returned from comedi_command_test() for the following
//////
prepare_cmd_write(&command);
ret = comedi_command_test(device, &command);
Where
void prepare_cmd_write(comedi_cmd * command)
{
memset(command, 0, sizeof(comedi_cmd));
command->subdev = 1;
unsigned int list[1];
list[0] = 0;
command->chanlist = list;
command->chanlist_len = 1;
command->flags = 0;
command->start_arg = 0;
command->start_src = TRIG_INT;
command->scan_begin_arg = 1200;
command->scan_begin_src = TRIG_TIMER;
command->convert_arg = 0;
command->convert_src = TRIG_NOW;
command->scan_end_arg = 1;
command->scan_end_src = TRIG_COUNT;
command->stop_arg = 0;
command->stop_src = TRIG_NONE;
command->data_len = 1;
}
I am using an NI 6221 and have compiled 0.7.73 on a kernel 2.6.15 on an
Ubuntu system.
You guys have been a great help before and any help will be apriciated.
Thank you
George
Received on 2007-08-26Z01:38:16