09-23-2006 04:02 AM
09-25-2006 10:52 AM
I am not sure what the expected rate is supposed to be 47k seems about right for single channel and certainly I would expect greater than 25khz. Here are some additional tweaks to try to see if it helps increase the rates:
#1. I know you said you couldn't disable USB, but in my testing this is ALWAYS the thing that causes the largest bottleneck. If it is an RT system why do you need a keyboard? Just boot into PLap and run.
#2. In MAX you can set your Advanced ethernet modes for the controller. If you set it to polling it will increase your speed.
#3. Try using a normal while loop and see if that helps. Try this last though as I think #1 and #2 will give you the best chance of improving your rates.
StuartG
09-25-2006 10:53 AM
This may not solve your main problem, but you've GOT to disable USB if you want deterministic timing. Back in RT 6.1 we performed some characterizations with USB enabled and disabled on a PXI controller. There were very dramatic spikes in the loop time data with USB enabled which completely disappeared with it disabled. As I recall the durations were in the realm of 10's of msec, far too much even for our relatively modest target of a 1 - 2 kHz loop rate.
Sorry, can't look at the vi b/c no LabVIEW on my network PC. I haven't done RT under DAQmx though, so am not sure how much help I'd be anyway.
Why do you need the keyboard again? When you run the PXI controller as an RT target, you're not interacting via keyboard, right? Don't you have a host PC hooked to the PXI system via the LAN cable?
-Kevin P.
09-25-2006 04:57 PM
09-25-2006 11:11 PM
09-26-2006 10:01 AM
What was the old (default?) setting for ethernet? I'm curious about the code now too, but don't have immediate access to LV 8 so will try to check later. Could you post a screenshot?
-Kevin P.
09-26-2006 03:18 PM
This still seems slow.
I am not in front of my RT system right now so I will try to guide you through this the best I can remember. I am not sure about this controller but I think it might be the one with two USB settings in the bios. The one you should disable is something like Advanced>>Legacy USB support. There may be just that setting in your bios I can't remember.
Did you try with just the while loop?
If you are using SW timing how are you determining your rates? Are you using the timed loop? HWTSP will give you the most accurate results. Use that and try without the while loop. I also don't remember your code now. It looked pretty optimized, but make sure you have removed all indicators and controls from inside the loop. If this still doesn't get you there I can show you some other optimizations which may get you there. Keep in mind the 47kHz (if I remember correctly) is near maximum speed. That means a pretty much headless system with no user interaction or communication. In other words you won't be able to do much at that speed except let the system run.
Kevin...the default ethernet setting is interrup.
09-05-2007 02:27 PM