Examples of readArray()


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

                    actuatorXValueKey = actuatorsXValueKeysArray[actuatorXIndex];

                    actuatorXValueAttribute = new TangoAttribute(scanServerName + "/"
                            + actuatorXValueKey);
                    actuatorXValuesArray = (double[]) actuatorXValueAttribute
                            .readArray(Double.TYPE);
                    actuatorX.setScanServerAttributeName(scanServerName + "/" + actuatorXValueKey);

                    row = 0;
                    column = 0;
View Full Code Here

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

                    actuatorYValueKey = actuatorsYValueKeysArray[actuatorYIndex];

                    actuatorYValueAttribute = new TangoAttribute(scanServerName + "/"
                            + actuatorYValueKey);
                    actuatorYValuesArray = (double[]) actuatorYValueAttribute
                            .readArray(Double.TYPE);
                    actuatorY.setScanServerAttributeName(scanServerName + "/" + actuatorYValueKey);

                    row = 0;
                    for (double actuatorYValue : actuatorYValuesArray) {
View Full Code Here

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

                    report.setReadImageData(null);
                    report.setWriteImageData(null);
                    break;
                case AttrDataFormat._SPECTRUM:
                    report.setDimensionType(DimensionType.SPECTRUM);
                    rawData = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int spectrumLength = attribute.getDeviceAttribute().getDimX();
                    Double[] readSpectrumData = null;
                    Double[] writeSpectrumData = null;

                    if (readable) {
View Full Code Here

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

                    report.setReadImageData(null);
                    report.setWriteImageData(null);
                    break;
                case AttrDataFormat._IMAGE:
                    report.setDimensionType(DimensionType.IMAGE);
                    rawData = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int xDim = attribute.getDeviceAttribute().getDimX();
                    int yDim = attribute.getDeviceAttribute().getDimY();
                    Double[][] readImageData;
                    Double[][] writeImageData;
                    Double[] writtenImage = tangoAttribute.readSpecOrImage(Double.class);
View Full Code Here

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

    public boolean isScanResultReady() throws SalsaDeviceException {
        boolean ready;
        try {
            TangoAttribute attribute = new TangoAttribute(scanServerName + "/data_01");
            // If there is no data_01 attribute, the next line will throw a DevFailed exception.
            double[] data01Array = (double[]) attribute.readArray(double.class);
            ready = data01Array != null && data01Array.length != 0;
        }
        catch (DevFailed e) {
            ready = false;
        }
View Full Code Here

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

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

        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

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

    public boolean isScanResultReady() throws SalsaDeviceException {
        boolean ready;
        try {
            TangoAttribute attribute = new TangoAttribute(scanServerName + "/data_01");
            // If there is no data_01 attribute, the next line will throw a DevFailed exception.
            double[] data01Array = (double[]) attribute.readArray(double.class);
            ready = data01Array != null && data01Array.length != 0;
        }
        catch (DevFailed e) {
            ready = false;
        }
View Full Code Here

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

                    report.setReadImageData(null);
                    report.setWriteImageData(null);
                    break;
                case AttrDataFormat._SPECTRUM:
                    report.setDimensionType(DimensionType.SPECTRUM);
                    rawData = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int spectrumLength = attribute.getDeviceAttribute().getDimX();
                    Double[] readSpectrumData = null;
                    Double[] writeSpectrumData = null;

                    if (readable) {
View Full Code Here

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

                    report.setReadImageData(null);
                    report.setWriteImageData(null);
                    break;
                case AttrDataFormat._IMAGE:
                    report.setDimensionType(DimensionType.IMAGE);
                    rawData = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int xDim = attribute.getDeviceAttribute().getDimX();
                    int yDim = attribute.getDeviceAttribute().getDimY();
                    Double[][] readImageData;
                    Double[][] writeImageData;
                    Double[] writtenImage = tangoAttribute.readSpecOrImage(Double.class);
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.