LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Read VI -200088 Task specified is invalid or does not exist.

Solved!
Go to solution

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:

Screenshot 2024-04-02 085557.jpg

This is the read that causes the error:

Screenshot 2024-04-02 090600.jpg

 

This is the task in NI Max it is reading:

Screenshot 2024-04-02 090004.jpg

 

And this is the crash error after stopping the program's execution:

Screenshot 2024-04-02 085605.jpg

0 Kudos
Message 1 of 2
(409 Views)
Solution
Accepted by topic author Hambone.

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.

0 Kudos
Message 2 of 2
(396 Views)