05-11-2015 07:37 PM
Hai guyz,
I have developed a code to save data while the cDAQ is taking reading. Its fine when I set it to 1Hz with the save data showing data taken at every 1 sec interva. But when I tried to make it to 0.017 Hz the codes shows error. The reason I did this was I thought it would make the program read data every 1 minute and save it. Perhaps this is the wrong approach. If so would you show me how to do it the right way? I've attach a code capture and the example of data saved.
Regards,
Newbie92
Solved! Go to Solution.
05-11-2015 08:15 PM
What error are you getting? I'm guessing a timeout error. The simple solution here would be use use an Event Structure with a timeout of 60,000ms. In the timeout case, you do your read and processing. But this would also allow you to add an abort and/or stop button event case(s) to allow the loop to stop without waiting the full 60 seconds.
05-12-2015 01:19 AM
Hai crossrulz,
Thanks a bunch, the timeout case helped me achieved the 60 sec save interval and the stop event was an awesome idea. I.
Regards,
Newbie920