Package fr.esrf.TangoApi

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

                // get informations about this script : source
View Full Code Here


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

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

     */
    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 (Exception e) {
            e.printStackTrace();
            System.out.println(Except.str_exception(e));
        }
        return result;
View Full Code Here

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

    {
        //save all values
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
        if (proxy != null) {
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfExtProjDir.getText());
                proxy.command_inout("setExternalName", argin);
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath, "setExternalName",exception);
            }
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfIntProjDir.getText());
                proxy.command_inout("setInHouseName", argin);
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath, "setInHouseName",exception);
            }
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfBaseDataDir.getText());
                proxy.command_inout("SetBeamlinesDataPath", argin);
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyExecuteCommandErrorDetected(m_strAuthPath, "SetBeamlinesDataPath",exception);
            }
        }
View Full Code Here

        // Command for post recording
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {

                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

        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(SCRIPTS_INFO_ATTR, parameter);
                    tabParameters = data.extractStringArray();
                }
                catch (DevFailed exception) {
                    exception.printStackTrace();
                }
View Full Code Here

     */
    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("GetPathSymbols", argin);
            result = cmdResult.extractStringArray();
        }
        catch (Exception e) {
            e.printStackTrace();
            System.out.println(Except.str_exception(e));
        }
View Full Code Here

TOP

Related Classes of fr.esrf.TangoApi.DeviceData

Copyright © 2018 www.massapicom. 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.