Example #1
0
        private void button_GetGPI0_Click(object sender, EventArgs e)
        {
            bool ret = false;

            if (HighLevelInterface.GetGPI0Status(tbIpAddress.Text, ref ret) == Result.OK)
            {
                if (ret)
                {
                    lbGPI0.Text = "ON";
                }
                else
                {
                    lbGPI0.Text = "OFF";
                }
            }
            else
            {
                lbGPI1.Text = "UNKNOWN";
            }
        }