Beispiel #1
0
 public SensorVolt()
 {
     this.status = SensorStatus.BUSY;
     if (SensorListVolt.VOLTDEV == null)
     {
         SensorListVolt.INIT();
     }
 }
Beispiel #2
0
 public void connect()
 {
     SensorListVolt.INIT();
     if (SensorListVolt.connected)
     {
         this.status = SensorStatus.CONNECTED;
     }
 }
Beispiel #3
0
        public SensorListVolt(DataTable table)
        {
            set = table;

            if (SensorListVolt.VOLTDEV == null)
            {
                SensorListVolt.INIT();
            }

            //if (SensorListVolt.VOLTDEV. == 0)
            //{
            //    for (int i = 0; i < 4; i++)
            //    {
            //        DataRow row = set.Rows.Add();
            //        Sensor newSens = new SensorVolt();
            //        String id = "VOLT:0:" + i;
            //        newSens.setDeviceIdentifier(id);
            //        row.ItemArray = new Object[] { SensorType.GPS, id, newSens };
            //    }
            //}
        }