
8.8 Sample Programs
163
8
Chapt
er 8
RS-232
C
/GP-I
B
In
te
rf
aces
SerialPort1.WriteLine(":FETCH?");
//Begin measurement and read measurement results Comman....(f)
recvstr = SerialPort1.ReadLine();
//Read measurement results
sw.WriteLine(recvstr);
//Write to file
}
sw.Close();
//Close file
SerialPort1.Close();
//Close port
button1.Enabled = true;
button2.Enabled = true;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
//Set measurement conditions
private void SendSetting()
{
try
{
SerialPort1.WriteLine(":TRIG:SOUR IMM");//Select internal triggering
SerialPort1.WriteLine(":INIT:CONT ON"); //Continuous measurement ON
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
//Close program when Button2 is pressed
private void button2_Click(object sender, EventArgs e)
{
Dispose();
}
}
}
HIOKI BT3564A961-02
Summary of Contents for BT3564
Page 2: ...HIOKI BT3564A961 02...
Page 44: ...3 7 Displaying Measurement Results 38 HIOKI BT3564A961 02...
Page 80: ...4 12 Reset Function 74 HIOKI BT3564A961 02...
Page 98: ...6 3 Printing 92 HIOKI BT3564A961 02...
Page 170: ...8 8 Sample Programs 164 HIOKI BT3564A961 02...
Page 182: ...10 3 Error Indication 176 HIOKI BT3564A961 02...
Page 202: ...Appendix 11 Dimensional Diagram A20 HIOKI BT3564A961 02...
Page 206: ...Index 4 HIOKI BT3564A961 02...
Page 207: ...HIOKI BT3564A961 02...
Page 208: ...HIOKI BT3564A961 02...
Page 209: ...HIOKI BT3564A961 02...
Page 210: ...HIOKI BT3564A961 02...