ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Random Error -200559

Solved!
Go to solution

I've created a VI which uses 4 digital outpot port to control 4 LEDs and 1 analog input port to register signal from a photodiode. The code works most of the time, but sometimes this error message pops up. 

 Error message.png

From what I observed there is no clear pattern for when this happens

 

Any suggestions? 

0 Kudos
Message 1 of 6
(4,741 Views)

Hi kj,

 

well, as the error message says: don't mix digital and analog channels in one task.

And it also says: don't mix input and output channels in one task!

 

You need, based on your description:

- one analog input task

- one digital output task

 

Additionally you could use

- digital input task(s)

- analog output task(s)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(4,723 Views)

Hi

 

Well that also how i set up my tasks. 

I have one task that handles 4 digital output port and one task that handles one analog input port. 

 

Both tasks are executed in the same while loop, but that shouldn't be a problem. 

0 Kudos
Message 3 of 6
(4,707 Views)

Hi kj,

 

Both tasks are executed in the same while loop, but that shouldn't be a problem. 

No, it shouldn't be a problem.

But as long as you don't show your VI we cannot really comment on it…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(4,703 Views)

Hi Gerdw,

 

Here are the VIs where the problem accours, hopes this can help

 

As said before, the error only accours "randomly" and not every time I run it. 

 

Best regards Karl-Johan 

0 Kudos
Message 5 of 6
(4,668 Views)
Solution
Accepted by kjschmidt

I think I found the solution to the problem. (Since the error appeared ramdonly I'm not sure, but it hasn't appear since) 

 

Using "DAQmx Create Task.VI" and assigning them with a name before generating channels solved the problem. 

Message 6 of 6
(4,544 Views)