Esempio n. 1
0
        /// <summary>
        /// Builds a measurement
        /// </summary>
        /// <param name="PRT_m">The PRT being used in the measurement</param>
        /// <param name="MUX_m">The MUX type that the PRT is pluged into</param>
        /// <param name="bridge_m">The type of resistance bridge the PRT is plugged into</param>
        /// <param name="bridge_m">The channel for the measurement</param>
        /// <param name="bridge_m">A delegate to be called when temperature data becomes available</param>
        public TemperatureMeasurement(ref PRT PRT_m, ref MUX MUX_m, ref ResistanceBridge bridge_m, short channel, long measurement_index)
        {
            prt                     = PRT_m;
            mux                     = MUX_m;
            bridge                  = bridge_m;
            lab_location            = "";
            filename                = "";
            channel_for_measurement = channel;
            result                  = 0.0;
            measurement_index_      = measurement_index;
            //thread_count = measurement_index+1;
            x_data = new StringBuilder("");
            y_data = new StringBuilder("");
            date   = DateTime.Now;
            assigned_thread_priority = 1;  //make the fresh measurement added have the highest execution priority.

            //everytime we add a new measurement change the size of the thread array
            //Array.Resize(ref threads_running,(int) measurement_index);
            Array.Resize(ref current_measurements, (int)measurement_index + 1);
            current_measurements[measurement_index] = this;

            //Array.Resize(ref threadexecution, (int)measurement_index);

            //threadexecution[measurement_index] = true;
        }
Esempio n. 2
0
 public ResistanceBridge(int GPIB_Address_, string SICL_, ref MUX multi_)
 {
     GPIB_adr          = GPIB_Address_;
     SICL_interface_id = SICL_;
     multi             = multi_;
 }
Esempio n. 3
0
 public void setMUX(ref MUX mux)
 {
     multi = mux;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new Agilent Bridge
 /// </summary>
 /// <param name="address">The GPIB Address of the Bridge/MUX</param>
 /// <param name="gatewaystring">The SICL interface ID of the gateway</param>
 /// <param name="multi">The multiplexor associated with this device.  Each bridge create must have a multiplexor object even if it is integral to the bridge</param>
 public AgilentBridge(short address, string gatewaystring, ref MUX multi) : base(address, gatewaystring, ref multi)
 {
     agilent_bridge_mux = (AgilentMUX)multi;
 }