Device number is the number given to the DAQ board. You can use MAX (Measurement and Automation Explorer) to verify the device number. It will be displayed in the device's property window. Channel number depends on the device. If you have a 16 channel Analog Input DAQ, your channel numbers will range from 0 to 15 (or maybe from 1 to 16, depending on the board). It may NOT be the same as the screw terminal on the connecting block. The documentation that comes with the board and the terminal block should show which channel goes to which screw terminal.