Hi !
I'm new to C# so I don't know everything about it.
My goal here is to pick up some values from a scanner and to put them into a form.
I've written this code but I have some error on the GetValue.
Maybe I don't use it correctly ?
(The numbers 101, 102, 103 and 104 in the GetValue refer to the physical ports of the scanner.)
I'm new to C# so I don't know everything about it.
My goal here is to pick up some values from a scanner and to put them into a form.
I've written this code but I have some error on the GetValue.
Maybe I don't use it correctly ?
(The numbers 101, 102, 103 and 104 in the GetValue refer to the physical ports of the scanner.)
C#:
public Form1()
{
InitializeComponent();
}
public double Daq1 = 0.0;
public double Daq2 = 0.0;
public double Daq3 = 0.0;
public double Daq4 = 0.0;
public double GetValue(int);
private void Form1_Load(object sender, EventArgs e)
{
Daq1 = GetValue(101);
Daq2 = GetValue(102);
Daq3 = GetValue(103);
Daq4 = GetValue(104);
label24.Text = Daq1.ToString();
label25.Text = Daq2.ToString();
label26.Text = Daq3.ToString();
label27.Text = Daq4.ToString();
}