Package fr.soleil.tango.clientapi

Examples of fr.soleil.tango.clientapi.TangoAttribute.readArray()


                        for (column = 0; column < columnsNumber; ++column) {
                            scanPointsMatrix[row][column] = new ScanPointImpl();
                        }
                    }
                    // Times.
                    double[] timesArray = (double[]) sensorsTimeStampsAttribute
                            .readArray(Double.TYPE);
                    row = 0;
                    column = 0;
                    for (double time : timesArray) {
                        if ((row < rowsNumber) && (column < columnsNumber)) {
View Full Code Here


        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

            }
            else if (x >= 0 && y >= 0) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
View Full Code Here

            }
            else if (x >= 0 && y >= 0) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
View Full Code Here

        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (DevFailed e) {
View Full Code Here

                value = getValueAtIndex(scanServerDeviceName, attributeName, y);
            } else if ((x >= 0) && (y >= 0)) {
                double[] doubleValues = null;
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
                    doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if ((doubleValues != null) && (x < dimX) && (y < dimY)) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
View Full Code Here

        double value = Double.NaN;
        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if ((doubleValues != null) && (index < doubleValues.length)) {
                        value = doubleValues[index];
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read " + scanServerDeviceName + "/" + attributeName + " "
View Full Code Here

            }
            else if (x >= 0 && y >= 0) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
View Full Code Here

        if (index >= 0) {
            if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, attributeName)) {
                try {
                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    if (doubleValues != null && index < doubleValues.length) {
                        value = doubleValues[index];
                    }
                }
                catch (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.