02-11-2020 06:38 AM - edited 02-11-2020 06:41 AM
Or if you want to get even more fancy...I have a library I recently developed so that I can create a task using an XML file. At some point, I just have a bunch of child attributes that are used to declare each channel. I loop on that array and then each channel defines itself and add to the task. I have it this way so that I can have each channel be something different (voltage, current, temperature, etc) and it is all defined in a simple XML file.
