|
Re: Help with Personal labview project
If you want it to run for a minute before giving a result, you will not need to use arrays. You can eyeball it, or change the while loop to stop after xxx millisecs.
If you want to instantaneous readout, look at some of the array examples, specifically things like circular buffers -- built up from arrays.
As for the upper range, you are by default using 32 bit ints so that won't be an issue. You can switch to doubles for the accumulator if you like. I don't remember if I initialized the shift register that was accumulating, but that is where you would make it a double if you like. It should also be initialized to zero or it will continue counting from where it last left off. Be sure your serial is configured to a fast enough rate.
Greg McKaskle
|