Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceAttribute.extractString()


                scanResult = new ScanResult2DImpl();
                scanResult.setResultType(IScanResult.ResultType.RESULT_2D);
               
                // Name.
                DeviceAttribute runNameAttribute = scanServerProxy.read_attribute("runName");
                String runName = runNameAttribute.extractString();
                scanResult.setRunName(runName);
               
                // Building empty matrix.
                DeviceAttribute sensorsTimeStampsAttribute = scanServerProxy.read_attribute("sensorsTimeStamps");
                columnsNumber = sensorsTimeStampsAttribute.getDimX();
View Full Code Here


                scanResult = new ScanResult1DImpl();
                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")
                        .extractDoubleArray();
View Full Code Here

                        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                        if (deviceProxy != null) {
                            try {
                                DeviceAttribute attribute = deviceProxy
                                .read_attribute(CurrentScanDataModel.RUN_NAME);
                                logScan = attribute.extractString();
                            }
                            catch (DevFailed e) {
                            }
                        }
                    }
View Full Code Here

                        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                        if (deviceProxy != null) {
                            try {
                                DeviceAttribute attribute = deviceProxy
                                .read_attribute(CurrentScanDataModel.RUN_START_DATE);
                                String runStartDate = attribute.extractString();
                                // System.out.println("runStartDate=" + runStartDate);
                                if ((runStartDate != null) && !runStartDate.isEmpty()) {
                                    int index = runStartDate.indexOf(" ");
                                    if (index > -1) {
                                        logHour = runStartDate.substring(index + 1);
View Full Code Here

                    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")
                            .extractDoubleArray();
View Full Code Here

                    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")
                            .extractDoubleArray();
View Full Code Here

                scanResult = new ScanResult2DImpl();
                scanResult.setResultType(IScanResult.ResultType.RESULT_2D);

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

                // Building empty matrix.
                DeviceAttribute sensorsTimeStampsAttribute = scanServerProxy
                        .read_attribute("sensorsTimeStamps");
View Full Code Here

                scanResult = new ScanResult1DImpl();
                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").extractDoubleArray();
                List<IScanPoint> scanPointsList = new ArrayList<IScanPoint>(timesArray.length);
View Full Code Here

                if (config == null && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                    DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                    if (deviceProxy != null) {
                        try {
                            DeviceAttribute attribute = deviceProxy.read_attribute("runName");
                            logScan = attribute.extractString();
                        }
                        catch (DevFailed e) {
                        }
                    }
                }
View Full Code Here

                if (config == null && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                    DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                    if (deviceProxy != null) {
                        try {
                            DeviceAttribute attribute = deviceProxy.read_attribute("runName");
                            logScan = attribute.extractString();
                        }
                        catch (DevFailed e) {
                        }
                    }
                }
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.