Examples of extractDoubleArray()


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

    final DeviceAttribute attr = m_deviceProxy
        .read_attribute("double_spectrum_rw");

    // Warning : contains read and write part
    final double[] doubleValues = attr.extractDoubleArray();

    assertThat(doubleValues.length - attr.getWrittenDimX()).isEqualTo(
        stringValues.length);

    for (int i = 0; i < stringValues.length; i++) {
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();
                    // System.out.println(Arrays.toString(values));
                    if ((values != null) && (values.length > 0)) {
                        integrationTime = Double.valueOf(values[0] * 1000).intValue();
                    }
                } catch (DevFailed e) {
View Full Code Here

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

            int nbActuator = actuators.length;
            String trajectoriesName = CurrentScanDataModel.TRAJECTORIES + indexStr;
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                DeviceAttribute attribute = proxy.read_attribute(trajectoriesName);
                double[] allValues = attribute.extractDoubleArray();
                if (allValues != null && allValues.length > 0) {
                    double[] flatValues = Arrays.copyOf(allValues, attribute.getNbRead());
                    int nbPoints = flatValues.length / nbActuator;
                    double[] line = null;
                    Trajectory trajectory = null;
View Full Code Here

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, trajectoriesName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(trajectoriesName);
                    double[] allValues = attribute.extractDoubleArray();
                    if (allValues != null && allValues.length > 0) {
                        flatValues = Arrays.copyOf(allValues, attribute.getNbRead());
                    }
                }
                catch (Exception e) {
View Full Code Here

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

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy
                            .read_attribute(CurrentScanDataModel.INTEGRATION_TIMES);
                    double[] allValues = attribute.extractDoubleArray();
                    if (allValues != null && allValues.length > 0) {
                        integrationTime = allValues[0];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

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

        // Initialiser le device et le composant
        initFirstDevice();

        DeviceAttribute da = m_deviceProxy.read_attribute(xAttributeName);
        final double[] xData = da.extractDoubleArray();

        da = m_deviceProxy.read_attribute(yAttributeName);
        final double[] yData = da.extractDoubleArray();

        final MultiAttributeDualSpectrumChart widget = new MultiAttributeDualSpectrumChart.Builder(
View Full Code Here

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

        DeviceAttribute da = m_deviceProxy.read_attribute(xAttributeName);
        final double[] xData = da.extractDoubleArray();

        da = m_deviceProxy.read_attribute(yAttributeName);
        final double[] yData = da.extractDoubleArray();

        final MultiAttributeDualSpectrumChart widget = new MultiAttributeDualSpectrumChart.Builder(
                xAttributeNameList, yAttributeNameList).jframe(jf1).build();

        Sleeper.SECONDS.sleep(2);
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, 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 + " "
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.