Beispiel #1
0
        private string  ConstructInstrumentFileName(string sipperFileName)
        {
            String instDataDir = OSservices.AddSlash(PicesSipperVariables.SipperInterfaceDir()) + "InstrumentData";

            if (instDataDir == "")
            {
                instDataDir = OSservices.AddSlash(PicesSipperVariables.SipperInterfaceDir()) + "InstrumentData";
            }
            OSservices.CreateDirectory(instDataDir);

            string instDataRootName = sipperFileName;

            if (instDataRootName == "")
            {
                instDataRootName = "InstrumentData";
            }
            else
            {
                instDataRootName = instDataRootName + "_InstrumentData";
            }

            string instDataFileName = OSservices.AddSlash(instDataDir) + instDataRootName + ".txt";

            return(instDataFileName);
        } /* ConstructInstrumentFileName */
Beispiel #2
0
        } /* PaintErrorRetreivingCammeraLineData   */

        private void  SaveImageInLogDirectory()
        {
            if (chartBuff != null)
            {
                DateTime d           = DateTime.Now;
                string   logFileDir  = OSservices.AddSlash(PicesSipperVariables.SipperInterfaceLogDir()) + "CameraLines";
                string   logFileName = OSservices.AddSlash(logFileDir) + "CameraLine_" + d.ToString("yyyy-MM-dd_HHmmss") + ".jpg";
                OSservices.CreateDirectory(logFileDir);
                chartBuff.Save(logFileName);
            }
        } /* SaveImageInLogDirectory */
Beispiel #3
0
        public SipperDiskManager()
        {
            destDir = OSservices.AddSlash(PicesSipperVariables.HomeDir()) + "SipperFiles";
            OSservices.CreateDirectory(destDir);

            InitializeComponent();

            UpdateAvailableBytes();
            DownLoadDir.Text = destDir;

            selectedFiles = new SipperFileControlBlockList();
            UpdateAvailableBytes();

            oldHeight = this.Height;
            oldWidth  = this.Width;
        }
Beispiel #4
0
        public TimePlot(SipperConfigRec _sipperConfigRec,
                        InstrumentDataList _history
                        )
        {
            OSservices.CreateDirectory(PicesSipperVariables.ConfigurationDirectory());
            timePlotConfigFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "TimePlotConfig.txt";

            sipperConfigRec = _sipperConfigRec;
            history         = _history;
            InitializeComponent();
            InitializeVariables();
            LoadConfiguration();

            SetToLiveMode();
            updateChartTimer.Enabled = true;
        }
Beispiel #5
0
 public SipperConfigRec()
 {
     OSservices.CreateDirectory(PicesSipperVariables.ConfigurationDirectory());
     sipperConfigurationFileName = PicesSipperVariables.ConfigrationFileName();
     Load();
 }