Here is a more modular version of the RC servo code that allows more custom timing
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.