Package fr.esrf.TangoApi

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


            for (String script : tabScripts) {
                String[] tabParameters = null;
                try {
                    DeviceData parameter = new DeviceData();
                    parameter.insert(getScriptName(script));
                    DeviceData data = proxy.command_inout(GET_SCRIPTS_INFO_CMD, parameter);
                    tabParameters = data.extractStringArray();
                } catch (DevFailed exception) {
                    StringBuilder errorMessage = new StringBuilder();
                    errorMessage.append("Error when executing command " + getModel() + "/" + GET_SCRIPTS_INFO_CMD
                            + "/n");
View Full Code Here


        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceData argin = new DeviceData();
                argin.insert(value);
                proxy.command_inout(commandName, argin);
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + commandName + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
                JXErrorPane.showDialog(new Exception(errorMessage.toString()));
View Full Code Here

    public String[] getRecorderConfigList() {
        String[] result = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout(GET_CONFIG_LIST_CMD);
                result = deviceData.extractStringArray();
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + GET_CONFIG_LIST_CMD + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceData argin = new DeviceData();
                argin.insert(configName);
                proxy.command_inout(LOAD_CONFIG_CMD, argin);
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + LOAD_CONFIG_CMD + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
                new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

    public void ackError() {
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                proxy.command_inout(ERROR_ACK_CMD);
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + ERROR_ACK_CMD + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
                JXErrorPane.showDialog(new Exception(errorMessage.toString()));
View Full Code Here

        String[] result = null;
        try {
            DeviceProxy proxy = new DeviceProxy(getModel());
            DeviceData argin = new DeviceData();
            argin.insert(arg);
            DeviceData cmdResult = proxy.command_inout(GET_PATH_SYMBOLS_CMD, argin);
            result = cmdResult.extractStringArray();
        } catch (DevFailed devFailed) {
            StringBuilder errorMessage = new StringBuilder();
            errorMessage.append("Error when executing command " + getModel() + "/" + GET_PATH_SYMBOLS_CMD + "/n");
            errorMessage.append(DevFailedUtils.toString(devFailed) + "/n");
View Full Code Here

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

        if ((archivingDevicePath != null) && !OLD_FASHION_MONITORED_ATTRIBUTES) {
            System.out.println("MONITORED - go for new fashion monitored attributes");
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(archivingDevicePath);
            if (deviceProxy != null) {
                try {
                    DeviceData argout = deviceProxy.command_inout("GetCurrentArchivedAtt");
                    String[] archivedAttributesList = argout.extractStringArray();
                    if (archivedAttributesList != null) {
                        for (String attribute : archivedAttributesList) {
                            System.out.println("\t" + attribute);
                            attributesList.add(attribute);
View Full Code Here

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

            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) {
                    exception.printStackTrace();
                }
            }
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.