Пример #1
0
        //チャンネル数取得
        private void caioGetChannel()
        {
            short ch = 0;
            int   aioChannelState = aio.GetAiMaxChannels(devId, out ch);

            if (aioChannelState != 0)
            {
                statusMsg(aioChannelState, null);
                return;
            }
            else
            {
                xAxisListBox.Items.Clear();
                yAxisListBox.Items.Clear();
                for (int i = 0; i < ch; ++i)
                {
                    xAxisListBox.Items.Add(i);
                    yAxisListBox.Items.Add(i);
                }
                xAxisListBox.SelectedIndex = 0;
                yAxisListBox.SelectedIndex = 1;
            }
            maxChLabel.Text = ch.ToString() + "ch";
        }