Ejemplo n.º 1
0
 public void Initialize(Oscilloscope osc)
 {
     oscilloscope     = osc;
     buttonSelectKeys = new[]
     {
         ButtonSelectC1, ButtonSelectC2, ButtonSelectC3, ButtonSelectC4,
         ButtonSelectC5, ButtonSelectC6, ButtonSelectC7, ButtonSelectC8
     };
     SelectChannel(OscChannel.Name.C1);
     UpdateHelp();
     IsVisible = false;
 }
Ejemplo n.º 2
0
 public void Initialize(Oscilloscope osc)
 {
     oscilloscope     = osc;
     buttonSelectKeys = new KeyCode[]
     {
         buttonSelectC1, buttonSelectC2, buttonSelectC3, buttonSelectC4,
         buttonSelectC5, buttonSelectC6, buttonSelectC7, buttonSelectC8,
     };
     SelectChannel(OscChannel.Name.C1);
     UpdateHelp();
     IsVisible = true;
 }
Ejemplo n.º 3
0
        private float autoDivisions = 2;                        //< Auto attenuation fit to X divisions

        /// <summary>Initialize oscilloscope channel</summary>
        /// <param name="oscProbe">Default input connected to this channel</param>
        /// <param name="bufferSize">Buffer capacity</param>
        public void Initialize(Oscilloscope osc, OscProbe oscProbe, int bufferSize)
        {
            oscilloscope       = osc;
            oscSettings        = osc.oscSettings;
            oscRenderer        = osc.oscRenderer;
            chanLabelPosX      = oscSettings.rectangle.xMin;
            valsLabelPosX      = oscSettings.rectangle.xMax;
            label.color        = color;
            statusText.color   = color;
            ledPlugged.colorOn = color;
            ledPlugged.message = label.text = channelName.ToString();
            buffer             = new Vector3[bufferSize];
            Plug(oscProbe);
            RenderGUI();
        }
Ejemplo n.º 4
0
        // =============================================================================================================
        // Initialization
        // =============================================================================================================

        /// <summary>Create trigger with default channel</summary>
        /// <param name="oscilloscope"></param>
        public void Initialize(Oscilloscope osc, OscChannel oscChannel)
        {
            oscilloscope       = osc;
            oscSettings        = osc.oscSettings;
            oscRenderer        = osc.oscRenderer;
            textureCenterX     = oscSettings.textureCenter.x; /* Perf. Opt */
            configText.color   = color;
            valueLabel.color   = color;
            valueLabel.text    = TRIGGER_CHANNEL_NAME;
            timeCursor.color   = color;
            timeCursor.text    = TRIGGER_CHANNEL_NAME;
            ledPlugged.message = TRIGGER_CHANNEL_NAME;
            pause             = true;
            timeLabelPosY     = oscSettings.rectangle.yMin;
            debugText.enabled = DEBUG_DISPLAY;
            SetChannel(oscChannel);
            SpawnLabels();
            RenderGUI();
        }