Java Reference
In-Depth Information
case 2201:
sgbuttonTrans[5]=trans;
sgbuttonaction[5]=!sgbuttonaction[5];
if (sgbuttonaction[5])
{
sgvalue = 1000;
sgamp = 1000;
sgfrq = 1000;
sgdigit = 4;
sglast_digit=4;
sgcurrent_digit=4;
sgunit = „Hz“;
sgsquare = true;
cycle=sgfrq*sweeptime;
if (tcp_sgservice!=null)
{
tcp_sgservice.SendCmd(„d0“);
stime = System.currentTimeMillis();
do
{
deltatime = System.currentTimeMillis() - stime;
} while (deltatime<STEPDELAY);
if (sgsquare)
{
if (tcp_sgservice!=null)
tcp_sgservice.SendCmd(„W3,H0“);
}
else
{
if (tcp_sgservice!=null)
tcp_sgservice.SendCmd(„W1,H0“);
}
stime = System.currentTimeMillis();
do
{
deltatime = System.currentTimeMillis() - stime;
} while (deltatime<STEPDELAY);
tcp_sgservice.SendCmd(„AMP „+String.valueOf(sgamp/1000.0f)+“ V“);
}
if (sgbuttonaction[5]&&sgconn[1]&&osciconn[2])
SgSupplement();
postId(SGON);
// Adding the initializing program for the signal generator
}
else
{
tcp_sgservice.SendCmd(„d1“);
postId(SGOFF);
}
ButtonAct(sg_buttonposi[0], sgbuttonTrans[5], sgbuttonaction[5], 0.008f);
break;
case 2202:
Search WWH ::




Custom Search