Examples of DeviceData


Examples of fr.esrf.TangoApi.DeviceData

        if ((archivingDevicePath != null) && !OLD_FASHION_MONITORED_ATTRIBUTES) {
            System.out.println("MONITORED - go for new fashion monitored attributes");
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(archivingDevicePath);
            if (deviceProxy != null) {
                try {
                    DeviceData argout = deviceProxy.command_inout("GetCurrentArchivedAtt");
                    String[] archivedAttributesList = argout.extractStringArray();
                    if (archivedAttributesList != null) {
                        for (String attribute : archivedAttributesList) {
                            System.out.println("\t" + attribute);
                            attributesList.add(attribute);
                        }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

                            // on value's changement -> load selected config
                            // load configuration
                            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDsTechnicalPath);
                            if (proxy != null) {
                                try {
                                    DeviceData argin = new DeviceData();
                                    argin.insert(selectedValue);
                                    proxy.command_inout(LOAD_CONFIG_CMD, argin);
                                } catch (DevFailed exception) {
                                    exception.printStackTrace();
                                }
                            }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        if(strConfigName != null)
        {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDsTechnicalPath);
            if (proxy != null) {
                try {
                    DeviceData argin = new DeviceData();
                    argin.insert(strConfigName);
                    proxy.command_inout(SAVE_CONFIG_AS_CMD, argin);
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        if(strConfigName != null)
        {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDsTechnicalPath);
            if (proxy != null) {
                try {
                    DeviceData argin = new DeviceData();
                    argin.insert(strConfigName);
                    proxy.command_inout(SAVE_CONFIG_AS_CMD, argin);
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

                "Set configuration name:", "Configuration name");
        if (strConfigName != null) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDsTechnicalPath);
            if (proxy != null) {
                try {
                    DeviceData argin = new DeviceData();
                    argin.insert(strConfigName);
                    proxy.command_inout(SAVE_CONFIG_AS_CMD, argin);
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }

            // update attributes
            m_recordingDevicesTableController.saveAttributes();
            m_monitoredAttributesTableController.saveAttributesList();

            m_pnl.enableButtonsClose(false);

            // delete previous config
            if (proxy != null) {
                try {
                    DeviceData argin = new DeviceData();
                    argin.insert(strCurrentConfig);
                    proxy.command_inout(DELETE_CONFIG_CMD, argin);
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

            if(iConfirmResult == JOptionPane.OK_OPTION)
            {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDsTechnicalPath);
                if (proxy != null) {
                    try {
                        DeviceData argin = new DeviceData();
                        argin.insert(strSelectedConfig);
                        proxy.command_inout(DELETE_CONFIG_CMD, argin);
                    } catch (DevFailed exception) {
                        exception.printStackTrace();
                    }
                }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

                    if (dataRecorderDeviceName != null && !dataRecorderDeviceName.isEmpty()) {
                        DeviceProxy dataRecorderProxy = TangoDeviceHelper
                                .getDeviceProxy(dataRecorderDeviceName);
                        if (TangoCommandHelper.isCommandExist(dataRecorderDeviceName,
                                "GetConfigList")) {
                            DeviceData deviceData = dataRecorderProxy
                                    .command_inout("GetConfigList");
                            if (deviceData != null) {
                                configList = deviceData.extractStringArray();
                            }
                        }
                    }
                }
                catch (DevFailed e) {
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        public void cleanCurrentConfiguration(List<Sample> samples) throws DevFailed{
            for (Iterator<Sample> it = samples.iterator(); it.hasNext();) {
                Sample sample = it.next();
                String name = sample.getSampleName();
                DeviceData dd = new DeviceData();
                dd.insert(name);
                proxy.command_inout("RemovePositionFromList",dd);
            }
        }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

      // ////////////////////////////////////////////////////////////////

      // init the 2 test device and change the state and status of device
      // 2
      initDevice();
      final DeviceData dd = new DeviceData();
      dd.insert(10);
      m_deviceProxy2.command_inout("switchState", dd);

      // create the bean and test is correctly display the sate, status
      // and tootlip device 1
      widgetAfterStart = new DeviceStateStatusPanel.Builder(m_deviceName).jframe(jfAfterStart).build();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    // ////////////////////////////////////////////////////////////////

    // init the 2 test device and change the state and status of device
    // 2
    initDevice();
    final DeviceData dd = new DeviceData();
    dd.insert(10);
    m_deviceProxy2.command_inout("switchState", dd);

    // create the bean and test is correctly display the sate, status
    // and tootlip device 1
    widgetAfterStart = new DeviceStateStatusPanel.Builder(m_deviceName)
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.