Package fr.esrf.TangoApi

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


    public String[] getRecorderConfigList(){
        String[] result = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(modelForListConfig);
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout(DataRecorderModel.GET_CONFIG_LIST_CMD);
                result = deviceData.extractStringArray();
            }
            catch (DevFailed exception) {
                DataRecorderMessageManager.notifyExecuteCommandErrorDetected(modelForListConfig, DataRecorderModel.GET_CONFIG_LIST_CMD, exception);
            }
View Full Code Here


        if (result == JOptionPane.OK_OPTION) {
            if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (proxy != null) {
                    try {
                        proxy.command_inout(CurrentScanDataModel.EXECUTE_ACTION);
                    }
                    catch (DevFailed e) {
                        String message = DevFailedUtils.toString(e);
                        JOptionPane.showMessageDialog(this, message);
                    }
View Full Code Here

        if (result == JOptionPane.OK_OPTION) {
            if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (proxy != null) {
                    try {
                        proxy.command_inout(CurrentScanDataModel.EXECUTE_ACTION);
                    }
                    catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(model);
        if (proxy != null && scriptName != null && !scriptName.equalsIgnoreCase("do nothing")) {
            try {
                DeviceData devDataIn = new DeviceData();
                devDataIn.insert(scriptName);
                DeviceData devDataOut = proxy.command_inout(DataRecorderModel.GET_SCRIPTS_INFO_CMD, devDataIn);
                if (devDataOut != null) {
                    result = devDataOut.extractStringArray();
                }
            } catch (DevFailed e) {
                DataRecorderMessageManager.notifyExecuteCommandErrorDetected(model, DataRecorderModel.GET_SCRIPTS_INFO_CMD, e);
View Full Code Here

        if (result == JOptionPane.OK_OPTION) {
            if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (proxy != null) {
                    try {
                        proxy.command_inout(CurrentScanDataModel.EXECUTE_ACTION);
                    }
                    catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

            DeviceData result;

            try {
                DeviceProxy proxy = getDeviceProxy(deviceName);

                result = proxy.command_inout(commandName);
            } catch (DevFailed e) {
                throw new SourceDeviceException(DevFailedUtils.toString(e));
            }
            String[] sourceArray = result.extractStringArray();
            sourceList = Arrays.asList(sourceArray);
View Full Code Here

        if (result == JOptionPane.OK_OPTION) {
            if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
                DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (proxy != null) {
                    try {
                        proxy.command_inout(CurrentScanDataModel.EXECUTE_ACTION);
                    }
                    catch (DevFailed e) {
                        String message = DevFailedUtils.toString(e);
                        JOptionPane.showMessageDialog(this, message);
                    }
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();
                errorMessage.append("Error when executing command " + getModel() + "/" + executedCommand + "/n");
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

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.