This commit is contained in:
alexgobbo
2025-09-12 16:16:15 +02:00
parent 68c510e707
commit ba17725e75
22 changed files with 53 additions and 38 deletions

View File

@@ -569,7 +569,7 @@ public class RobotPanel extends DevicePanel {
private void buttonEnableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonEnableActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".enable()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".enable()");
} catch (Exception ex){
this.showException(ex);
}
@@ -577,7 +577,7 @@ public class RobotPanel extends DevicePanel {
private void buttonDisableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonDisableActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".disable()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".disable()");
} catch (Exception ex){
this.showException(ex);
}
@@ -586,7 +586,7 @@ public class RobotPanel extends DevicePanel {
private void spinnerSpeedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerSpeedStateChanged
try{
if (!updating){
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".set_monitor_speed(" + spinnerSpeed.getValue() + ")");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".set_monitor_speed(" + spinnerSpeed.getValue() + ")");
}
} catch (Exception ex){
this.showException(ex);
@@ -595,7 +595,7 @@ public class RobotPanel extends DevicePanel {
private void butonStopActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butonStopActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".reset_motion()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".reset_motion()");
} catch (Exception ex){
this.showException(ex);
}
@@ -603,7 +603,7 @@ public class RobotPanel extends DevicePanel {
private void buttonPauseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonPauseActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".stop()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".stop()");
} catch (Exception ex){
this.showException(ex);
}
@@ -611,7 +611,7 @@ public class RobotPanel extends DevicePanel {
private void buttonResumeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonResumeActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".resume()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".resume()");
} catch (Exception ex){
this.showException(ex);
}
@@ -619,7 +619,7 @@ public class RobotPanel extends DevicePanel {
private void buttonAbortActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonAbortActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".stop_task()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".stop_task()");
//Context.getInstance().evalLineBackground(getDevice().getName() + ".task_kill('" + textTask.getText() + "')");
} catch (Exception ex){
this.showException(ex);
@@ -628,7 +628,7 @@ public class RobotPanel extends DevicePanel {
private void buttonCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCloseActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".close_tool()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".close_tool()");
} catch (Exception ex){
this.showException(ex);
}
@@ -636,7 +636,7 @@ public class RobotPanel extends DevicePanel {
private void buttonOpenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonOpenActionPerformed
try{
Context.getInterpreter().evalLineBackground(getDevice().getName() + ".open_tool()");
Context.getSequencer().evalLineBackground(getDevice().getName() + ".open_tool()");
} catch (Exception ex){
this.showException(ex);
}