12-13-2007 07:22 AM
SteffenGrab,
Based on your original question about getting a timed loop faster that 1ms on a non-real-time machine (ex. Windows), you can not get a faster loop time, unless you move to a real-time target. Windows does not allow its users to access the frequency clock of the processor itself, thus only allowing the user to run no faster than 1ms timed loops. Adding in hardware to a non-real-time system does not help the timed loop because the program is still running on a Windows based system. If you bring in a real-time target system, then you will be able to get faster loop times.
Michael B
12-13-2007 07:48 AM
Let me clarify since my previous post could be understood as running under RT.
I have run
I was both suprised and pleased
I can not post the code.
I accomplished this by exploiting everything I know about LV performance and the Windows OS.
And NO I did not have to change the priority of any of my VI's.
Ben
Discalimer: Running at 1KHz under Windows without the timed loop is still "hit and miss".
12-13-2007 07:54 AM
12-13-2007 07:55 AM
12-13-2007 08:06 AM
12-13-2007 08:52 AM
I have also used this technique
Ben wrote:
Let me clarify since my previous post could be understood as running under RT.
I have run
- multiple timed loops
- that used an NI PCI card as it clock source
- at 2KHz
- on a Windows desktop machine for an extended period of time
- without any of the iterations "finishing Late".
I was both suprised and pleased
I can not post the code.
12-13-2007 08:52 AM
I have also used this technique to
Ben wrote:
Let me clarify since my previous post could be understood as running under RT.
I have run
- multiple timed loops
- that used an NI PCI card as it clock source
- at 2KHz
- on a Windows desktop machine for an extended period of time
- without any of the iterations "finishing Late".
I was both suprised and pleased
I can not post the code.
12-13-2007 12:37 PM
Norbert B wrote:
Ben,
using external clocks with timed loops is like cheating 🙂
Norbert
12-13-2007 12:40 PM
Ben wrote:
When it comes to making computers do what my customers desire, I will not hesitate to "cheat".Have you compared the price of an NI PCI board with a PXI chassis lately?Ben
12-13-2007 02:48 PM - edited 12-13-2007 02:49 PM
Me too. I've only tinkered, but have had successful (albeit brief) runs at 5 kHz with no late iterations using an M-series board as a timing source. I was actually starting to piece together a DAQ-hardware-oriented Nugget, but that was a while back when I seemed to have some spare time...
Bad news for the original poster, Steffen: I don't think a USB-based board will work nearly as well for this stuff (perhaps hardly at all) as a PCI card.
-Kevin P.