I am using SCAN_Setup (NIDAQ) to setup a double buffered analog scan using a PCI-6031E board in differential mode (i.e. 32 differential channels). My channel vector and gain vector work fine if I set my number of channels to a small number (4) but when I use a larger array (number of channels = 23) I get the error -10007 which leads me to beleive that there is something wrong with my channel vector. The array is correct however. Is there a maximum number of channels or something else particular about using this function with a 6031E? From what I can tell from the documentation what I am trying to do is valid. Any help would be greatly appreciated.