04-02-2024 10:21 AM
I have problem where DAQmx Read.vi returns an error despite operating correctly. The problem is intermittent and I can't reproduce what causes it to work. Two times now the Read has worked as it should and after closing and re-opening the project its back to causing an error. The error crashes labview after you stop the program's execution.
The task name provided to the Read.vi is correct. When getting the task not specified error it still reads the task's values.
Any ideas for what's going on would be excellent!
I'm using:
2021 Labview
2021 DAQmx & 2021 DAQmx Runtime (21.0.0)
2023 Q4 NI Max
This is the Error:
This is the read that causes the error:
This is the task in NI Max it is reading:
And this is the crash error after stopping the program's execution:
Solved! Go to Solution.
04-02-2024 10:37 AM
I found the solution to my problem. If anyone encounters this make sure your aren't using two DAQmxReads at the same time. The program was trying to read digital and analog data at the same time. I put the reads in series and the problem went away.