Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The virtual name of the channel</param>
 /// <param name="rawData">The raw data aquired for this data channel</param>
 /// <param name="settings">The general settings required for the conversion from raw data to physical one.</param>
 public ComplexDataChannel(string name, IList<double[]> rawData, DataConvertorSettings settings)
     : base(string.Empty, name, rawData, settings) { }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="channel">The data channle to serve as the source for the creation of this data channel.</param>
 /// <param name="rawData">The raw data aquired in the channel</param>
 /// <param name="settings">General settings required for the conversion of the raw data to physical data</param>
 public ComplexDataChannel(DataChannel channel, IList<double[]> rawData, DataConvertorSettings settings)
     : base(channel, rawData, settings) { }
Esempio n. 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="physicalName">The physical channels on the PCI board. e.g: Dev1\AI0</param>
 /// <param name="settings"></param>
 public PhotodetectorDataChannel(string physicalName, DataConvertorSettings settings)
     : base(physicalName, settings)
 {
     Name = "PhotodetectorDataChannel";
 }
Esempio n. 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">The virtual name of the channel</param>
 /// <param name="settings">The general settings required for the conversion from raw data to physical one.</param>
 public ComplexDataChannel(string name, DataConvertorSettings settings)
     : base(string.Empty, name, settings) { }
Esempio n. 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="physicalName">The physical channels on the PCI board. e.g: Dev1\AI0</param>
 /// <param name="settings"></param>
 public CalibrationDataChannel(string physicalName, DataConvertorSettings settings)
     : base(physicalName, settings)
 {
     Name = "CalibrationDataChannel";
 }
        /// <summary>
        /// Create instances of the desired channels to be sampled from by reflection for the calibration tab
        /// </summary>
        /// <returns></returns>
        private List<IDataChannel> GetCalibrationActiveChannels()
        {
            List<IDataChannel> activeChannels = new List<IDataChannel>();

            DataConvertorSettings dataConvertorSettings = new DataConvertorSettings(Math.Abs(this.calibrationBiasNumericEdit.Value), Convert.ToInt32(this.calibrationGainPowerComboBox.Text),
                                                                                     this.lockInAcVoltageNumericEdit.Value, Double.Parse(this.sensitivityComboBox.Text),
                                                                                     (int)this.ivSamplesPerCycleNumericEdit.Value, false);
            if (calibrationChannel1CheckBox.Checked)
            {
                activeChannels.Add((IDataChannel)Activator.CreateInstance(Type.GetType(GetFullTypeName(calibrationChannel1ComboBox.SelectedValue as string)),
                                                                          new object[] { calibrationChannel1CheckBox.Text, dataConvertorSettings }));
            }

            return activeChannels;
        }
Esempio n. 7
0
 public InputVoltageMonitorChannel(string PhysicalName, DataConvertorSettings settings)
     : base(PhysicalName, settings)
 {
     Name = "InputVoltageMonitorChannel";
 }
Esempio n. 8
0
 public DataChannel(string physicalName, string name, IList<double[]> rawData, DataConvertorSettings settings)
     :this(physicalName, name,settings)
 {
     RawData = rawData;
 }
Esempio n. 9
0
 public LockInDataChannel(string physicalName, DataConvertorSettings settings)
     :base(physicalName, settings)
 {
     // Calculate the scaling factor in the voltage 
     // by dividing the maximum of the lock-in, 10V, withe upper limit of the measurement.
     m_normalizationFactor = (10 / settings.Sensitivity);
 }
Esempio n. 10
0
 public IVProcessedDataChannel(DataConvertorSettings settings)
     : base(settings)
 {
     Name = "IVProcessedDataChannel";
 }
Esempio n. 11
0
 public LockInXYSourceDataChannel(DataConvertorSettings settings)
     : base(settings)
 {
     // Calculate the scaling factor in the voltage 
     // by dividing the maximum of the lock-in, 10V, withe upper limit of the measurement.
     m_normalizationFactor = 10 / settings.Sensitivity;
     Name = "LockInXYSourceDataChannel";
 }
Esempio n. 12
0
 public LockInXYExtrenalSourceDataChannel(DataConvertorSettings settings)
     : base(settings)
 {
     Name = "LockInXYExtrenalSourceDataChannel";
 }
Esempio n. 13
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="physicalName">The physical channels on the PCI board. e.g: Dev1\AI0</param>
 /// <param name="settings"></param>
 public DefaultDataChannel(string physicalName, DataConvertorSettings settings)
     : base(physicalName, settings)
 {
     Name = "DefaultDataChannel";
 } 
