Channel scan order

Hi Frank!

I have noticed that you have added an entry (ai_scan_up) for scanning
direction in the labpc_board struct for the lab-pc driver. However,
I still need to scan from highest to lowest channel on the DAQCard-1200,
that is, the chanlist must be in reverse order:


 // Setup a channel list.
  for(n=0; n<n_chans; n++){
    chanlist[n] = CR_PACK(n_chans-n-1,range,aref); // Reverse order for 
DAQCard-1200.
    //chanlist[n] = CR_PACK(n,range,aref);
  }
 
I'm working on a small data aquisition toolbox for Matlab so I would like
be able to access all DAQ hardware suppored by comedi. Is it safe to
assume that all hardware are able to scan in reverse order or is there a
comedi function that can probe the scanning order of the device?

There is a function get_comedi_subdevice_flags(...) but I could not
find any documentation describing the 'flags'.

Fredrik

Received on 2002-11-24Z10:01:47