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.
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.
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.