Package fr.esrf.TangoApi

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) {
                                  TechnicalDataMessageManager.notifyExecuteCommandErrorDetected(m_strDsTechnicalPath, LOAD_CONFIG_CMD, exception);
                                }
                            }
View Full Code Here


        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) {
                  TechnicalDataMessageManager.notifyExecuteCommandErrorDetected(m_strDsTechnicalPath, SAVE_CONFIG_AS_CMD,strConfigName, exception, true);
                }
            }
View Full Code Here

        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) {
                  TechnicalDataMessageManager.notifyExecuteCommandErrorDetected(m_strDsTechnicalPath, SAVE_CONFIG_AS_CMD,strConfigName, exception, true);
                }
            }
View Full Code Here

                "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) {
                  TechnicalDataMessageManager.notifyExecuteCommandErrorDetected(m_strDsTechnicalPath, SAVE_CONFIG_AS_CMD,strConfigName,exception, true);
                }
            }

            // 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) {
                  TechnicalDataMessageManager.notifyExecuteCommandErrorDetected(strCurrentConfig, DELETE_CONFIG_CMD,strCurrentConfig, exception, true);
                }
            }
View Full Code Here

            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) {
                      TechnicalDataMessageManager.notifyExecuteCommandErrorDetected(m_strDsTechnicalPath, DELETE_CONFIG_CMD,strSelectedConfig,exception,true);
                    }
                }
View Full Code Here

                public void actionPerformed(ActionEvent arg0) {
                    boolean bEndMethod = false;
                    DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
                    if (proxy != null) {
                        try {
                            DeviceData argin = new DeviceData();
                            argin.insert(getTabLdapArgin());
                            proxy.command_inout("SetLdapParameters", argin);
                            bEndMethod = true;
                        } catch (DevFailed exception) {
                          AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath, "SetLdapParameters",exception);
                        }
View Full Code Here

        // Command for post recording
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {

                DeviceData data = proxy.command_inout(POST_RECORDING_CMD);
                postRecordingCommand = data.extractString();
                setPostRecordingValues();

                data = proxy.command_inout(DATA_MODEL_CMD);
                datamodels = data.extractStringArray();

                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
            }
            catch (DevFailed exception) {
View Full Code Here

        if (tabScripts != null && proxy != null) {

            for (String script : tabScripts) {
                String[] tabParameters = null;
                try {
                    DeviceData parameter = new DeviceData();
                    parameter.insert(getScriptName(script));
                    DeviceData data = proxy.command_inout(SCRIPTS_INFO_ATTR, parameter);
                    tabParameters = data.extractStringArray();
                }
                catch (DevFailed exception) {
                    exception.printStackTrace();
                }
View Full Code Here

     */
    private String[] executeCommandInOutShort(short arg) {
        String[] result = null;
        try {
            DeviceProxy proxy = new DeviceProxy(getModel());
            DeviceData argin = new DeviceData();
            argin.insert(arg);
            DeviceData cmdResult = proxy.command_inout("GetPathSymbols", argin);
            result = cmdResult.extractStringArray();
        }
        catch (Exception e) {
            e.printStackTrace();
            System.out.println(Except.str_exception(e));
        }
View Full Code Here

        @Override
        public void run() {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDeviceRecorder);
            if (proxy != null) {
                try {
                    DeviceData argin = new DeviceData();
                    argin.insert(m_strDevice);
                    DeviceData argout = proxy.command_inout("IsTangoDeviceRecordable", argin);
                    m_iRecordable = argout.extractShort();
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
        }
View Full Code Here

TOP

Related Classes of fr.esrf.TangoApi.DeviceData

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.