I am using Texmaker and MiKTeX to try and produce an autosegmental representation such as the one in this image:

The following code is given in John Frampton's pst-asr user's guide:
\asr[xgap=2em,syB=2.5em] hwari|
\@(1,sy){L}
\-[xed=true,xedratio=.4](1,ts)\-[style=dotted](2,ts)
\@(2,sy){H}
\-(2,sy)(2,ts)
\@(4,sy){L}
\-(4,ts)
\endasr
No matter how I build the PDF document, the result is similar to this (i.e. not the autosegmental representation above):

I am very new to this, so it is likely I am making a simple error. Any assistance would be greatly appreciated.
See also the full code of my document:
\documentclass[10pt,a4paper]{article}
\usepackage{pst-asr}
\begin{document}
\asr[xgap=2em,syB=2.5em] hwari|
\@(1,sy){L}
\-[xed=true,xedratio=.4](1,ts)\-[style=dotted](2,ts)
\@(2,sy){H}
\-(2,sy)(2,ts)
\@(4,sy){L}
\-(4,ts)
\endasr
\end{document}
Thank you.

latex+dvipsrather thanpdflatex. See http://tex.stackexchange.com/questions/158952/using-pstricks-with-texmaker for how to do this I. TeXMaker. – Alan Munn May 12 '14 at 02:00LaTeX + dvips + ps2pdf + View PDFand thenLaTeX + dvips + View PSbut neither worked; both the PDF and DVI file had the malformed output as in the second image. – user51527 May 12 '14 at 02:38