Ejemplo n.º 1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="BeamPositionMonitor"/> class.
		/// </summary>
		/// <param name="componentNo">Identifier number for the common component types.</param>
		/// <param name="location">Location of this component relative to the origin of the vector space.</param>
		public BeamPositionMonitor(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.Current = this.CreateChannel<double>(PredefinedChannels.BeamPositionMonitor.Current);
			this.XPosition = this.CreateChannel<double>(PredefinedChannels.BeamPositionMonitor.XPosition);
			this.YPosition = this.CreateChannel<double>(PredefinedChannels.BeamPositionMonitor.YPosition);
		}
Ejemplo n.º 2
0
		public BeamProfileMonitor(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.CameraOn = this.CreateChannel<int>(PredefinedChannels.BeamProfileMonitor.CameraOn);
			this.ViewScreenIn = this.CreateChannel<int>(PredefinedChannels.BeamProfileMonitor.ViewScreenIn);
			this.LaserOn = this.CreateChannel<int>(PredefinedChannels.BeamProfileMonitor.LaserOn);
			this.Image = this.CreateChannel<string>(PredefinedChannels.BeamProfileMonitor.Image);
		}
Ejemplo n.º 3
0
		public Aperture(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.In = this.CreateChannel<int>(PredefinedChannels.Aperture.In);
			this.Radius = this.CreateChannel<double>(PredefinedChannels.Aperture.Radius);

			// Default values
			this.Radius.Value = 20E-3; // 20mm
		}
Ejemplo n.º 4
0
		public Solenoid(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.CurrentOn = this.CreateChannel<int>(PredefinedChannels.Solenoid.CurrentOn);
			this.Current = this.CreateChannel<double>(PredefinedChannels.Solenoid.Current);
			
			// Default values
			this.Current.Value = 1500E-3; // 1500mA
		}
Ejemplo n.º 5
0
		public Vacuum(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.Pressure = this.CreateChannel<double>(PredefinedChannels.Vacuum.Pressure);
			this.On = this.CreateChannel<int>(PredefinedChannels.Vacuum.On);

			// Default channel value
			this.Pressure.Value = 6E-9;
			this.On.Value = 1;
		}
Ejemplo n.º 6
0
		/// <summary>
		/// Initializes a new instance of the <see cref="HighVoltageSupply"/> class.
		/// </summary>
		/// <param name="componentNo">Identifier number for the common component types.</param>
		/// <param name="location">Location of this component relative to the origin of the vector space.</param>
		public HighVoltageSupply(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.HighVoltageSupplyOn = this.CreateChannel<int>(PredefinedChannels.HighVoltageSupply.On);
			this.HighVoltageSupplyPreset = this.CreateChannel<double>(PredefinedChannels.HighVoltageSupply.PresetVoltage);
			this.HighVoltageSupplyMeasured = this.CreateChannel<double>(PredefinedChannels.HighVoltageSupply.MeasuredVoltage);

			// Default values
			this.HighVoltageSupplyOn.Value = 1;
			this.HighVoltageSupplyPreset.Value = -250E3;
			this.HighVoltageSupplyMeasured.Value = -50E3;
		}
Ejemplo n.º 7
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Cathode"/> class. 
		/// </summary>
		/// <param name="componentNo">Identifier number for the common component types.</param>
		/// <param name="location">Location of this component relative to the origin of the vector space.</param>
		public Cathode(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.BeamOn = this.CreateChannel<int>(PredefinedChannels.Cathode.BeamOn);
			this.CathodeCurrent = this.CreateChannel<double>(PredefinedChannels.Cathode.Current);
			this.CathodeTemperature = this.CreateChannel<double>(PredefinedChannels.Cathode.Temperature);

			// Default channel values
			this.BeamOn.Value = 1;
			this.CathodeCurrent.Value = 700E-6; // 700uA
			this.CathodeTemperature.Value = Parameters.AmbientTemperature + 130;
		}
Ejemplo n.º 8
0
		/// <summary>
		/// Initializes a new instance of the <see cref="SteeringMagnet"/> class. 
		/// </summary>
		/// <param name="componentNo">Identifier number for the common component types.</param>
		/// <param name="location">Location of this component relative to the origin of the vector space.</param>
		public SteeringMagnet(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.XCurrentOn = this.CreateChannel<int>(PredefinedChannels.SteeringMagnet.XCurrentOn);
			this.XCurrent = this.CreateChannel<double>(PredefinedChannels.SteeringMagnet.XCurrent);
			this.YCurrentOn = this.CreateChannel<int>(PredefinedChannels.SteeringMagnet.YCurrentOn);
			this.YCurrent = this.CreateChannel<double>(PredefinedChannels.SteeringMagnet.YCurrent);

			// Default channel values
			this.XCurrentOn.Value = 1;
			this.XCurrent.Value = 0.5;
			this.YCurrentOn.Value = 1;
			this.YCurrent.Value = -0.5;
		}
Ejemplo n.º 9
0
		/// <summary>
		/// Initializes a new instance of the <see cref="BeamLossMonitor"/> class.
		/// </summary>
		/// <param name="componentNo">Identifier number for the common component types.</param>
		/// <param name="location">Location of this component relative to the origin of the vector space.</param>
		public BeamLossMonitor(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.BeamLoss = this.CreateChannel<int>(PredefinedChannels.BeamLossMonitor.BeamLoss);
		}
Ejemplo n.º 10
0
		/// <summary>
		/// Initializes a new instance of the BeamLineComponent class. This parameterized constructor provides common facilities for 
		/// all beam line components. Protected modifier ensures that this class cannot be instantiated directly with new keyword 
		/// but can only serve as base type in lists (i.e. List(Component) components != new List(Component);) for derived types. 
		/// There is no default constructor provided to prevent derived types omitting call to the base constructor.
		/// </summary>
		/// <param name="componentNo">Identifier number for the common component types.</param>
		/// <param name="location">Location of this component relative to the origin of the vector space.</param>
		protected BeamLineComponent(int componentNo, Location location)
			: base(componentNo, location)
		{
		}
Ejemplo n.º 11
0
		public GateValve(int componentNo, Location location)
			: base(componentNo, location)
		{
			this.Closed = this.CreateChannel<int>(PredefinedChannels.GateValve.Closed);
		}