LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PXIe 4461 simultaneous task AO&AI error -200088

Solved!
Go to solution

Hi all,

  Used to PXIe 4461 simultaneous task AO&AI write and read waveform,first time executed without error and then error with rest of tasks,error code is -200088 as snapshot,what wrong with that?PXI chassis if have other good way handle simultaneous tasks.

Any help will be highly appreciated,thanks!!

Snapshot_1.png

 

 

Download All
0 Kudos
Message 1 of 5
(1,670 Views)
Solution
Accepted by topic author Sam.Huang

The obvious mistake is that you're clearing the AO task after the first iteration but continue to use this cleared DAQmx Task handle in the subsequent iterations and hence get the invalid task handle error.

santo_13_0-1640050044174.png

 

Move the clear task call to outside both the loops.

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 5
(1,635 Views)

In addition to what Santhosh said, a decent *starting* point would be to substitute a call to DAQmx Stop for the AO task right where you presently have DAQmx Clear.

 

But there are other things to consider:

- Should these be FInite Sampling tasks?  You configured as continuous, but you Start and Stop (or Clear) the tasks each iteration.  The repetitive starts and stops are more typical of a Finite Sampling task.

   On the other hand, if you actually want Continuous Sampling, you should be doing your starts and stops *outside* the inner loop and probably outside the outer one as well

 

- You should specify how many AI samples you read

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 3 of 5
(1,627 Views)

Hi Santhosh,

 

Thank you for your commenting,I have fixed it.

0 Kudos
Message 4 of 5
(1,618 Views)

Hi Kevin,

    This is a demo, actually the different frequency with sampling number.Post the thread just to fix the error,Thanks!

0 Kudos
Message 5 of 5
(1,613 Views)