views:

95

answers:

2

Hi all, I'm trying to collect data for a machine learning project I'm working on. What I'd like to do is collect accelerometer data from an iPhone, save it to a csv and email it to myself. My app currently is able to acquire data from the accelerometer, but I'm at a bit of a loss as to how to proceed. First of all, I'd like to acquire data for a preset amount of time (after playing a sound to the user) which I don't really know how to do, and I can't find good documentation for. Also, I'd like to save that to a csv, which there is some documentation on (specifically using the NSString writeToFile method). Any recommendations/ ideas?

Thanks!

+1  A: 
progrmr
A: 

That's great! the performSelector:withObject:afterDelay: works very well. Any thoughts on saving as CSV? The NSString writeToFile method looks as if it might work, but I'm not entirely sure that's the best way to go about it.

Bradley Powers