private void calibrationModeMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_calibrationModeMenuItemActionPerformed
        //
        if (CoordinateTransformThread.calibrate_coordinates_thread_lock==false)
        {
            //
            Terminal.systemLogMessage("The euclidian coordinates are no longer in sync with the downrigger\r\ncounts of this configuration. The euclidian coordinates of the \r\ncalibration sphere's position are not available.");
            //
            CoordinateTransformThread.calibrate_coordinates_thread_lock=true;
            
            calibrationModeMenuItem.setText("Enable Calibration Mode");
        }
        //
        else
        {
            //System log message which states to the user that the calibration of cartesian coordinates is active.
            Terminal.systemLogMessage("The euclidian coordinates are now in sync with the downrigger\r\ncounts of this configuration. The euclidian coordinates of the \r\ncalibration sphere's position are now available.");
            //
            CoordinateTransformThread.calibrate_coordinates_thread_lock=false;
            //Change text of menuitem from 'Enable Calibration mode' to 'Enable Setup Mode'.
            calibrationModeMenuItem.setText("Enable Setup Mode");
        }
        
        //
        if (TensionSensor.tensionSensorThreadLock==false)
        {
            //
            Terminal.systemLogMessage("The tension sensor function has been disabled.");
            //
            TensionSensor.tensionSensorThreadLock=true;
        }
        //
        else
        {
            //System log message which states to the user that the calibration of cartesian coordinates is active.
            Terminal.systemLogMessage("The tension sensor function has been enabled.");
            //
            TensionSensor.tensionSensorThreadLock=false;
        }
    }