Package fr.esrf.TangoApi

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


        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

                        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

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

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

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("dataPath");
                strBaseDataDir = deviceAttribute.extractString();
                if (strBaseDataDir == null) {
                    strBaseDataDir = "";
                }
            } catch (DevFailed exception) {
                exception.printStackTrace();
View Full Code Here

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

            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("externalName");
                strExtProjDir = deviceAttribute.extractString();
                if (strExtProjDir == null) {
                    strExtProjDir = "";
                }
            } catch (DevFailed exception) {
                exception.printStackTrace();
View Full Code Here

            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("inHouseName");
                strIntProjDir = deviceAttribute.extractString();
                if (strIntProjDir == null) {
                    strIntProjDir = "";
                }
            } catch (DevFailed exception) {
                exception.printStackTrace();
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.