This question from 2/26/04 appears to be similar.
To answer your questions,
a) A general purpose counter
or 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.