public DAQControl(bool usingGui) { gui = usingGui; gControl = this; applog = NC.App.Loggers.Logger(LMLoggers.AppSection.App); collog = NC.App.Loggers.Logger(LMLoggers.AppSection.Collect); ctrllog = NC.App.Loggers.Logger(LMLoggers.AppSection.Control); datalog = NC.App.Loggers.Logger(LMLoggers.AppSection.Data); // The state was set on cmd line prior to exec here, and it still is, so must upcast to an Assay instance NC.App.Opstate = new AssayState(NC.App.Opstate); LMMMComm = LMMMComm ?? new TalkToLMMMM(collog); // a singleton, modern syntax just for fun CurState.SOH = NCC.OperatingState.Starting; }
public DAQControl(MLMEmulation.IEmulatorDiversion emu, bool usingGui) { gui = usingGui; gControl = this; applog = NC.App.Loggers.Logger(LMLoggers.AppSection.App); collog = NC.App.Loggers.Logger(LMLoggers.AppSection.Collect); ctrllog = NC.App.Loggers.Logger(LMLoggers.AppSection.Control); netlog = NC.App.Loggers.Logger(LMLoggers.AppSection.Net); datalog = NC.App.Loggers.Logger(LMLoggers.AppSection.Data); // JFL was set on cmd line prior to exec here, and it still is, upcast to an Assay instance NC.App.Opstate = new AssayState(NC.App.Opstate); LMMMComm = LMMMComm ?? new TalkToLMMMM(NC.App.Loggers.Logger(LMLoggers.AppSection.LMComm)); // a singleton emu.SetLogger(NC.App.Loggers.Logger(LMLoggers.AppSection.LMComm)); LMMMComm.EmulatorInstance = emu; CurState.SOH = NCC.OperatingState.Starting; }