LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why am I getting a task specified is invalid or does not exist error?

I am getting this error
dakotasmith2_8-1734386197876.png
The source of this error is coming a cloneable instance of my Card module in DQMH. 

dakotasmith2_9-1734386541885.png

The above screenshot is the front panel for the DO card (Card Module with Module ID = 2). 
Here is the RQST Stop Card Event that has the Stop Task call which is causing the error

dakotasmith2_16-1734386812465.png

The task is getting started in another case called RQST Start Card which is here

dakotasmith2_11-1734386643491.png
Here is that START CARD VI

dakotasmith2_13-1734386678090.png

Here's the True case. The True case is used in another module where there is a Timed Loop that should start this task automatically so the start task VI has been removed from there.

dakotasmith2_14-1734386721649.png
I'm pretty sure the task is being created but I'm not sure if it's being done correctly so from the error message I'd guess that there is something invalid with the task rather than it not existing. Also the timing for that task should be using the sample clock from the AI card as shown here

dakotasmith2_17-1734387435343.png

That timing source OUT gets fed into a timed while loop here which should start all the tasks for all the cards after the all get stopped first

dakotasmith2_19-1734387508947.png

 

The cards are being started for continuous samples when the PXIe-8861 controller starts up then when the real time model starts, the cards all get stopped, then started again except for in hardware timed single point for the cards that allow it.

Is there something wrong with the way I'm setting up the DO card or is it something else in my code?

 

0 Kudos
Message 1 of 1
(43 Views)