01-16-2022 10:55 AM - edited 01-16-2022 10:58 AM
Hi Dzordan,
@Dzordan wrote:
Possibly my approach is totally wrong...
Any examples or hints would be helpful.
Yes, it's wrong…
You define a DAQmx task with two (2) DO channels, but your "Diode channels" array control is set to three (3) elements!?
Edit: your DAQmx task is set for 3 channels, I had to resize the channel constant to see all channels…
What's the point of that one-iteration-FOR-loop?
See this:

What do you think is the better way to ensure just two elements in the array?
(Edit: change that "2" constant to a value of "3".)