To answer your questions,
a) A general purpose counter <i>or</i> the analog input (AI) scanclock
can be used to control your loop timing. You must use a counter or
the AI scanclock to achieve 26 kHz.
b) the installed RT Timing and RT Control examples show many
techniques for controlling your loop period, including an example for
each of the above two methods.
Let me know if you have any questions after you check 'em out.
If you weren't using both counters, you could time your loop with a
counter as an alternative to the AI Scanclock. Not really helpful
here, but worth mentioning for other readers.
In Traditional DAQ, the One Channel PID Control example is <i>not</i>
based on general purpose counters. It <i>is</i> based on the AI
Scanclock.
For a DAQmx example of how to control your loop timing with the AI
Scanclock, check out \LabVIEW
7.1\examples\DAQmx\Control\Control.llb\PID Control-Advanced.vi. This
example does basically the same thing as the other example I pointed
you to. Again, this example is <i>not</i> based on general purpose
counters, which means you can incorporate your counter code into this
example.
Also, I reread you first post and noticed you had trouble using the
Timed Loop. In addition to the above options for timing your loop,
you can use DAQmx Create Timing Source in conjunction with a Timed
Loop to control loop timing at sub-millisecond periods. Check out
\LabVIEW 7.1\vi.lib\DAQmx\create\timing.llb\DAQmx Create Timing Source
(Digital Change Detection).vi for an example of how to do this.
Last sentence should have read, "Check out \LabVIEW
7.1\examples\DAQmx\Control\Event Response.llb\Event Response.vi for an