Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceData.extractStringArray()


                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");
                    errorMessage.append(DevFailedUtils.toString(exception) + "/n");
View Full Code Here


        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");
                new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

        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");
            new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

        {
            try
            {
                DeviceProxy tmpDeviceProxy = new DeviceProxy(deviceName);
                DeviceData deviceData = tmpDeviceProxy.command_inout(valuesCommandName);
                String [] lensModeList = deviceData.extractStringArray();
                setValueList(lensModeList);
            }
            catch (DevFailed e)
            {
            }
View Full Code Here

                    false);
            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) {
                            TechnicalDataMessageManager.notifyNewMessageDetected("\t" + attribute, false);
                            attributesList.add(attribute);
                        }
View Full Code Here

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

                data = proxy.command_inout(DATA_MODEL_CMD);
                datamodels = data.extractStringArray();

                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
            }
            catch (DevFailed exception) {
View Full Code Here

                String[] tabParameters = null;
                try {
                    DeviceData parameter = new DeviceData();
                    parameter.insert(getScriptName(script));
                    DeviceData data = proxy.command_inout(SCRIPTS_INFO_ATTR, parameter);
                    tabParameters = data.extractStringArray();
                }
                catch (DevFailed exception) {
                    exception.printStackTrace();
                }
View Full Code Here

        try {
            DeviceProxy proxy = new DeviceProxy(getModel());
            DeviceData argin = new DeviceData();
            argin.insert(arg);
            DeviceData cmdResult = proxy.command_inout("GetPathSymbols", argin);
            result = cmdResult.extractStringArray();
        }
        catch (Exception e) {
            e.printStackTrace();
            System.out.println(Except.str_exception(e));
        }
View Full Code Here

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

                data = proxy.command_inout(DATA_MODEL_CMD);
                datamodels = data.extractStringArray();

                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
            }
            catch (DevFailed exception) {
View Full Code Here

                String[] tabParameters = null;
                try {
                    DeviceData parameter = new DeviceData();
                    parameter.insert(getScriptName(script));
                    DeviceData data = proxy.command_inout(SCRIPTS_INFO_ATTR, parameter);
                    tabParameters = data.extractStringArray();
                }
                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.