Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceProxy.read_attribute()


                if (actuator != null) {
                    // We need the actuator position.
                    String actuatorName = actuator.getName();
                    if (actuatorName != null && !actuatorName.trim().equals("")) {
                        String[] actuatorsNamesArray = scanServerProxy.read_attribute("actuators")
                                .extractStringArray();
                        int actuatorPosition;
                        for (actuatorPosition = 0; actuatorPosition < actuatorsNamesArray.length; ++actuatorPosition) {
                            if (actuatorName.equals(actuatorsNamesArray[actuatorPosition])) {
                                break;
View Full Code Here


            if (sensor != null) {
                // We need the sensor position.
                String sensorName = sensor.getName();
                if (sensorName != null && !sensorName.trim().equals("")) {
                    String[] sensorsNamesArray = scanServerProxy.read_attribute("sensors")
                            .extractStringArray();
                    int sensorPosition;
                    for (sensorPosition = 0; sensorPosition < sensorsNamesArray.length; ++sensorPosition) {
                        if (sensorName.equals(sensorsNamesArray[sensorPosition])) {
                            break;
View Full Code Here

            if (actuator != null) {
                // We need the actuator position.
                String actuatorName = actuator.getName();
                if (actuatorName != null && !actuatorName.trim().equals("")) {
                    String[] actuatorsNamesArray = scanServerProxy.read_attribute("actuators")
                            .extractStringArray();
                    int actuatorPosition;
                    for (actuatorPosition = 0; actuatorPosition < actuatorsNamesArray.length; ++actuatorPosition) {
                        if (actuatorName.equals(actuatorsNamesArray[actuatorPosition])) {
                            break;
View Full Code Here

        if (scanServerProxy != null) {
            if (isScanResultReady()) {
                try {
                    // Type
                    actionName = "read_attribute(\"" + CurrentScanDataModel.SCAN_TYPE + "\")";
                    DeviceAttribute scanTypeAttribute = scanServerProxy
                            .read_attribute(CurrentScanDataModel.SCAN_TYPE);
                    int scanType = scanTypeAttribute.extractLong();
                    // 0 -> time scan
                    // 1 -> scan 1d
                    // 2 -> scan 2d
View Full Code Here

                String scanserver = context.getScanServerName();
                if (config == null && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                    DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                    if (deviceProxy != null) {
                        try {
                            DeviceAttribute attribute = deviceProxy.read_attribute("runName");
                            logScan = attribute.extractString();
                        }
                        catch (DevFailed e) {
                        }
                    }
View Full Code Here

            if (sensor != null) {
                // We need the sensor position.
                String sensorName = sensor.getName();
                if (sensorName != null && !sensorName.trim().equals("")) {
                    String[] sensorsNamesArray = scanServerProxy.read_attribute("sensors")
                            .extractStringArray();
                    int sensorPosition;
                    for (sensorPosition = 0; sensorPosition < sensorsNamesArray.length; ++sensorPosition) {
                        if (sensorName.equals(sensorsNamesArray[sensorPosition])) {
                            break;
View Full Code Here

            if (actuator != null) {
                // We need the actuator position.
                String actuatorName = actuator.getName();
                if (actuatorName != null && !actuatorName.trim().equals("")) {
                    String[] actuatorsNamesArray = scanServerProxy.read_attribute("actuators")
                            .extractStringArray();
                    int actuatorPosition;
                    for (actuatorPosition = 0; actuatorPosition < actuatorsNamesArray.length; ++actuatorPosition) {
                        if (actuatorName.equals(actuatorsNamesArray[actuatorPosition])) {
                            break;
View Full Code Here

                String scanserver = context.getScanServerName();
                if (config == null && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                    DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                    if (deviceProxy != null) {
                        try {
                            DeviceAttribute attribute = deviceProxy.read_attribute("runName");
                            logScan = attribute.extractString();
                        }
                        catch (DevFailed e) {
                        }
                    }
View Full Code Here

            String authServerDeviceName = null;
            // read the auth server attribute from DataRecorder device
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(deviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(AUTH_SERVER_DEVICE_ATTR);
                    authServerDeviceName = deviceAttribute.extractString();
                } catch (DevFailed exception) {
                  AuthServerMessageManager.notifyReadAttributeErrorDetected(deviceName, AUTH_SERVER_DEVICE_ATTR,exception);
                }
            }
View Full Code Here

        String[] stringArray = null;
        //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();
            }
        }
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.