/* This comedilib function will get us a generic timed
* command for a particular board. If it returns -1,
* that's bad. */
- ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd);
+ ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd,1e9/freq);
if(ret<0)return ret;
/* Modify parts of the command */
{
int ret;
- ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd);
+ ret = comedi_get_cmd_generic_timed(dev,subdevice,cmd,1e9/freq);
if(ret<0){
comedi_perror("comedi_get_cmd_generic_timed\n");
return ret;
int comedi_get_cmd_src_mask(comedi_t *dev,unsigned int subdevice,
comedi_cmd *cmd);
int comedi_get_cmd_generic_timed(comedi_t *dev,unsigned int subdevice,
- comedi_cmd *cmd);
+ comedi_cmd *cmd,unsigned int ns);
int comedi_cancel(comedi_t *it,unsigned int subdevice);
int comedi_command(comedi_t *it,comedi_cmd *cmd);
int comedi_command_test(comedi_t *it,comedi_cmd *cmd);
int ret;
int chunks=0;
- if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){
+ if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){
printf(" not supported\n");
return 0;
}
unsigned long total_secs = 0;
struct timeval tv,start_tv;
- if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){
+ if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){
printf(" not supported\n");
return 0;
}
return 0;
}
- if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){
+ if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){
printf(" not supported\n");
return 0;
}
return 0;
}
- if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){
+ if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){
printf("E: comedi_get_cmd_generic_timed failed\n");
return 0;
}
return 0;
}
- if(comedi_get_cmd_generic_timed(device,subdevice,&cmd)<0){
+ if(comedi_get_cmd_generic_timed(device,subdevice,&cmd,1)<0){
printf("E: comedi_get_cmd_generic_timed failed\n");
return 0;
}