Package fr.esrf.TangoApi

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


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


                    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

                        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
                        if (proxy != null) {
                            try {
                                DeviceData argin = new DeviceData();
                                argin.insert(strPassword);
                                proxy.command_inout("ChangePassword", argin);
                                bEndMethod = true;
                            } catch (DevFailed exception) {
                              AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath,"ChangePassword", exception);
                            }
                        }
View Full Code Here

            try {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(model);
                if (proxy != null) {
                    DeviceData deviceDataIn = new DeviceData();
                    deviceDataIn.insert(attributeName);
                    DeviceData deviceDataOut = proxy.command_inout("GetExpression", deviceDataIn);
                    String[] values = deviceDataOut.extractStringArray();
                    if (values != null) {
                        String expression = "";
                        for (String element : values) {
                            expression = expression + element + "\n";
View Full Code Here

        String[] lensModeList = { "lens1", "lens2", "lens3" };
        DeviceProxy tmpDeviceProxy = null;
        try {
            tmpDeviceProxy = new DeviceProxy(model);
            DeviceData dd = tmpDeviceProxy.command_inout("GetLensModeList");
            lensModeList = dd.extractStringArray();
        } catch (DevFailed e) {
            e.printStackTrace();
        }
        lensModeCombo.setValueList((Object[]) lensModeList);
View Full Code Here

        setWidgetModel(lensModeCombo, stringBox, attributeKey);

        String[] passModeList = { "pass1", "pass2", "pass3" };
        if (tmpDeviceProxy != null) {
            try {
                DeviceData dd = tmpDeviceProxy.command_inout("GetpassModeList");
                passModeList = dd.extractStringArray();
            } catch (DevFailed e) {
                e.printStackTrace();
            }
        }
View Full Code Here

        if (proxy != null) {
            String executedCommand = "";
            try {
                if (getState() instanceof RunningState) {
                    executedCommand = END_RECORDING_CMD;
                    proxy.command_inout(executedCommand);
                } else {
                    executedCommand = START_RECORDING_CMD;
                    int result = JOptionPane.showConfirmDialog(null, "Do you really want to start recording session ?",
                            "Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
                    if (result == JOptionPane.YES_OPTION) {
View Full Code Here

                } else {
                    executedCommand = START_RECORDING_CMD;
                    int result = JOptionPane.showConfirmDialog(null, "Do you really want to start recording session ?",
                            "Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
                    if (result == JOptionPane.YES_OPTION) {
                        proxy.command_inout(executedCommand);
                    }
                }
            }
            catch (DevFailed devFailed) {
                StringBuilder errorMessage = new StringBuilder();
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            String executedCommand = "";
            try {
                executedCommand = GET_POST_RECORDING_CMD;
                DeviceData data = proxy.command_inout(executedCommand);
                postRecordingCommand = data.extractString();
                setPostRecordingValues();

                executedCommand = GET_DATA_MODEL_CMD;
                data = proxy.command_inout(GET_DATA_MODEL_CMD);
View Full Code Here

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

                executedCommand = GET_DATA_MODEL_CMD;
                data = proxy.command_inout(GET_DATA_MODEL_CMD);
                datamodels = data.extractStringArray();

                executedCommand = SCRIPTS_ATTR;
                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
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.