Examples of DeviceData


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) {
                    LOGGER.error("Cannot execute command {}/GetConfigList {}", dataRecorderDeviceName,
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    public AddSample(DeviceProxy proxy) {
        super(proxy);
    }

    public void addSample(Sample sample) throws DevFailed {
        argin = new DeviceData();
        DevVarDoubleStringArray config = sample.getFormattedConfiguration();
        if (config != null) {
            argin.insert(config);
            proxy.command_inout("AddPosition", argin);
        }
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

                    }

                    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) {
                    LOGGER.error("Cannot execute command {}/GetConfigList {}", dataRecorderDeviceName,
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) {
                    System.out.println(DevFailedUtils.toString(e));
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    {
        //save all values
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
        if (proxy != null) {
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfDirAccessRights.getText());
                proxy.command_inout("SetDirAccessRights", argin);
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath, "SetDirAccessRights", exception);
            }
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfFileAccessRights.getText());
                proxy.command_inout("SetFileAccessRights", argin);
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath,"SetFileAccessRights",exception);
            }
        }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    public void initializeCbProjects() {
        String[] tabProjects = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(pathAuthServer);
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout("getCurrentProjects");
                tabProjects = deviceData.extractStringArray();
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(pathAuthServer, "getCurrentProjects",exception);
            }
        }
        if (null != tabProjects) {
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

                    String strInput = strLogin + "/" + strPassword + "@" + strProject;
                    // call tango comand to generate a key
                    DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(pathAuthServer);
                    if (proxy != null) {
                        try {
                            DeviceData argin = new DeviceData();
                            argin.insert(strInput);
                            proxy.command_inout("GenerateKey", argin);
                        } catch (DevFailed exception) {
                          AuthServerMessageManager.notifyExecuteCommandErrorDetected(pathAuthServer, "GenerateKey",exception);
                        }
                    }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        String strArgout = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(pathAuthServer);
        if (proxy != null) {
            try {
                // execute methode Login
                DeviceData data = new DeviceData();
                // argIn ( Login + Project + Password)
                String argInLogin = m_tfLogin.getText();
                String argInProject = m_cbProject.getSelectedItem().toString();
                String argInPassword = new String(m_pfPassword.getPassword());
                data.insert(argInLogin + argInProject + argInPassword);
                // send a write command to the device
                DeviceData argout = proxy.command_inout("Login", data);
                strArgout = argout.extractString();
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(pathAuthServer, "Login",exception);
            }
        }
        return strArgout;
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

                    String strPassword = new String(m_pfPassword.getPassword());
                    boolean bLogged = false;
                    DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
                    if (proxy != null) {
                        try {
                            DeviceData argin = new DeviceData();
                            argin.insert(strPassword);
                            proxy.command_inout("Logon", argin);
                            bLogged = true;
                        } catch (DevFailed exception) {
                          AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath, "Logon",exception);
                        }
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.