Figure 2—This is roughly what the pulses should look like. My program divides time into 0.10-ms intervals called "ticks."