04-02-2012 03:04 PM
Hello,
I am working on a program in which I am measuring the time between photo gates, as sprinters break them for a timing trial. My VI uses the DAQmx Start Task to read voltage triggers from the acquisition device, but I can't specify the sampling rate for the VI. I've tried using the Sample Clock within the VI, but for some reason, that is altering the acquisition of times and reducing their accuracy. How or where can I implement or specify the sample rate for the voltage acquisition, such that the timing isnt changed? I've attached the program I'm working on.
Thanks so much,
Patrick
04-02-2012 03:34 PM
The correct way to do this is by inserting the DAQmx Timing function, set for Sample Clock, before starting the task. If this is not working for you, can you upload your VI showing how you used the DAQmx Timing function, and explain in more detail the effect it is having on your measurements? I don't understand what you mean by change the sample rate without changing the timing - the sample rate determines the timing of the measurements.
04-06-2012 12:00 AM
Hello,
Here is how I attempted to implement the Sample Clock (attachment), is this somewhat accurate? Thanks again for the help
04-06-2012 05:22 AM
So how are you setting the sample rate when the control is hidden ?
Could you save your vi with some typical setting and then uploading it again ?
I would also set the "Number of sample per Channel" input for the DAQmx read vi. You could set it to 50 or 100 if your sampling rate is 1kHz.
Of cause then you need another way to find out when the max value happend, as you would get 100 samples every 100 ms.
04-06-2012 05:49 AM
Don't mind the first question, I was just having to many vi's open.