06-03-2010 12:37 PM - edited 06-03-2010 12:39 PM
I have noticed that displaying my data sampling in the front panel increases my loop period by 5-10 ms and I was hoping to come up with a better method. I don't need my indicators to display every data point, but I do need to write each point to a file. I am running the program on XP and sampling using a NI6036E DAQCard. Are there any areas of my code in which I might be able to improve my efficiency? Also, I'm a bit confused as to why I can only run loops as fast as 1 ms on Windows. Is this a Windows clock issue?
Thanks for your help!
06-03-2010 12:47 PM
This KB discusses how to avoid this type of behavior.
Simply use the decimate array function to send only 5-15% (whatever seems rational for the size of the array) of the points to the FP indicator.
06-03-2010 02:15 PM
You should always on a non realtime OS. Use the hardware timed DAQ. And never (ever) let Labview do the timing job. Also if you need a curve appear to be realtime. Think about the limitations of the human eye. If you update with a frequency around 15 to 20 Hz It will behave as it was real time. Go to help in the toolbar the select find examples do a search for acquisition and locate the "Cont Acq&Chart Samples-Int Clk.vi" as good start.
Your approach is a typical beginner error. But that is Ok we have all been beginners sometime 😉