Exemplo n.º 1
0
        public AutoForm(Analog analog)
        {
            InitializeComponent();

            anal    = analog;
            binary  = new Binary();
            digit   = new Digit();
            hioki   = new HIOKI3540();
            ini     = new iniUtil(@"C:\Users\gy157\Documents\Info.ini");
            logfile = new logFile();

            list  = new List <string>();
            state = new bool[8];
            Hioki3540.PortName = ini.GetIniValue("HIOKI", "PortName");
            //Hioki3540.Open();
        }
Exemplo n.º 2
0
        public SelfForm(Analog analog)
        {
            InitializeComponent();

            anal  = analog;
            Hioki = new HIOKI3540();
            digit = new Digit();
            ini   = new iniUtil(@"C:\Users\gy157\Documents\Info.ini");

            HIOKI3540.PortName = ini.GetIniValue("HIOKI", "PortName");
            //HIOKI3540.Open();

            Iszoomin = false;
            Iscon    = false;
            state    = new bool[8];
        }
Exemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();
            analog = new Analog();

            if (analog.Connect(ref ErrorMsg))
            {
                MessageBox.Show("Connect", "OK", MessageBoxButtons.OK, MessageBoxIcon.Information);
                AutoFormOpen();
                panel4.Height = 637;
            }
            else
            {
                MessageBox.Show("NI USB-6001을 연결해주세요.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }