The code marked in red is the actual drawing of the waveform; basically the array is scanned and drawn to
the channel DC (m_dcCH1) using the grid coordinate arrays m_nGridX[] and m_nGridY[] . The code looks
more complex because of the following variables: m_nTriggerCH1 specifies the array trigger offset,
m_nCH1_Offset specifies the channel offset, m_Skip specifies the number of array locations to skip to
achieve the required time-base, m_MUX specifies the number of array location to duplicate to achieve the
required time-base, and m_nVPD_CH1 sets the voltage scale. Note drawing of the zero point and offset
arrows are also drawn in this function and all four channels are drawn in exactly the same way.