Exemple #1
0
    public void DoRestart()
    {
        StopPlayback();
        StopRecording();

        ShowBaseObjects(false);

        m_objRFE.Close();

        Destroy(m_objAllSweeps);

        m_bInitializedGraphics  = false;
        m_fDeltaPlaybackElapsed = 0;
        m_fPrevPlaybackElapsed  = 0;
        m_objMarker1            = null;
        m_objMarker2            = null;
        m_objSweep        = null;
        m_iConnectIndex   = -1;
        m_cells           = null;
        m_bColumnSelect   = true;
        m_bPause          = false;
        m_iCurMarker      = 0;
        m_iAdvanceCounter = m_iNumStepsToAdvance; //0;
        m_iSweepCounter   = 0;

        Camera.main.transform.position = m_vecInitialCameraPosition;

        m_panelRecord.SetActive(false);
        m_panelConnect.SetActive(true);
        m_txtConnecting.gameObject.SetActive(false);
    }
 /// <summary>
 /// Close specific serial port and finish
 /// </summary>
 static void ClosePort()
 {
     if (m_pinConnection != null)
     {
         m_pinConnection.Close();
         m_pinConnection = null;
     }
     g_objRFE.Close();
     g_objRFE.Dispose();
     //g_objRFE = null;
 }
        public bool Close()
        {
            m_dev.Close();

            return(true);
        }
Exemple #4
0
 private void SimpleMainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     m_objRFE.Close();
 }