public SipperSimulator(String sipperFileName) { InitializeComponent(); if (String.IsNullOrEmpty(sipperFileName)) { sipperFileName = "C:\\Pices\\SipperFiles\\WB0813\\WB0813DSH09\\WB0813DSH09_03.spr"; } //ConvertCTDfile (); simulatorDir = OSservices.AddSlash(OSservices.AddSlash(PicesSipperVariables.SipperInterfaceDir()) + "Simulator"); configRec = new SipperConfigRec(); currentDataRow = new InstrumentData(); conversationBuffer = Queue.Synchronized(new Queue()); serialPortBuffers = new SerialPortBuffer[3]; serialPortBuffers[0] = new SerialPortBuffer(512); serialPortBuffers[1] = new SerialPortBuffer(512); serialPortBuffers[2] = new SerialPortBuffer(512); // SplitFile (); // ChkFile (); //LoadSipperFile(); ctdData = new List <char>(); ctdDataNextByte = 0; pitchRollData = new ArrayList(); pitchRollDataNextRow = 0; ExtractDataFromSIPPERFile(sipperFileName); LoadCameraLines(); batteryPack = new BatteryPack(); sipperCamera = new SipperCamera(); ctdThread = new Thread(new ThreadStart(CTDDataInstrument)); ctdThread.Name = "SipperCtdData"; ctdThread.Start(); pitchRollThread = new Thread(new ThreadStart(PitchRollDataInstrument)); pitchRollThread.Name = "SipperPitchRollData"; pitchRollThread.Start(); batteryPackThread = new Thread(new ThreadStart(BatteryPackInstrument)); batteryPackThread.Name = "SipperBatteryData"; batteryPackThread.Start(); LoadSipperFilesNames(); }
public DepthPlotDisplay(PicesCommander _parent, PicesDataBase _dbConn, String _cruiseName, String _stationName, String _deploymentNum ) { if (String.IsNullOrEmpty(_cruiseName)) { cruiseName = ""; } else { cruiseName = _cruiseName; } if (String.IsNullOrEmpty(_stationName)) { stationName = ""; } else { stationName = _stationName; } if (String.IsNullOrEmpty(_deploymentNum)) { deploymentNum = ""; } else { deploymentNum = _deploymentNum; } parent = _parent; dbConn = _dbConn; configRec = new SipperConfigRec(); }
public CameraLineDisplay(CircularBuffer _sipperCommunications, SipperConfigRec _configRec, StreamWriter _logFile ) { InitializeComponent(); executedCmds = new Queue <SipperCommand> (); sipperCommunications = _sipperCommunications; logFile = _logFile; configRec = _configRec; oldScallingRatio = ScallingRatio(); firstCameraCol = 0; pollingTimer.Enabled = true; sipperCommunications.QueueSipperCommand(SipperCommand.CreateGetCammeraLineCmd(executedCmds, sipperCommunications, logFile)); refreshButton.Enabled = false; weAreWaitingForCameraLineData = true; PaintWaitingForCameraLineData(); }