Package fr.soleil.tango.clientapi

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


                // If it is a spectrum we search the YActuator element
                value = getValueAtIndex(scanServerDeviceName, attributeName, y);
            } 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


        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) {
                    e.printStackTrace();
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 it is a spectrum we search the YActuator element
                value = getValueAtIndex(scanServerDeviceName, attributeName, y);
            } 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

        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) {
                    e.printStackTrace();
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

            }
            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

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.