Hello Michael,
In order to do this, you will need to play around with the duty cycle of the pulse. The duty cycle calculates the duration of the cycle that a square waveform is positive or "high." (The positive width divided by the period * 100.) So, you will need to generate a pulse and be able to change the duty cycle at different times so that you can create the pulses that you want. To begin, you will need to choose whether to use the internal timebase of the board (20MHz or 100MHZ) or use an external clock. Let's pretend you are going to use an external clock of frequency of 1000Hz and you want your first pulse to be ON for 1ms and be OFF for 3ms. In this case, you will need to use a duty cycle of 25%. If you want your second pulse to be ON for 2ms and off for 30ms, then you will need to use a duty cycle of 6.25%. This would be the second duty cycle in your program. You can do the same calculations for the other pulses in your program.
Please let me know if this information was useful and if you have any additional questions about this.
Best regards,
LA