Package fr.esrf.TangoApi

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


        // 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) {
                exception.printStackTrace();
            }
        }
View Full Code Here


        if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, actuatorsName)) {
            DeviceProxy proxy = getDeviceProxy(scanServerDeviceName);
            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

        if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, actuatorsName)) {
            DeviceProxy proxy = getDeviceProxy(scanServerDeviceName);
            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

        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());
                    LOGGER.trace(scanServerDeviceName + "/" + actuatorsName + "=" + Arrays.toString(attributeList));
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read " + scanServerDeviceName + "/" + actuatorsName + " "
                            + DevFailedUtils.toString(e));
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);
            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

            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

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.