Trying to understand how to use Tasks and Channels to write Discrete outputs. I see where a Task encapsulates operations and information, and that one or more channels are created and assigned to a Task.
How do I write to a single bit in a Port?
In the example code it looks like a channel with 28 lines is created, and all lines are written at once.
Do I need to create a separate Task for each line?
Documentation refers to having multiple channels in a task, and that each channel can have a name that is referenced in calls to other functions. I can see how to create a name for channels, but not how to reference individual channels by name in a WriteDigital function.
Thanks in advance!