Plotting Discrete Outputs/Inputs

How would I or better yet can I? I am running a program where I toggle a discrete output after applying pressure and would like to see when it occurs.

Take a look here.
[url]Plotting Bits]