public void startExperiment(string profile, String cycles)
        {
            Console.WriteLine("In startExperiment method 1: " + " profile is " + profile + " and cycle is " + cycles);
            BEELabExpHandler handler = new BEELabExpHandler();
            handler.connectToServer();

            string setPointString = handler.createSetPointStringBasedOnIndex(profile, 1, 5);
            Console.WriteLine("After createSetPointStringBasedOnIndex method is : " + setPointString);
            setPointString = handler.createSetPointStringBasedOnCycles(setPointString, int.Parse(cycles));
            Console.WriteLine("Final Set Point String is: " + setPointString);

            string id = "";
            if (profile.Equals("Phoenix"))
                id = ExperimentConstants.PhoenixId;
            if (profile.Equals("Atlanta"))
                id = ExperimentConstants.AtlantaId;

            Console.WriteLine("Set Point ID is: " + id);
            //set the set point valies of selected profile
            handler.SetValue(id, setPointString);
            // set start experiment to true
            handler.SetValue(ExperimentConstants.StartExperiemntId,"True");
            // set chamber occupancy to true
            handler.SetValue(ExperimentConstants.CCocc, "True");
        }
        public void stopExperiment()
        {
            Console.WriteLine("In stopExperiment method: " );
            BEELabExpHandler handler = new BEELabExpHandler();
            handler.connectToServer();

            // set start experiment to false
            handler.SetValue(ExperimentConstants.StartExperiemntId, "False");

            // No need to set chamber occupancy to false
            // some other running experiments might need this variable to true
        }
 private void sendEwsCientProfile(string clientProfileName, string expLength)
 {
     BEELabExpHandler handler = new BEELabExpHandler();
     handler.startExperiment(clientProfileName, expLength);
 }