Examples of write_attribute()


Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("double_spectrum");
                double[] value1 = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
                deviceAttribute.insert(value1);
                proxy.write_attribute(deviceAttribute);

                deviceAttribute = proxy.read_attribute("float_spectrum");
                float[] value2 = new float[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
                deviceAttribute.insert(value2);
                proxy.write_attribute(deviceAttribute);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                proxy.write_attribute(deviceAttribute);

                deviceAttribute = proxy.read_attribute("float_spectrum");
                float[] value2 = new float[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
                deviceAttribute.insert(value2);
                proxy.write_attribute(deviceAttribute);

                deviceAttribute = proxy.read_attribute("long_spectrum");
                int[] value3 = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
                deviceAttribute.insert(value3);
                proxy.write_attribute(deviceAttribute);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                proxy.write_attribute(deviceAttribute);

                deviceAttribute = proxy.read_attribute("long_spectrum");
                int[] value3 = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
                deviceAttribute.insert(value3);
                proxy.write_attribute(deviceAttribute);

                deviceAttribute = proxy.read_attribute("double_image");
                double[] value4 = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
                deviceAttribute.insert(value4, 10, 2);
                proxy.write_attribute(deviceAttribute);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                proxy.write_attribute(deviceAttribute);

                deviceAttribute = proxy.read_attribute("double_image");
                double[] value4 = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
                deviceAttribute.insert(value4, 10, 2);
                proxy.write_attribute(deviceAttribute);

            } catch (DevFailed e) {
                e.printStackTrace();
            }
        }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                                enabledActuatorsNumber);
                    }
                    else {
                        trajectoriesAttribute.insert(new double[] {}, 0, 1);
                    }
                    scanServerProxy.write_attribute(trajectoriesAttribute);

                    // Speed.
                    speedArray = toDoubleArray(speedList);
                    setAttribute("scanSpeed", speedArray);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                            int errorStrategyRetryCount = esi.getRetryCount();
                            double errorStrategyRetryTimeOut = esi.getTimeBetweenRetries();
                            int errorStrategyType = esi.getStrategy().ordinal();

                            // Time out.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat + "TimeOut",
                                    errorStrategyTimeOut));
                            // Retry count.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat + "RetryCount",
                                    errorStrategyRetryCount));
                            // Retry time out.
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                            // Time out.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat + "TimeOut",
                                    errorStrategyTimeOut));
                            // Retry count.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat + "RetryCount",
                                    errorStrategyRetryCount));
                            // Retry time out.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat
                                    + "RetryTimeOut", errorStrategyRetryTimeOut));
                            // Error strategy.
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                                    errorStrategyTimeOut));
                            // Retry count.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat + "RetryCount",
                                    errorStrategyRetryCount));
                            // Retry time out.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat
                                    + "RetryTimeOut", errorStrategyRetryTimeOut));
                            // Error strategy.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat
                                    + "ErrorStrategy", errorStrategyType));
                        }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                                    errorStrategyRetryCount));
                            // Retry time out.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat
                                    + "RetryTimeOut", errorStrategyRetryTimeOut));
                            // Error strategy.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat
                                    + "ErrorStrategy", errorStrategyType));
                        }
                        // Context validation error strategy.
                        scanServerProxy.write_attribute(new DeviceAttribute(
                                "contextValidationErrorStrategy", errorStrat
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.write_attribute()

                            // Error strategy.
                            scanServerProxy.write_attribute(new DeviceAttribute(cat
                                    + "ErrorStrategy", errorStrategyType));
                        }
                        // Context validation error strategy.
                        scanServerProxy.write_attribute(new DeviceAttribute(
                                "contextValidationErrorStrategy", errorStrat
                                        .getContextValidationStrategy().ordinal()));

                        scanServerProxy.write_attribute(new DeviceAttribute("contextValidation",
                                errorStrat.getContextValidationDevice()));
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.