balaclava
2008-08-07 12:40:11 UTC
Just had a quick question about how to make each iteration of a timeout execute a little longer without stalling out the rest of the program. Basically I'm collecting and processing data through a DAQmx input (voltage signal), and my program is mainly centered around the timeout case of an event structure. The event structure is inside a while loop, and data collection and analysis (graphing, etc.) occurs during the timeout event. I need to have the timeout event execute as often as possible (i.e., no lag- I set the timer on the event structure to 0) to ensure that the delay between data collections is negligible (we're trying to calculate position data based on how fast we're going and how many datapoints we've taken).
So in short, I need to make a timeout event have no lag in between executions, but each timeout event needs to take 100 ms per execution. It's taking 95 ms per execution. What's the best way to add 5 ms to the event's execution time?
I'm willing to clarify whatever questions that need to be answered. Thanks in advance.
So in short, I need to make a timeout event have no lag in between executions, but each timeout event needs to take 100 ms per execution. It's taking 95 ms per execution. What's the best way to add 5 ms to the event's execution time?
I'm willing to clarify whatever questions that need to be answered. Thanks in advance.