Java Reference
In-Depth Information
h.27 functIon for clIp connectIon event for
oscIlloscope termInals
private void OsciSupplement()
{
counterch1 = 0;
if (ch1on) counter=0;
if (tcp_osciservice!=null)
{
if (osci_slideposi[0].y==oscislider1_posi[0]) tcp_osciservice.SendCmd(“ch1ac”);
else if
(osci_slideposi[0].y==oscislider1_posi[1]) tcp_osciservice.SendCmd(“ch1gnd”);
else if (osci_slideposi[0].y==oscislider1_posi[2]) tcp_osciservice.SendCmd(“ch1dc”);
}
}
h.28 functIon for clIp connectInG event for
sIGnal Generator termInals
private void SgSupplement()
{
counterch2 = 0;
if (ch2on) counter=0;
if (tcp_sgservice!=null)
tcp_sgservice.SendCmd(“d0”);
stime = System.currentTimeMillis();
do
{
deltatime = System.currentTimeMillis() - stime;
} while (deltatime<STEPDELAY);
if (sgbuttonaction[4]) //add the unit for the number
{
sgfrq = sgvalue;
cycle=sgfrq*sweeptime;
if (tcp_sgservice!=null)
tcp_sgservice.SendCmd(“FRQ “+String.valueOf(sgfrq)+” HZ abc0”);
}
else if (sgbuttonaction[3])
{
sgamp = sgvalue;
if (tcp_sgservice!=null)
tcp_sgservice.SendCmd(“AMP “+String.valueOf(sgvalue/1000.0f)+” V”);
}
else if (sgbuttonaction[2])
{
if (sgsquare)
{
if (tcp_sgservice!=null)
tcp_sgservice.SendCmd(“W3,H0”);
Search WWH ::




Custom Search