04-20-2015 02:12 AM
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.
From what I observed there is no clear pattern for when this happens
Any suggestions?
Solved! Go to Solution.
04-20-2015 03:11 AM - edited 04-20-2015 03:12 AM
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)
04-20-2015 04:40 AM
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.
04-20-2015 04:44 AM
04-28-2015 02:34 AM - edited 04-28-2015 02:35 AM
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
06-30-2015 04:19 AM
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.