Examples of DeviceData


Examples of fr.esrf.TangoApi.DeviceData

                        boolean bEndMethod = false;
                        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

Examples of fr.esrf.TangoApi.DeviceData

    private void fillExpression() {
        if (attributeName != null) {
            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

Examples of fr.esrf.TangoApi.DeviceData

        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);
        attributeKey = generateAttributeKey("lensMode");
        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();
            }
        }
        passModeCombo.setValueList((Object[]) passModeList);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        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);
                datamodels = data.extractStringArray();

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

Examples of fr.esrf.TangoApi.DeviceData

        if ((tabScripts != null) && (proxy != null)) {

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

Examples of fr.esrf.TangoApi.DeviceData

    private void manageRecorderConfigurationSaving(String value, String commandName) {
        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");
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

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

Examples of fr.esrf.TangoApi.DeviceData

    public void loadRecorderConfig(String configName) {
        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");
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

     */
    private String[] executeCommandInOutShort(short arg) {
        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");
            new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

                                "The field Project Code must be not empty");
                            } else {
                                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
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.