Exemple #1
0
        public static object SetPW3256PowerON(SubItemModel item)
        {
            InstrumentConfigModel config;

            item.GetTargetConfig(out config);

            var instr            = SystemSettings.InstrumentsList.First(t => t.Name == config.Name);
            IInstrumentHelper dd = new SteligentPW3256(instr);

            dd.Open();
            dd.InvokeProc("PowerOn", "1");
            dd.Close();

            return(null);
        }
Exemple #2
0
        public static object PW3256MeasureVoltage(SubItemModel item)
        {
            InstrumentConfigModel config;

            item.GetTargetConfig(out config);

            var instr            = SystemSettings.InstrumentsList.First(t => t.Name == config.Name);
            IInstrumentHelper dd = new SteligentPW3256(instr);

            dd.Open();
            var ret = dd.InvokeProc <string>("MeasureVlotage", "1");

            dd.Close();

            return(ret);
        }
Exemple #3
0
        public static object SetPW3256Voltage(SubItemModel item)
        {
            string data;

            item.GetSourceData(out data);
            InstrumentConfigModel config;

            item.GetTargetConfig(out config);


            var instr = SystemSettings.InstrumentsList.First(t => t.Name == config.Name);

            IInstrumentHelper dd = new SteligentPW3256(instr);

            dd.Open();
            dd.InvokeProc("SetVoltage", data, config.Channel);
            dd.Close();

            return(null);
        }