Package fr.esrf.TangoApi

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


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

            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

                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

          } else {
            spectrumPanel.setXDateFormat(false);
          }

          final DeviceAttribute deviceAttribute = proxy.read_attribute(SENSOR_DATALIST);
          final String[] newDataList = deviceAttribute.extractStringArray();
          if (newDataList.length != sensorDataNameList.length) {
            sensorDataNameList = newDataList;
            final String[] sensorsList = new String[sensorDataNameList.length];
            final String[] actuatorsList = new String[sensorDataNameList.length];
            for (int i = 0; i < sensorDataNameList.length; i++) {
View Full Code Here

        .getDeviceProxy(scanServerDeviceName);
    if (proxy != null) {
      try {
        final DeviceAttribute deviceAttribute = proxy
            .read_attribute(ACTUATOR_DATALIST);
        final String[] newDataList = deviceAttribute
            .extractStringArray();
        if (newDataList == null || newDataList.length == 0) {
          return true;
        }
      } catch (final DevFailed e) {
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(strAttribute);
                stringArray = deviceAttribute.extractStringArray();
            } catch (DevFailed exception) {
              TechnicalDataMessageManager.notifyReadAttributeErrorDetected(m_strPathTechnicalData, strAttribute,exception);
            }
        }
        if (stringArray != null) {
View Full Code Here

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

                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
            }
            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.