output on display EMG

i need a code that simply displays the output of a functional generator. For instance, if the amplitude is 2 volts, i would like to see a sinusoidal output of 2 volts pk-pk on the computer. I have this emg device that displays emg muscle output on a an osciloscope, but would like to see the same oscilscope output on the computer. as muscle twitches so shall the output of the display change between frequency from 40 to 400 hz :P.

I suggest you adapt one of the Arduino oscilloscope sketches that you can find on the web.