11-09-2011 04:34 PM
I have a Async. custom device that was designed with a timed-loop. It's rate must be 5kHz, so dt = 250usec.
How can I set the timed loop to operate at this rate, since the custom device is developped under Windows, and the timed loop highest rate is 1 khz?
When get error -805 when undeploying the device, and at runtime the timed loop never runs.
Thx
L,
11-09-2011 04:42 PM
There is only a 1kHz SW timing source available on windows, as opposed to the 1MHz timing source available on RT. You can, however, use hardware timing to drive a timed loop past 1kHz on windows. The most direct way is using a DAQ card and the DAQmx driver to create a timing source from an acquisition task or a digital change event. Refer here for some more details. There are also examples available in the Example Finder.
11-09-2011 05:18 PM
Ok, but in the context of a Veristand Custom Device that will run on the Target, I need to use the 1 MHz clock. I need to get this timed loop run at 250us. What is the name of the clock I should use?
11-09-2011 06:21 PM
The way to do what I mean should be like this:
- add a RT target under the Custom Device Project
- drag the RT Driver VI under the RT target and set the Timed loop at 1 MHz.
- bring the RT Driver VI back under Windows
- Do NOT open the propertie of the timed loop.
- reset the RT Driver VI in the build as mentioned here
Laurent.
11-09-2011 11:29 PM
11-10-2011 08:48 AM
What Stephen mentioned will work. Also note that 5kHz = 200usec, not 250.