05-07-2025 07:09 AM
With the latest NI-DAQmx I get a "DAQmx Error: Task specified is invalid or does not exist." when trying to start a simulated device using
DAQmxErrChk(Ni_CfgSampClkTiming(getHandle(), nullptr, sampleRate, DAQmx_Val_Rising, DAQmx_Val_ContSamps, getDeviceConfig()->getScanBlockSize()));
This works as expected in NI-DAQmx 2022 Q3. I simulate a NI USB-6210 and could not find any info that this device is not supported anymore.
What could be wrong and how can I fix it? Or if this cannot be fixed, what is the last version to support this device?
Thank you!
05-26-2025 03:02 AM - edited 05-26-2025 03:03 AM
Hi mael15,
Would it be possible to share the surrounding code? Especially the task creation. Since the issue might be related to code that is not shown in the screenshot.
What is the getHandle() function?
Best regards
Leonard