Are you calling CWAI1.Configure first? If not, you need to be. It may also be that there are some rates or settings in your setup that are not supported by the board you are using. What are you DAQ settings (rate, range, triggering, etc.) and what board are you using?
Best Regards,
Chris Matthews
National Instruments