--- focus_simulator.cpp 2014-03-16 13:57:49.528041441 +0000 +++ focus_simulator.cpp 2014-03-16 14:00:26.289810542 +0000 @@ -124,6 +124,14 @@ // but the simulators are a special case INDI::Focuser::initProperties(); + // Test + IUFillSwitch(&TestPropS[0], "Opt 1", "", ISS_ON); + IUFillSwitch(&TestPropS[1], "Opt 2", "", ISS_OFF); + IUFillSwitch(&TestPropS[2], "Opt 3", "", ISS_OFF); + IUFillSwitch(&TestPropS[3], "Opt 4", "", ISS_OFF); + IUFillSwitch(&TestPropS[4], "Opt 5", "", ISS_OFF); + IUFillSwitchVector(&TestPropSP, TestPropS, NARRAY(TestPropS), getDeviceName(), "Test Prop", "", OPTIONS_TAB, IP_RW, ISR_1OFMANY, 0, IPS_IDLE); + IUFillNumber(&SeeingN[0],"SIM_SEEING","arcseconds","%4.2f",0,60,0,3.5); IUFillNumberVector(&SeeingNP,SeeingN,1,getDeviceName(),"SEEING_SETTINGS","Seeing",MAIN_CONTROL_TAB,IP_RW,60,IPS_IDLE); @@ -155,6 +163,7 @@ if (isConnected()) { + defineSwitch(&TestPropSP); defineNumber(&FocusAbsPosNP); defineNumber(&SeeingNP); defineNumber(&FWHMNP); @@ -162,6 +171,7 @@ } else { + deleteProperty(TestPropSP.name); deleteProperty(FocusAbsPosNP.name); deleteProperty(SeeingNP.name); deleteProperty(FWHMNP.name); --- focus_simulator.h 2014-03-16 13:57:49.536041267 +0000 +++ focus_simulator.h 2014-03-16 14:00:26.289810542 +0000 @@ -35,6 +35,9 @@ double ticks; double initTicks; + ISwitch TestPropS[5]; + ISwitchVectorProperty TestPropSP; + INumberVectorProperty SeeingNP; INumberVectorProperty FWHMNP; INumber SeeingN[1];