Package fr.esrf.TangoApi

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


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

                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

        // Attribute that stock the recorded files
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(RECORDED_FILES_ATTR);
                recordedFiles = deviceAttribute.extractStringArray();
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + RECORDED_FILES_ATTR + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
                new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(model);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute("currentFiles");
                    if (deviceAttribute != null) {
                        String[] resultList = deviceAttribute.extractStringArray();
                        if (resultList != null) {
                            for (String file : resultList) {
                                if (!result.contains(file)) {
                                    result.add(file);
                                }
View Full Code Here

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(model);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute("currentFiles");
                    if (deviceAttribute != null) {
                        String[] resultList = deviceAttribute.extractStringArray();
                        if (resultList != null) {
                            for (String file : resultList) {
                                if (!result.contains(file)) {
                                    result.add(file);
                                }
View Full Code Here

            // XActuatorList
            String[] actuatorList = null;
            try {
                deviceAttribute = proxy.read_attribute(ACTUATORS_DATA_LIST);
                if (deviceAttribute != null) {
                    actuatorList = deviceAttribute.extractStringArray();
                }
            }
            catch (final DevFailed e) {
            }
View Full Code Here

            // YActuatorList
            actuatorList = null;
            try {
                deviceAttribute = proxy.read_attribute(YACTUATORS_DATA_LIST);
                if (deviceAttribute != null) {
                    actuatorList = deviceAttribute.extractStringArray();
                }
            }
            catch (final DevFailed e) {
            }
            if (actuatorList != null) {
View Full Code Here

            // Y1 SensorList or sensor 2D
            String[] sensorDataList = null;
            try {
                deviceAttribute = proxy.read_attribute(CurrentScanDataModel.SENSORS_DATA_LIST);
                if (deviceAttribute != null) {
                    sensorDataList = deviceAttribute.extractStringArray();
                }
            }
            catch (final DevFailed e) {
            }
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, actuatorsName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerDeviceName, false);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(actuatorsName);
                    String[] allattributeList = attribute.extractStringArray();
                    attributeList = Arrays.copyOf(allattributeList, attribute.getNbRead());
                } catch (Exception e) {
                    // TODO: handle exception
                }
            }
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.