WFA_psychometric_chart.Form1_main.ReadDataFromDeviceForHumidity C# (CSharp) Method

ReadDataFromDeviceForHumidity() public method

public ReadDataFromDeviceForHumidity ( int deviceID, uint hum_panID, string param2_identifier_type ) : void
deviceID int
hum_panID uint
param2_identifier_type string
return void
        public void ReadDataFromDeviceForHumidity(int deviceID,uint hum_panID,  string param2_identifier_type)
        {
            //lets do some operation regarding the pannel id and stuff

            //then perform this task 
            try
            {
               // uint panID_1 = temp_panID;//0; //uint.Parse(panelID1);

                uint panID_2 = hum_panID;//1;//uint.Parse(panelID2);
                BACnetClass b = new BACnetClass();

                //for temperature value
               // b.StartProgramForScanHardware(deviceID, panID_1, param1_identifier_type);
               // double temperary1 = double.Parse(b.PresentValueFromBacnet.ToString());
                //tb_temp_panel_value.Text = temp;
                //For humidity value
                b.StartProgramForScanHardware(deviceID, panID_2, param2_identifier_type);
                double temperary2 = double.Parse(b.PresentValueFromBacnet.ToString());
                //tb_hum_panel_value.Text = humidity;
                //hardwareValue1 = temperary1;//--This value contains the temperature values
                hardwareValue2 = temperary2; //This one is humidity
                //lets store these two values in a temporary list

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);

            }

        }
Form1_main