Periodic Sample Swift Code

Hello, 
Is is possible for someone to post an example how to configure periodic sampling with Swift 3.0 code? I keep getting crashes when using this and the regular sensor fusion stream is too fast for my application to handle.

Thanks,
Riley
This discussion has been closed.