Beispiel #1
0
        public Form1 () {
                      
            sObj = new Sensor[totalSensors];

            // for loops to initialize first the analogue then one for the digital sensors
            for (int i = 0; i < analogSensors; i++) sObj[i] = new Sensor (i+1, MinV, MaxV, false);
            for (int i = analogSensors; i < totalSensors; i++) sObj[i] = new Sensor ((i-analogSensors+1), 0, 1, true);

            InitializeComponent ();
            } // end Form1
Beispiel #2
0
        static void Main(string[] args)
        {

            int counter, maxSid = 9;
            sTxt = null;

            sObj = new Sensor[maxSid];
            for (counter = 0; counter < maxSid; counter++)
            {
                sObj[counter] = new Sensor(counter);
            }


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmDaq());
            
          }