Examples of extractStringArray()


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

        //get the attribute which contains all devices names for list 1 ( pre )
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strPathTechnicalData);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(strAttribute);
                stringArray = deviceAttribute.extractStringArray();
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
        }
        if (stringArray != null) {
View Full Code Here

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

        //get the attribute which contains all devices names for list 1 ( pre )
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strPathTechnicalData);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(ARCHIVED_ATTRIBUTES_ATTR);
                stringArray = deviceAttribute.extractStringArray();
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
        }
        if (stringArray != null) {
View Full Code Here

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

                data = proxy.command_inout(GET_DATA_MODEL_CMD);
                datamodels = data.extractStringArray();

                executedCommand = SCRIPTS_ATTR;
                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing or reading " + getModel() + "/" + executedCommand + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
                new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

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

                    if ((dataRecorderDeviceName != null) && !dataRecorderDeviceName.isEmpty()) {
                        DeviceProxy dataRecorderProxy = TangoDeviceHelper.getDeviceProxy(dataRecorderDeviceName);
                        if (TangoCommandHelper.isCommandExist(dataRecorderDeviceName, "GetConfigList")) {
                            DeviceData deviceData = dataRecorderProxy.command_inout("GetConfigList");
                            if (deviceData != null) {
                                configList = deviceData.extractStringArray();
                            }
                        }
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot execute command {}/GetConfigList {}", dataRecorderDeviceName,
View Full Code Here

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

                        if (TangoCommandHelper.isCommandExist(dataRecorderDeviceName,
                                "GetConfigList")) {
                            DeviceData deviceData = dataRecorderProxy
                                    .command_inout("GetConfigList");
                            if (deviceData != null) {
                                configList = deviceData.extractStringArray();
                            }
                        }
                    }
                }
                catch (DevFailed e) {
View Full Code Here

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

                    if ((dataRecorderDeviceName != null) && !dataRecorderDeviceName.isEmpty()) {
                        DeviceProxy dataRecorderProxy = TangoDeviceHelper.getDeviceProxy(dataRecorderDeviceName);
                        if (TangoCommandHelper.isCommandExist(dataRecorderDeviceName, "GetConfigList")) {
                            DeviceData deviceData = dataRecorderProxy.command_inout("GetConfigList");
                            if (deviceData != null) {
                                configList = deviceData.extractStringArray();
                            }
                        }
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot execute command {}/GetConfigList {}", dataRecorderDeviceName,
View Full Code Here

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

                    if (dataRecorderDeviceName != null && !dataRecorderDeviceName.isEmpty()) {
                        DeviceProxy dataRecorderProxy = TangoDeviceHelper.getDeviceProxy(dataRecorderDeviceName);
                        if (TangoCommandHelper.isCommandExist(dataRecorderDeviceName, "GetConfigList")) {
                            DeviceData deviceData = dataRecorderProxy.command_inout("GetConfigList");
                            if (deviceData != null) {
                                configList = deviceData.extractStringArray();
                            }
                        }
                    }
                } catch (DevFailed e) {
                    System.out.println(DevFailedUtils.toString(e));
View Full Code Here

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

        String[] tabProjects = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(pathAuthServer);
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout("getCurrentProjects");
                tabProjects = deviceData.extractStringArray();
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(pathAuthServer, "getCurrentProjects",exception);
            }
        }
        if (null != tabProjects) {
View Full Code Here

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

                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(model);
                if (proxy != null) {
                    DeviceData deviceDataIn = new DeviceData();
                    deviceDataIn.insert(attributeName);
                    DeviceData deviceDataOut = proxy.command_inout("GetExpression", deviceDataIn);
                    String[] values = deviceDataOut.extractStringArray();
                    if (values != null) {
                        String expression = "";
                        for (String element : values) {
                            expression = expression + element + "\n";
                        }
View Full Code Here

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

        String[] lensModeList = { "lens1", "lens2", "lens3" };
        DeviceProxy tmpDeviceProxy = null;
        try {
            tmpDeviceProxy = new DeviceProxy(model);
            DeviceData dd = tmpDeviceProxy.command_inout("GetLensModeList");
            lensModeList = dd.extractStringArray();
        } catch (DevFailed e) {
            e.printStackTrace();
        }
        lensModeCombo.setValueList((Object[]) lensModeList);
        attributeKey = generateAttributeKey("lensMode");
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.