I have a 6509 card that I am using to read/write static lines. This card requires NI-DAQmx and, despite the tutorials and examples, I am having difficulty deciding on the best way to use this. I have used traditional DAQ with other cards, and this was very simple. But the model for NI-DAQmx is generalized to address so many more complicated situations (tasks, etc) that I cannot quite grasp how the simplest situation should be handled.
For this application, all of the lines to control are static -- no handshaking, no clocking, nothing fancy. Some 8 bit ports are read, some are write. Each bit is completely unrelated to the others, so either I maintain a map of {port,bit} to named "lines", or else it seems like NI-DAQmx allows me to create
named "tasks" [? odd name] for each {port,bit}.
My question is: how to best use NI-DAQmx to control many independent static lines? How best to cleanly map individual lines to port/bit?
Thank you.