Beispiel #1
0
        public bool savePrm()
        {
            bool ret = true;

            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "startPos_x", startPos_x);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "startPos_y", startPos_y);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "PhotoPos_x", PhotoPos_x);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "PhotoPos_y", PhotoPos_y);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "endPos_x", endPos_x);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "endPos_y", endPos_y);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "FocusPos_z", FocusPos_z);
            ret = ret && INIOperationClass.writeKey(prmFile, PosSection, "FocusPos_z_2", FocusPos_z_2);

            ret = ret && INIOperationClass.writeKey(prmFile, WorkSection, "gap", gap);

            for (int i = 0; i < 9; i++)
            {
                string namex = "Pos_" + i.ToString() + "_x";
                string namey = "Pos_" + i.ToString() + "_y";
                ret = ret && INIOperationClass.writeKey(prmFile, PosSection, namex, pos_x[i]);
                ret = ret && INIOperationClass.writeKey(prmFile, PosSection, namey, pos_y[i]);
            }

            return(ret);
        }
Beispiel #2
0
        public bool savePrm()
        {
            bool ret = true;

            ret = ret && INIOperationClass.writeKey(prmFile, signalSection, "portNumber", portNumber);
            ret = ret && INIOperationClass.writeKey(prmFile, signalSection, "baudRate", baudRate);
            ret = ret && INIOperationClass.writeKey(prmFile, signalSection, "recvTime", recvTime);
            ret = ret && INIOperationClass.writeKey(prmFile, signalSection, "modelName", modelName);
            ret = ret && INIOperationClass.writeKey(prmFile, signalSection, "patterName", patterName);

            return(ret);
        }