Brice;
You are getting that error because the E-series boards only support either 100KHz or 2MHz Timebases.
Double check the NI-DAQ on line reference manual to see the proper parameter to the ScanStart function that represents one of the two timebases above.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments