Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.AttributeProxy


    setSynchronous(false);
  }

  public void start() {
    // Read attribute
    AttributeProxy proxy;
    try {
      proxy = new AttributeProxy(this.getParamText(ATTRIBUTE_NAME));
      DeviceAttribute attr = proxy.read();
     
      System.out.println("\n\n\n"+attr.getNbRead()+"\n\n\n");
      for (int i = 0; i < attr.getNbRead(); i++) {
       
      }
View Full Code Here


        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

     * @param device
     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeProxy getAttributeProxy(IDevice device) throws SalsaDeviceException {
        AttributeProxy attributeProxy = null;
        if (device != null) {
            String name = device.getName();
            if ((name != null) && !name.isEmpty()) {
                try {
                    attributeProxy = TangoAttributeHelper.getAttributeProxy(name);
View Full Code Here

     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeInfo getAttributeInfo(IDevice device) throws SalsaDeviceException {
        AttributeInfo attributeInfo = null;
        AttributeProxy attributeProxy = getAttributeProxy(device);
        if (attributeProxy != null) {
            try {
                attributeInfo = attributeProxy.get_info();
            } catch (Exception e) {
                SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                        "Cannot read attribute info for attribute " + device.getName(), e);
                throw salsaDeviceException;
            }
View Full Code Here

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

            public void run() {
                if ((actuatorName != null) && !actuatorName.isEmpty()) {
                    String newActuatorName = actuatorName;
                    try {
                        newActuatorName = TangoUtil.getfullAttributeNameForAttribute(actuatorName);
                        AttributeProxy proxy = new AttributeProxy(newActuatorName);
                        LOGGER.trace("{} full attribute name -> {}", actuatorName, newActuatorName);
                        if (proxy != null) {
                            final String format = proxy.get_info().format;
                            LOGGER.trace(newActuatorName + " format -> " + format);
                            if ((format != null) && !format.isEmpty()) {
                                SwingUtilities.invokeLater(new Runnable() {
                                    @Override
                                    public void run() {
View Full Code Here

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

    setSynchronous(false);
  }

  public void start() {
    // Read attribute
    AttributeProxy proxy;
    try {
      proxy = new AttributeProxy(this.getParamText(ATTRIBUTE_NAME));
      DeviceAttribute attr = proxy.read();
      String stype = this.getParamText(TYPE);
      String format = this.getParamText(FORMAT);
      int type = -1;
      if (format.equalsIgnoreCase("SCALAR") && stype != null
          && !stype.equals("")) {
View Full Code Here

  }

  public void start() {

    // Read attribute
    AttributeProxy proxy;
    try {
      proxy = new AttributeProxy(this.getParamText(ATTRIBUTE_NAME));
      DeviceAttribute attr = proxy.read();
      sendMultiple("", 0);send("read", AttributeHelper.extractToStringArray(attr));
    } catch (DevFailed e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of fr.esrf.TangoApi.AttributeProxy

Copyright © 2018 www.massapicom. 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.