I am designing a few classes with DAQmx, and need some help with the methodology for task / writer design. I can't find a good starting guide for the Measurement Studio, so I figured I'll ask here...
The main class, let's call it 'Shutter', needs to do the following tasks (using a PCI 6601 timer board, or a PCI 6014 multifunction board)
1) Send a finite pulse train on a CO channel, with the ability to specify which two timers will be used for this action
2) Set and keep (until class disposed) some DO lines
I have been running into trouble figuring out the most basic things:
1) should the task and writer be created in the class 'New' sub, or should that happen for every pulsetrain I send out? Is it possible to change the number of pulses in the pulsetrain without destroying the task?
2) should I create a separate Task for each of the DO lines i am controlling, and should I preserve these tasks / writers between events
I appreciate your suggestions, thx