Thanks for the advice. I got the program running great. I did have one question though; when I am using an external clock signal, how come I have to enter a rate into the syntax:
DAQmxCfgSampClkTiming(taskHandle As Long, source As String, rate As Double, activeEdge As DAQmxEdge, sampleMode As DAQmxAcquisitionType, sampsPerChan As Long)
What role does this frequency rate play in how my samples are taken, when using an external source. Is this the rate at which the hardware reads the value from the input?