private void button1_Click(object sender, EventArgs e) { pcu = getPCUService(); if (pcu != null) { pcu.EnAutoExp(); } }
public Form1() { InitializeComponent(); bus.Connect(); UnregisterPCUService(); Thread.Sleep(500); RegisterPCUService(); pcu = getPCUObject(); pcu.Connect(); }
public SCBWrapper() { otcBtn.ARelBtn = otcBtn.BRelBtn = otcBtn.XRelBtn = otcBtn.XYZRelBtn = otcBtn.YRelBtn = otcBtn.ZRelBtn = false; wsdBtn.ZRelBtn = tblBtn.FloatRelBtn = false; UnregisterPCUService(); Thread.Sleep(500); RegisterPCUService(); pcu = getPCUObject(); pcu.Connect(); bus.Connect(); otcxyz = new OTCXYZControllerCLS(bus); wsd = new WSDControllerCLS(bus); tbl = new TBLControllerCLS(bus); col = new CollimatorCLS(bus); }
/// <summary> /// Power up all axis controllers and UPS /// </summary> public void PowerUp() { UnregisterPCUService(); Thread.Sleep(500); RegisterPCUService(); pcu = getPCUObject(); pcu.Connect(); bus.StartBus(); otcxyz.PowerUp(); wsd.PowerUp(); tbl.PowerUp(); col.PowerUp(); pcu.Connect(); isPowerOn = true; }
static void Main(string[] args) { PCUSimulator pcu = new PCUSimulator(); pcu.Connect(); Console.Read(); }