Examples of extractArray()


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

            try {

                TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                        + attributeName);
                DeviceAttribute deviceAttribute = tangoAttribute.getDeviceAttribute();
                double[] values = (double[]) tangoAttribute.extractArray(double.class);

                int width = deviceAttribute.getDimX();
                int height = deviceAttribute.getDimY();

                double[] doubleValues = Arrays.copyOf(values, width * height);
 
View Full Code Here

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

                if (format == TangoConstHelper.SCALAR_TYPE) {
                    return tangoAttribute.extract(double.class);
                }
                else if (format == TangoConstHelper.IMAGE_TYPE
                        || format == TangoConstHelper.ARRAY_TYPE) {
                    double[] values = (double[]) tangoAttribute.extractArray(double.class);
                    if (values != null && index < values.length) {
                        return values[index];
                    }
                }
            }
View Full Code Here

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

            try {

                TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                        + attributeName);
                DeviceAttribute deviceAttribute = tangoAttribute.getDeviceAttribute();
                double[] values = (double[]) tangoAttribute.extractArray(double.class);

                int width = deviceAttribute.getDimX();
                int height = deviceAttribute.getDimY();

                double[] doubleValues = Arrays.copyOf(values, width * height);
 
View Full Code Here

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

                if (format == TangoConstHelper.SCALAR_TYPE) {
                    return tangoAttribute.extract(double.class);
                }
                else if (format == TangoConstHelper.IMAGE_TYPE
                        || format == TangoConstHelper.ARRAY_TYPE) {
                    double[] values = (double[]) tangoAttribute.extractArray(double.class);
                    if (values != null && index < values.length) {
                        return values[index];
                    }
                }
            }
View Full Code Here

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

            try {

                TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                        + attributeName);
                DeviceAttribute deviceAttribute = tangoAttribute.getDeviceAttribute();
                double[] values = (double[]) tangoAttribute.extractArray(double.class);

                int width = deviceAttribute.getDimX();
                int height = deviceAttribute.getDimY();

                double[] doubleValues = Arrays.copyOf(values, width * height);
 
View Full Code Here

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

                if (format == TangoConstHelper.SCALAR_TYPE) {
                    return tangoAttribute.extract(double.class);
                }
                else if (format == TangoConstHelper.IMAGE_TYPE
                        || format == TangoConstHelper.ARRAY_TYPE) {
                    double[] values = (double[]) tangoAttribute.extractArray(double.class);
                    if (values != null && index < values.length) {
                        return values[index];
                    }
                }
            }
View Full Code Here

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

            try {

                TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                        + attributeName);
                DeviceAttribute deviceAttribute = tangoAttribute.getDeviceAttribute();
                double[] values = (double[]) tangoAttribute.extractArray(double.class);

                int width = deviceAttribute.getDimX();
                int height = deviceAttribute.getDimY();

                double[] doubleValues = Arrays.copyOf(values, width * height);
 
View Full Code Here

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

                if (format == TangoConstHelper.SCALAR_TYPE) {
                    return tangoAttribute.extract(double.class);
                }
                else if (format == TangoConstHelper.IMAGE_TYPE
                        || format == TangoConstHelper.ARRAY_TYPE) {
                    double[] values = (double[]) tangoAttribute.extractArray(double.class);
                    if (values != null && index < values.length) {
                        return values[index];
                    }
                }
            }
View Full Code Here

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

        if (scanServerDeviceName != null && !scanServerDeviceName.isEmpty() && actuatorName != null
                && !actuatorName.isEmpty()) {
            try {
                TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                        + actuatorName);
                double[] values = (double[]) tangoAttribute.extractArray(double.class);
                if (values != null && index < values.length) {
                    return values[index];
                }
            }
            catch (final DevFailed e) {
View Full Code Here

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

            try {

                TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/"
                        + actuatorName);
                DeviceAttribute deviceAttribute = getDeviceProxy().read_attribute(actuatorName);
                double[] values = (double[]) tangoAttribute.extractArray(double.class);

                int width = deviceAttribute.getDimX();
                int height = deviceAttribute.getDimY();

                double[] doubleValues = Arrays.copyOf(values, width * height);
 
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.