07-25-2025 02:55 PM
Hello!
I really don't code a lot, and when I do, I usually haven't touched LabVIEW in 6 months to a year. I'm trying to build a repository of lessons for my future self and I hit a roadblock on some analog input, digital input and output stuff. I am using a 9174 with a 9239 AI, 9482 relay out and a 9421 DI. I put the code together and ran it, and started kicking the error. I've spent some time searching and tried some things, but no luck. I know there is no error handling, that's next on the list.
The attached VI doesn't really do anything specific, just a demo on how I should be setting up the hardware and timing etc. The code runs for about 10 seconds and kicks the 200279. What should I have done different? Fire suit on!
Thanks!
07-25-2025 08:45 PM
Error -200279: Unable to Keep Up With Acquisition in NI-DAQmx
Your sampling rate is 100Hz but you are using DAQmx Read with single sample at 50ms wait time, which is effectively just 20Hz. You should read multiple samples for each DAQmx Read call, at least 20 samples if you want to run the loop at 50ms.
Other comments: