Closedown
This commit is contained in:
@@ -21,43 +21,14 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class TestingList extends Panel {
|
||||
MotorPanel motorPanel;
|
||||
LinePlotBase plot ;
|
||||
LinePlotSeries series;
|
||||
Motor motor;
|
||||
|
||||
Task task = new Task() {
|
||||
@Override
|
||||
protected Object execute() throws Exception {
|
||||
series.clear();
|
||||
for (int i=0;i<1000;i++){
|
||||
double pos = motor.read();
|
||||
Thread.sleep(2);
|
||||
plot.getAxis(Plot.AxisId.X).setRange(0, 1000);
|
||||
series.appendData(i, pos);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected JPanel create() {
|
||||
getApp().addTask(task);
|
||||
return new NetbeansPluginPanel();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onInitialize(int runCount){
|
||||
motor = (Motor) TestingList.this.getDevice("motor");
|
||||
motorPanel.setDevice(motor);
|
||||
}
|
||||
|
||||
public class NetbeansPluginPanel extends MonitoredPanel {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user