Closedown

This commit is contained in:
boccioli_m
2015-10-27 11:56:11 +01:00
parent 402469acba
commit f5c37dca66
3 changed files with 6 additions and 3 deletions

View File

@@ -173,7 +173,8 @@ public class Kollimators extends javax.swing.JPanel {
* @param deviceName
*/
public void animate(String deviceName) {
try {
try {
this.jLabelDeviceName.setText(deviceName);
this.jTextDir.setToolTipText(deviceName+"?");
this.jTextDist.setToolTipText(deviceName+"?");
@@ -188,7 +189,9 @@ public class Kollimators extends javax.swing.JPanel {
Context ctxt= jca.createContext(JCALibrary.JNI_SINGLE_THREADED);
// Create the Channel to connect to the PV.
Channel ch= (Channel) ctxt.createChannel(deviceName+":IST1:1");
System.out.println("channel created");
this.jTextIst1.setText(String.valueOf(ch.getValue()));
System.out.println("value got");
} catch (CAException ex) {
System.out.println(ex.toString());
} catch (InterruptedException ex) {