Esempio n. 14
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="physicalName">The physical name of the channel as apear on the DAQ card</param>
 /// <param name="settings">DataConvertorSettings</param>
 public DataChannel(string physicalName, DataConvertorSettings settings)
 {
     PhysicalName = physicalName;
     PhysicalData = new List<double[]>();
     RawData = new List<double[]>();
     AdditionalData = new List<IList<double[]>>();
     DataConvertionSettings = settings;
 }
Esempio n. 15
0
 public IVInputDataChannel(string physicalName, DataConvertorSettings settings)
     : base(physicalName, settings)
 {
     Name = "IVInputDataChannel";
 }
Esempio n. 16
0
 public DataChannel(string physicalName, string name, DataConvertorSettings settings)
     : this(physicalName, settings)
 {            
     Name = name;
 }
Esempio n. 17
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="physicalName">The physical channel name of the board. e.g Dev1\AI0</param>
 /// <param name="name">The virtual name of the channel</param>
 /// <param name="settings">General settings required for the conversion of the raw data to physical data</param>
 public SimpleDataChannel(string physicalName, string name, DataConvertorSettings settings)
     : base(physicalName, name, settings) { }
Esempio n. 18
0
 public DataChannel(DataChannel channel, IList<double[]> rawData, DataConvertorSettings settings)
 {
     PhysicalName = channel.PhysicalName;
     Name = channel.Name;
     RawData = rawData;
     DataConvertionSettings = settings;
     AdditionalData = new List<IList<double[]>>();
 }
Esempio n. 19
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="physicalName">The physical channel name of the board. e.g Dev1\AI0</param>
 /// <param name="name">The virtual name of the channel</param>
 /// <param name="rawData">The raw data aquired in the channel</param>
 /// <param name="settings">General settings required for the conversion of the raw data to physical data</param>
 public SimpleDataChannel(string physicalName, string name, IList<double[]> rawData, DataConvertorSettings settings)
     : base(physicalName, name, rawData, settings) { }
Esempio n. 20
0
 /// <summary>
 /// Cond\structor
 /// </summary>
 /// <param name="physicalName"></param>
 /// <param name="settings"></param>
 public LockInXInternalSourceDataChannel(string physicalName, DataConvertorSettings settings)
     : base(physicalName, settings)
 {
     Name = "LockInXInternalSourceDataChannel";
 }
        /// <summary>
        /// Create instances of the desired channels to be sampled from by reflection for the IV tab
        /// </summary>
        /// <returns></returns>
        private List<IDataChannel> GetIVActiveChannels()
        {
            List<IDataChannel> activeChannels = new List<IDataChannel>();

            DataConvertorSettings dataConvertorSettings = new DataConvertorSettings(Math.Abs(this.ivVoltageForTraceNumericEdit.Value), Convert.ToInt32(this.ivGainPoweComboBox.Text),
                                                                                     this.lockInAcVoltageNumericEdit.Value, Double.Parse(this.sensitivityComboBox.Text),
                                                                                     (int)this.ivSamplesPerCycleNumericEdit.Value, this.takeIVCheckBoxButton.Checked);
            if (ivChannel0CheckBox.Checked)
            {
                activeChannels.Add((IDataChannel)Activator.CreateInstance(Type.GetType(GetFullTypeName(ivChannel0ComboBox.SelectedValue as string)),
                                                                          new object[] { ivChannel0CheckBox.Text, dataConvertorSettings }));
            }

            if (ivChannel1CheckBox.Checked)
            {
                activeChannels.Add((IDataChannel)Activator.CreateInstance(Type.GetType(GetFullTypeName(ivChannel1ComboBox.SelectedValue as string)),
                                                                          new object[] { ivChannel1CheckBox.Text, dataConvertorSettings }));
            }

            if (ivChannel2CheckBox.Checked)
            {
                activeChannels.Add((IDataChannel)Activator.CreateInstance(Type.GetType(GetFullTypeName(ivChannel2ComboBox.SelectedValue as string)),
                                                                          new object[] { ivChannel2CheckBox.Text, dataConvertorSettings }));
            }

            if (ivChannel3CheckBox.Checked)
            {
                activeChannels.Add((IDataChannel)Activator.CreateInstance(Type.GetType(GetFullTypeName(ivChannel3ComboBox.SelectedValue as string)),
                                                                          new object[] { ivChannel3CheckBox.Text, dataConvertorSettings }));
            }

            return activeChannels;
        }