Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceAttribute.extractString()


        } else if (type == 8) { // String
          send("read", attr.extractString());
        }

      } else {
        send("read", attr.extractString());
      }

      /*
       * if(type == 1) { //Boolean send("read",attr.extractBoolean());
       * }if(type == 2) { //Short send("read",attr.extractShort());
View Full Code Here


                if (config == null && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                    DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                    if (deviceProxy != null) {
                        try {
                            DeviceAttribute attribute = deviceProxy.read_attribute("runName");
                            logScan = attribute.extractString();
                        }
                        catch (DevFailed e) {
                        }
                    }
                }
View Full Code Here

                if (config == null && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                    DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                    if (deviceProxy != null) {
                        try {
                            DeviceAttribute attribute = deviceProxy.read_attribute("runName");
                            logScan = attribute.extractString();
                        }
                        catch (DevFailed e) {
                        }
                    }
                }
View Full Code Here

        String date = null;
        final DeviceProxy proxy = getDeviceProxy(aScanServerDeviceName);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(START_SCAN_DATE);
                date = deviceAttribute.extractString();
            }
            catch (final DevFailed e) {
                return null;
            }
        }
View Full Code Here

            // read the experimental frame attribute from DataRecorder device
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(deviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(EXPERIMENTAL_FRAME_DEVICE_ATTR);
                    experimentalFrameDeviceName = deviceAttribute.extractString();
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(aScanServerDeviceName, attributeName)) {
            final DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(aScanServerDeviceName, false);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(attributeName);
                    value = deviceAttribute.extractString();
                } catch (final DevFailed e) {
                }
            }
        }
        return value;
View Full Code Here

                        if (dataRecorded) {
                            String nexusFileName = null;
                            while ((nexusFileName == null) || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute(NEXUS_FILE);
                                if (attribute != null) {
                                    nexusFileName = attribute.extractString();
                                }
                            }
                            nexusFileNameMap.put(scanServerName.toLowerCase(), nexusFileName);
                            String dataRecorderDeviceName = DEFAULT_RECORDER;
                            Database database = TangoDeviceHelper.getDatabase();
View Full Code Here

                                    DeviceProxy dataRecorderProxy = TangoDeviceHelper
                                    .getDeviceProxy(dataRecorderDeviceName);
                                    if (dataRecorderProxy != null) {
                                        DeviceAttribute nxEntryAttribute = dataRecorderProxy.read_attribute(NX_ENTRY);
                                        if (nxEntryAttribute != null) {
                                            String nxEntryName = nxEntryAttribute.extractString();
                                            nexusFileEntryMap.put(scanServerName.toLowerCase(), nxEntryName);
                                        }
                                    }
                                }
                            }
View Full Code Here

        String date = null;
        final DeviceProxy proxy = getDeviceProxy(aScanServerDeviceName);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_START_DATE);
                date = deviceAttribute.extractString();
            }
            catch (final DevFailed e) {
                return null;
            }
        }
View Full Code Here

        String date = null;
        final DeviceProxy proxy = getDeviceProxy(scanServerDeviceName);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_NAME);
                date = deviceAttribute.extractString();
            }
            catch (final DevFailed e) {
                return null;
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.