Example #1
0
        private void Init_GB_spéciaux()
        {
            this.Li_consigne = Consigne.Créer_x_fois_consigne(6, 6, 3, 1);
            this.Li_Bras     = Bras.Géné_x_consigne(6, 127, 4, 2);

            Consigne.Lié_position_dessous(Bras.Li_Gb_bras);
            this.doublepulse        = new DoublePulse(6, 6, false);
            this.paramètresGénéraux = new ParamètresGénéraux(782, 140, true);
            this.fréquence          = new Fréquence(1063, 140, true);
            this.can = new CAN(782, 262);

            foreach (GGroupBox gb in Consigne.Li_Gb_consigne)
            {
                this.panel_modulaire.Controls.Add(gb);
            }
            foreach (GGroupBox gb in Bras.Li_Gb_bras)
            {
                this.panel_modulaire.Controls.Add(gb);
            }
            this.panel_modulaire.Controls.Add(doublepulse.Gb_Principal);
            this.Controls.Add(paramètresGénéraux.Gb_Principal);
            this.Controls.Add(this.fréquence.Gb_Principal);
            this.Controls.Add(this.can.Gb_Principal);


            this.Li_Gb_spéciaux.AddRange(this.Li_Bras);
            this.Li_Gb_spéciaux.AddRange(this.Li_consigne);
            this.Li_Gb_spéciaux.Add(this.doublepulse);
            this.Li_Gb_spéciaux.Add(this.paramètresGénéraux);
            this.Li_Gb_spéciaux.Add(this.fréquence);
            this.Li_Gb_spéciaux.Add(this.can);
        }
Example #2
0
        private void Cmb_mode_puissance_SelectedIndexChanged(object sender, EventArgs e)
        {
            Consigne.Changement_mode_de_consigne(this.cmb_mode_puissance.SelectedIndex);

/*
 * Boucle ouverte
 * Boucle fermé
 * Opposition
 * Complet
 * Mode Triphasé
 */
        }
Example #3
0
        private void MAJ_DataFPGA_boucle(List <String> li_str)
        {
            int index = this.Index_de_départ_du_DGV;

            if (this.EstlePremier_consigne())
            {
                this.Li_data_du_dgv[index].Valeur = Consigne.Récup_Paramètre() + "à faire";//TODO + (surmodulation);
                index++;
            }
            foreach (string str in li_str)
            {
                this.Li_data_du_dgv[index].Valeur = str;
                index++;
            }
        }
Example #4
0
 private void checkBox1_Click(object sender, EventArgs e)
 {
     Consigne.Change_Visibilité_Pid(((CheckBox)sender).Checked);
 }