Package fr.esrf.TangoApi

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


                        scanPoint.setTime(time);
                        scanPointsList.add(scanPoint);
                    }

                    // Sensors
                    String[] sensorsNamesArrayTmp = scanServerProxy.read_attribute("sensors")
                            .extractStringArray();
                    // The sensorsNamesArrayTmp contains the data twice : once for reading and once
                    // for
                    // writing.
                    String[] sensorsNamesArray = new String[sensorsNamesArrayTmp.length / 2];
View Full Code Here


                    String[] sensorsNamesArray = new String[sensorsNamesArrayTmp.length / 2];
                    for (int sensorIndex = 0; sensorIndex < sensorsNamesArray.length; ++sensorIndex) {
                        sensorsNamesArray[sensorIndex] = sensorsNamesArrayTmp[sensorIndex];
                    }

                    String[] sensorsValueKeysArray = scanServerProxy.read_attribute(
                            "sensorsDataList").extractStringArray();

                    ISensor sensor;
                    String sensorValueKey;
                    String sensorName;
View Full Code Here

                            ++pointIndex;
                        }
                    }

                    // Actuators dimension X
                    String[] actuatorsXNamesArrayTmp = scanServerProxy.read_attribute("actuators")
                            .extractStringArray();
                    // The actuatorsXNamesArrayTmp contains the data twice : once for reading and
                    // once
                    // for writing.
                    String actuatorXName;
View Full Code Here

                    String[] actuatorsXNamesArray = new String[actuatorsXNamesArrayTmp.length / 2];
                    for (int actuatorXIndex = 0; actuatorXIndex < actuatorsXNamesArray.length; ++actuatorXIndex) {
                        actuatorsXNamesArray[actuatorXIndex] = actuatorsXNamesArrayTmp[actuatorXIndex];
                    }

                    String[] actuatorsXValueKeysArray = scanServerProxy.read_attribute(
                            "actuatorsDataList").extractStringArray();
                    IActuator actuatorX;
                    String actuatorXValueKey;
                    double[] actuatorXValuesArray;
                    for (int actuatorXIndex = 0; actuatorXIndex < actuatorsXNamesArray.length
View Full Code Here

            if (isScanResultReady()) {

                int pointIndex;
                try {
                    // Type
                    DeviceAttribute scanTypeAttribute = scanServerProxy.read_attribute("scanType");
                    int scanType = scanTypeAttribute.extractLong();
                    if (scanType != 1 && scanType != 0) {
                        return null;
                    }
View Full Code Here

                    scanResult.setScanServer(scanServerName);

                    scanResult.setResultType(IScanResult.ResultType.RESULT_1D);

                    // Name.
                    DeviceAttribute runNameAttribute = scanServerProxy.read_attribute("runName");
                    String runName = runNameAttribute.extractString();
                    scanResult.setRunName(runName);

                    // Time
                    double[] timesArray = scanServerProxy.read_attribute("sensorsTimeStamps")
View Full Code Here

                    DeviceAttribute runNameAttribute = scanServerProxy.read_attribute("runName");
                    String runName = runNameAttribute.extractString();
                    scanResult.setRunName(runName);

                    // Time
                    double[] timesArray = scanServerProxy.read_attribute("sensorsTimeStamps")
                            .extractDoubleArray();
                    List<IScanPoint> scanPointsList = new ArrayList<IScanPoint>(timesArray.length);
                    IScanPoint scanPoint;
                    for (double time : timesArray) {
                        scanPoint = new ScanPointImpl();
View Full Code Here

                        scanPoint.setTime(time);
                        scanPointsList.add(scanPoint);
                    }

                    // Sensors
                    String[] sensorsNamesArrayTmp = scanServerProxy.read_attribute("sensors")
                            .extractStringArray();
                    // The sensorsNamesArrayTmp contains the data twice : once for reading and once
                    // for
                    // writing.
                    String[] sensorsNamesArray = new String[sensorsNamesArrayTmp.length / 2];
View Full Code Here

                    String[] sensorsNamesArray = new String[sensorsNamesArrayTmp.length / 2];
                    for (int sensorIndex = 0; sensorIndex < sensorsNamesArray.length; ++sensorIndex) {
                        sensorsNamesArray[sensorIndex] = sensorsNamesArrayTmp[sensorIndex];
                    }

                    String[] sensorsValueKeysArray = scanServerProxy.read_attribute(
                            "sensorsDataList").extractStringArray();

                    ISensor sensor;
                    String sensorValueKey;
                    String sensorName;
View Full Code Here

                            ++pointIndex;
                        }
                    }

                    // Actuators dimension X
                    String[] actuatorsXNamesArrayTmp = scanServerProxy.read_attribute("actuators")
                            .extractStringArray();
                    // The actuatorsXNamesArrayTmp contains the data twice : once for reading and
                    // once
                    // for writing.
                    String actuatorXName;
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.