The logic looks like this:
Hit Start Button then:
insert yValue from accelerometer into Label1 - then wait 500 milliseconds - capture accelerometer yValue data again and put it into Label2 - then wait 500 milliseconds - capture yValue of accelerometer and put into Label3 - wait 500 milliseconds - do this until we reach Label30 and then stop the looping.
Then at the end of the loop of 15 seconds I would have 30 Label fields filled up with yValue from the accelerometer.
And that is where I'm stuck. Once I gather this information I know what to do. But I just can't figure out how to do the above. Any help is much appreciated. Thank you in advance.
http://www.appinventor.org/ Chapter18
and perhaps it would be easier to put all that data into a single label? set label1.text to join label1.text
\n
You will need some IF statements a clock a label and to understand how to loop (see above). If you want to save the data, you will need a TinyDB or use a File control to save a csv type file with all the recorded data.
Try some blocks, post a screen capture image of what you are specifically having difficulty with and you will get advice
댓글 없음:
댓글 쓰기