07-15-2005 03:41 PM
07-15-2005 03:50 PM
07-15-2005 04:03 PM
07-18-2005 08:23 AM
07-18-2005 09:59 AM
The "simulate signal" is set to "run as fast as possible", and not to "simulate acq. timing" so this cannot be the explanation.
A quick profiling shows tremendous amounts of CPU used in many of the express VIs, especially the file write, and in the statistics. This is a monster of a program, all these express VIs carry a lot of extra baggage.
Then there are very weird code constructs, for example you write the "arithmetic Mean (Dynamic data)" To the boolean "reset signal" input of the second "simulate signal" express VI. What is this possibly supposed to do??? It makes no sense!
If speed is important, you should probably replace the express VIs with a few efficient classic blocks and directly work with arrays instead of dynamic data types.
To monitor loop times, you should feed your tick count output into a shift register, then subtract the new from the old value at each iteration to get the ms timer value.
07-18-2005 11:08 AM
07-18-2005 11:21 AM - edited 07-18-2005 11:21 AM
You probably want to wire it to the "offset" input, not the "reset signal".
@sheck wrote:
As for the "wierd code constructs", I was trying to plot the mean onto the waveform graph. I rec'd a suggestion to feed the scalar mean values into a DC Simulate Signal VI so that I could plot the mean. Is this not correct?
Something like this:
@sheck wrote:
Also, could you explain in more detail about how to monitor the loop times?
Message Edited by altenbach on 07-18-2005 09:22 AM