Examples of readArray()


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.TYPE);
            ready = data01Array != null && data01Array.length != 0;
        }
        catch (DevFailed e) {
            ready = false;
        }
View Full Code Here

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

                        sensor.setEnabled(true);
                        scanResult.getSensorsList().add(sensor);

                        sensorValueKey = sensorsValueKeysArray[sensorIndex];
                        attribute = new TangoAttribute(scanServerName + "/" + sensorValueKey);
                        sensorValuesArray = (double[]) attribute.readArray(Double.TYPE);
                        sensor.setScanServerAttributeName(scanServerProxy.get_name() + "/"
                                + sensorValueKey);

                        pointIndex = 0;
                        for (double sensorValue : sensorValuesArray) {
View Full Code Here

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

                        scanResult.getActuatorsXList().add(actuatorX);

                        actuatorXValueKey = actuatorsXValueKeysArray[actuatorXIndex];

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

                        pointIndex = 0;
                        for (double actuatorXValue : actuatorXValuesArray) {
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.TYPE);
            ready = data01Array != null && data01Array.length != 0;
        }
        catch (DevFailed e) {
            ready = false;
        }
View Full Code Here

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

                        sensor.setEnabled(true);
                        scanResult.getSensorsList().add(sensor);

                        sensorValueKey = sensorsValueKeysArray[sensorIndex];
                        attribute = new TangoAttribute(scanServerName + "/" + sensorValueKey);
                        sensorValuesArray = (double[]) attribute.readArray(Double.TYPE);
                        sensor.setScanServerAttributeName(scanServerProxy.get_name() + "/"
                                + sensorValueKey);

                        pointIndex = 0;
                        for (double sensorValue : sensorValuesArray) {
View Full Code Here

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

                        scanResult.getActuatorsXList().add(actuatorX);

                        actuatorXValueKey = actuatorsXValueKeysArray[actuatorXIndex];

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

                        pointIndex = 0;
                        for (double actuatorXValue : actuatorXValuesArray) {
View Full Code Here

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

                        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)) {
                        scanPointsMatrix[row][column].setTime(time);
View Full Code Here

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

                    sensor.setEnabled(true);
                    scanResult.getSensorsList().add(sensor);

                    sensorValueKey = sensorsValueKeysArray[sensorIndex];
                    sensorValueAttribute = new TangoAttribute(scanServerName + "/" + sensorValueKey);
                    sensorValuesArray = (double[]) sensorValueAttribute.readArray(Double.TYPE);
                    sensor.setScanServerAttributeName(scanServerName + "/" + sensorValueKey);

                    row = 0;
                    column = 0;
                    for (double sensorValue : sensorValuesArray) {
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.