Examples of extractDoubleArray()


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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, INTEGRATION_TIMES)) {
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
            if (deviceProxy != null) {
                try {
                    DeviceAttribute deviceAttribute = deviceProxy.read_attribute(INTEGRATION_TIMES);
                    double[] values = deviceAttribute.extractDoubleArray();
                    if ((values != null) && (values.length > 0)) {
                        integrationTime = Double.valueOf(values[0] * 1000).intValue();
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read {}/{} {}", scanServerName, INTEGRATION_TIMES, DevFailedUtils.toString(e));
View Full Code Here

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, INTEGRATION_TIMES)) {
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
            if (deviceProxy != null) {
                try {
                    DeviceAttribute deviceAttribute = deviceProxy.read_attribute(INTEGRATION_TIMES);
                    double[] values = deviceAttribute.extractDoubleArray();
                    if ((values != null) && (values.length > 0)) {
                        integrationTime = Double.valueOf(values[0] * 1000).intValue();
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read {}/{} {}", scanServerName, INTEGRATION_TIMES, DevFailedUtils.toString(e));
View Full Code Here

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, INTEGRATION_TIMES)) {
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
            if (deviceProxy != null) {
                try {
                    DeviceAttribute deviceAttribute = deviceProxy.read_attribute(INTEGRATION_TIMES);
                    double[] values = deviceAttribute.extractDoubleArray();
                    if ((values != null) && (values.length > 0)) {
                        integrationTime = Double.valueOf(values[0] * 1000).intValue();
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read {}/{} {}", scanServerName, INTEGRATION_TIMES, DevFailedUtils.toString(e));
View Full Code Here

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, INTEGRATION_TIMES)) {
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (deviceProxy != null) {
                try {
                    DeviceAttribute deviceAttribute = deviceProxy.read_attribute(INTEGRATION_TIMES);
                    double[] values = deviceAttribute.extractDoubleArray();
                    // System.out.println(Arrays.toString(values));
                    if (values != null && values.length > 0) {
                        integrationTime = Double.valueOf(values[0] * 1000).intValue();
                    }
                }
View Full Code Here

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, INTEGRATION_TIMES)) {
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (deviceProxy != null) {
                try {
                    DeviceAttribute deviceAttribute = deviceProxy.read_attribute(INTEGRATION_TIMES);
                    double[] values = deviceAttribute.extractDoubleArray();
                    // System.out.println(Arrays.toString(values));
                    if (values != null && values.length > 0) {
                        integrationTime = Double.valueOf(values[0] * 1000).intValue();
                    }
                }
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.