Hi NI Community,
I am currently experiencing a problem where if I try to create multiple tasks that each continuously read from different digital input channels, I get the following exception:
The specified resource is reserved. The operation could not be completed as specified.
This only happens once I start the second task. Is it not allowed to continuously sample from two digital input tasks simultaneously?
I am using an NI USB-6509 device, which has 96 channels.
The workaround would thus be to add all channels to one task and continuously sample from there, but would require a bit of rework. I also don't particularly like the concept of that approach, since all of my outputs are set as individual tasks per output channel port. In other words, I would like to use one task per port of 8 pins, regardless of whether it's an input or output port. All my pins are set up as digital. I need to continuously measure the input pins in order to have an event fire when an input pin changes state.
If you require any source code to take a look, let me know. I don't just want to dump all of it here.
Thank you in advance.