This document describes research into creating a user-modulated function generator to project patterns using a biaxial fast-scanning mirror. To test the scanning mirror, a laser pattern must be simulated using an arbitrary waveform generator. MATLAB was used to create a program that generates a user-defined square wave function by modulating pulse widths. The function was successfully output to an oscilloscope via an Agilent arbitrary waveform generator using MATLAB drivers. Future work involves synchronizing the function with the scanning mirror oscillations and testing with the mirror system.