Java Reference
In-Depth Information
{
panel.Connection.setForeground(Color.blue);
panel.Connection.setText(„Ready ....“);
}
}
// Frames Elapsed event //
if (wakeup instanceof WakeupOnElapsedFrames)
{
if (oscibuttonaction[0])
{
long endtime = System.currentTimeMillis();
if (endtime-starttime>400) //prevent the system from keeping freshing curve
{
if (counter<COUNTER) counter++;
postId(OSCION);
starttime = endtime;
}
}
wakeupOn(alleventsCriterion);
}
} // the end of the loop while
} // the end of the function processStimulus()
h.33 functIon for trIGGer poInt of oscIlloscope
private int TriggerPoint(float data[], float compdata)
{
int tempint1 = 199;
int tempint2 = 1;
for (int i=100; i<199; i++)
{
if (compdata>=data[i]&&compdata<=data[i+1])
{
tempint1=i;
break;
}
if (compdata<=data[i]&&compdata>=data[i+1])
{
tempint1=i;
break;
}
}
for (int i=100; i<199; i++)
{
if (compdata>=data[200-i]&&compdata<=data[199-i])
{
tempint2=200-i;
break;
}
Search WWH ::




Custom Search