Hello jevans,
Have you tried using a similar shipping example program just to try things out? I did look over your code and I do have a few comments/questions/clarifications. It looks like you have the CONVERT clock as an input on PFI2 and DAQ_Config() is set up for a software start trigger with an external sample clock. I think you are calling this external signal going into PFI2 the trigger, but it is actually the CONVERT/sample clock. I believe you are just taking one sample per trigger. I think you are intending to take 10 samples per trigger.
In fact, I think you'll see much different behavior if you just reverse the 0, and 1 parameters in your DAQ_Config() call.
DAQ_Config (AT_MIO, 1, 0);
Also, you could delete the Select_Signal() statement. Y
ou actually want an interal CONVERT clock. Then apply your trigger signal to PFI0 as that is the default.
Now, you should also be aware that you may only have one trigger per DAQ_Op call. After that, you will need to reconfigure to prepare for the next trigger. This may not be a problem if your program is fast enough to keep up with the triggers however. If not, there is another method you can use that will basically use a counter to gate the sample clock.
Anyway, I hope this hasn't been too wordy.
Russell
Applications Engineer
National Instruments
http://www.ni.com/support