I downloaded an example NI-DAQ vi for doing a PID loop and have it running successfully. I got it from (it is also attached to this message):
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/b06d5e50f04f280b86256b3e0070ba2d?OpenDocument
It worked great, but since I am trying to get familiar with DAQmx I thought I would try to convert it. I have gotten something that works, but it is not as fast and the timing is not as stable. The way you go about configuring things is very different between the two systems, and I guess I am overlooking something. Would someone like to take a stab at doing the conversion? I set it up for continuous conversion on input and output, using the onboard clock for the AI and rout
ing the scan clock to PFI7 for use with the AO, much like the NI-DAQ example. I configured both for a buffer length of 0, but they are not happy acquiring a single sample. I get an error telling me that I must acquire at least 2. That kills the PID speed, of course.