Package fr.esrf.TangoApi

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


      int type = -1;
      if (format.equalsIgnoreCase("SCALAR") && stype != null
          && !stype.equals("")) {
        type = toType(stype);
        if (type == 1) { // Boolean
          send("read", attr.extractBoolean());
        } else if (type >= 2 && type <= 7) { // Number
          send("read", attr.extractDouble());
        } else if (type == 8) { // String
          send("read", attr.extractString());
        }
View Full Code Here


                // //storage/recorder/datarecorder.1/
                DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
                if (scanProxy != null) {
                    try {
                        DeviceAttribute attribute = scanProxy.read_attribute(DATA_RECORDED);
                        boolean dataRecorded = attribute.extractBoolean();
                        if (dataRecorded) {
                            String nexusFileName = null;
                            while ((nexusFileName == null) || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute(NEXUS_FILE);
                                if (attribute != null) {
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, attributeName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(attributeName);
                    result = attribute.extractBoolean();
                }
                catch (DevFailed e) {
                }
            }
        }
View Full Code Here

                // //storage/recorder/datarecorder.1/
                DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName, false);
                if (scanProxy != null) {
                    try {
                        DeviceAttribute attribute = scanProxy.read_attribute(DATA_RECORDED);
                        boolean dataRecorded = attribute.extractBoolean();
                        if (dataRecorded) {
                            String nexusFileName = null;
                            while ((nexusFileName == null) || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute(NEXUS_FILE);
                                if (attribute != null) {
View Full Code Here

                // Read the property of DataRecorder = //storage/recorder/datarecorder.1/
                DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanProxy != null) {
                    try {
                        DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                        boolean dataRecorded = attribute.extractBoolean();
                        if (dataRecorded) {
                            String nexusFileName = null;
                            while (nexusFileName == null || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute("generatedNexusFileName");
                                if (attribute != null) {
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, attributeName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(attributeName);
                    result = attribute.extractBoolean();
                }
                catch (DevFailed e) {
                }
            }
        }
View Full Code Here

                // //storage/recorder/datarecorder.1/
                DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanProxy != null) {
                    try {
                        DeviceAttribute attribute = scanProxy.read_attribute(DATA_RECORDED);
                        boolean dataRecorded = attribute.extractBoolean();
                        if (dataRecorded) {
                            String nexusFileName = null;
                            while ((nexusFileName == null) || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute(NEXUS_FILE);
                                if (attribute != null) {
View Full Code Here

                // //storage/recorder/datarecorder.1/
                DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanProxy != null) {
                    try {
                        DeviceAttribute attribute = scanProxy.read_attribute(DATA_RECORDED);
                        boolean dataRecorded = attribute.extractBoolean();
                        if (dataRecorded) {
                            String nexusFileName = null;
                            while (nexusFileName == null || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute(NEXUS_FILE);
                                if (attribute != null) {
View Full Code Here

            // Read the property of DataRecorder = //storage/recorder/datarecorder.1/
            DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (scanProxy != null) {
                try {
                    DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                    if (attribute.extractBoolean()) {
                        String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                        Database database = TangoDeviceHelper.getDatabase();
                        if (database != null) {
                            DbDatum dbDatum = database.get_device_property(scanServerName,
                                    "DataRecorder");
View Full Code Here

            // Read the property of DataRecorder = //storage/recorder/datarecorder.1/
            DeviceProxy scanProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (scanProxy != null) {
                try {
                    DeviceAttribute attribute = scanProxy.read_attribute("dataRecorded");
                    if (attribute.extractBoolean()) {
                        String dataRecorderDeviceName = "storage/recorder/datarecorder.1";
                        Database database = TangoDeviceHelper.getDatabase();
                        if (database != null) {
                            DbDatum dbDatum = database.get_device_property(scanServerName,
                                    "DataRecorder");
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.