Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceProxy.command_inout()


        DeviceProxy scanServerProxy = null;
        String scanServerName = context.getScanServerName();
        try {
            scanServerProxy = ScanServerManager.getScanServerProxy(scanServerName);
            if (scanServerProxy != null) {
                scanServerProxy.command_inout("Resume");
            }
        }
        catch (DevFailed e) {
            scanServerManager.invalidateScanServerProxy(scanServerName);
            throw new SalsaDeviceException("Error : cannot resume the scan : " + e.getMessage(), e);
View Full Code Here


     * @throws SalsaDeviceException
     */
    public void clearHistoric(String scanServerName) throws SalsaDeviceException {
        try {
            DeviceProxy scanServerProxy = ScanServerManager.getScanServerProxy(scanServerName);
            scanServerProxy.command_inout("ClearHistoric");
        }
        catch (DevFailed e) {
            scanServerManager.invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
            throw new SalsaDeviceException("Error : cannot read the historic : " + e.getMessage(),
View Full Code Here

                }
            }

            // TODO remove syso
            // System.out.println("ExecuteAction()=" + behaviour.getType());
            scanServerProxy.command_inout("ExecuteAction");

        }
        catch (DevFailed e) {
            scanServerManager.invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
View Full Code Here

                    }

                    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();
                            }
                        }
                    }
View Full Code Here

                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

        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();
View Full Code Here

              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

              AuthServerMessageManager.notifyNewMessageDetected("Path authServer is empty");
            } else {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(pathAuthServer);
                if (proxy != null) {
                    try {
                        proxy.command_inout("UpdateProjectsList");
                    } catch (DevFailed exception) {
                      AuthServerMessageManager.notifyExecuteCommandErrorDetected(pathAuthServer, "UpdateProjectsList",exception);
                    }
                }
                initializeCbProjects();
View Full Code Here

    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);
            }
        }
View Full Code Here

                    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);
                        }
                    }
                    getParentDialog().dispose();
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.