Examples of extractString()


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

            // 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

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

        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

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

                        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

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

                                    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

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

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

        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

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, CurrentScanDataModel.RUN_NAME)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(CurrentScanDataModel.RUN_NAME);
                    runName = attribute.extractString();

                    if (runName.equalsIgnoreCase("unamed")) {
                        runName = "SalsaConfiguration";
                    }
                }
View Full Code Here

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

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

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

                String argInProject = m_cbProject.getSelectedItem().toString();
                String argInPassword = new String(m_pfPassword.getPassword());
                data.insert(argInLogin + argInProject + argInPassword);
                // send a write command to the device
                DeviceData argout = proxy.command_inout("Login", data);
                strArgout = argout.extractString();
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(pathAuthServer, "Login",exception);
            }
        }
        return strArgout;
View Full Code Here

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

        if (proxy != null) {
            String executedCommand = "";
            try {
                executedCommand = GET_POST_RECORDING_CMD;
                DeviceData data = proxy.command_inout(executedCommand);
                postRecordingCommand = data.extractString();
                setPostRecordingValues();

                executedCommand = GET_DATA_MODEL_CMD;
                data = proxy.command_inout(GET_DATA_MODEL_CMD);
                datamodels = data.extractStringArray();
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.