Hi ajmal,
The DAQ driver installs shipping examples which will be a helpful starting point. You can find them at:
C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ai
Depending on how many samples you require within that one minute (The tutorial below provides information on determining a sampling rate), you can consider the "SCANsingleBufAsync" or the "DAQDoubleBufAsync" examples. If the number of samples you require can fit into the buffer of your DAQ device, you can use the first example which acquires "count" number of examples, specified in the DAQ_Start function. If the number of samples required is more than what the buffer can hold, you can use the second sample which acquires continuously, and use some timing function to stop the acquisition after one minute (you'll need to replace DAQ_Start with SCAN_Start..see comments in sample).
Acquiring a Waveform of DataIf you're acquiring finite number of examples (not continuously), the buffer size should be greater than "count". If you're using the continuous acquisition example, the buffer size will determine how many samples are retrieved from the buffer. The DAQ Reference Help will be able to provide information on the parameters involved with the functions.
Furthermore, is there a reason why you're using the Traditional DAQ driver as suppose to the new DAQmx driver? Which DAQ device are you using? The new DAQmx driver is simpler to work with.
Thanks,
Lesley Y.