02-20-2011 10:21 AM
Hi everyone, this is probly an easy question, but I need to know how to intergrate my data. It is for a wireless accelerometer. Ive attached the VI, but I cant seem to get the intergration right. It was built in LV 8.2 with some functions that might not appear for you. The signal output is a single number, orange wire.
02-20-2011 01:14 PM
Since you are only gettting a single point per iteration, you need to use the ptbypt version.
What determines the loop rate of your while loop?
02-20-2011 05:08 PM
it is to loop until i tell it to stop
02-20-2011 05:53 PM
02-21-2011 06:38 AM
Im not sure, how do i determine the loop speed?
02-21-2011 10:51 AM
Since you did not include the subVI, there is no way to tell by looking at the code. How long does it take to read the sensor?
"Determine" is a somewhat fuzzy word in this context:
Typically, a toplevel user interface loop like this needs a small wait so the loop spins at a defined rate. Without a wait, the program speed will depend significantly on the computer speed and is thus not predictable. If somebody would run in in a few years on a 100x faster computer, it will run 100x faster than today. Without a wait, the program also uses all CPU it can get, slowing donw any other prcesses that need to run once in a while.