In this work, the process to obtain the curve "Graylevel vs phase shift" of a transmissive spatial light modulator (SLM) HoloeyeLC2012 is described. This work arises from the need that exists for having a new optical surface testing method at INAOE's Optical Workshop. The SLM was placed in one arm of a Twyman-Green interferometer. The fringe shifts in the interference patterns were produced by displaying the different gray levels in the SLM. The gray level images displayed in the SLM were divided in two equal parts, the upper part was varying the different gray levels from 0 to 255 and the lower part stayed fixed with a gray level of 0 as reference. We show the different phase shifts and the experimental interferograms. From this analysis it was found out that a noticeable phase shift can be obtained from the 50 to the 190 gray levels.