02-23-2010 11:39 AM
Hi,
I suppose to plots 500 random numbers on a waveform graph and compute the avearage of the random numbers using Statistics.
I have did the LabVIEW code for this problem but there is not any output show in the graph.
Should I put the statistic inside the loop instead?if yes,then there is wire connection problem for me to wire the waveform graph directly.
Please advise on this.
Thnx.
Rgds,
Vic
02-23-2010 12:30 PM
02-24-2010 10:58 AM
Hi,thanks for the hint.
Is my code correct now?
02-24-2010 11:03 AM
Much better. I suspect that the Mean function on the Mathematics>Probablility & Statistics palette would have less overhead than the Express VI.
Also, it's a good idea to place a small wait in a while loop so that you do not starve the cpu.
02-24-2010 12:12 PM - edited 02-24-2010 12:13 PM
If you want to be able to see the results, you may want to modify your code as follows.
You can adjust the delay (ms) to your liking. Or simply remove the While Loop as you had done in your other example.
You can also delete the error indicator.
I'm not sure why you are dividing 20 by the random number, but I left it as it was in your original code.