Package fr.esrf.TangoApi

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


        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


        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);
View Full Code Here

        String[] passModeList = { "pass1", "pass2", "pass3" };
        if (tmpDeviceProxy != null) {
            try {
                DeviceData dd = tmpDeviceProxy.command_inout("GetpassModeList");
                passModeList = dd.extractStringArray();
            }
            catch (DevFailed e) {
                e.printStackTrace();
            }
        }
View Full Code Here

  String[] result = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModelForListConfig());
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout("GetConfigList");
                result = deviceData.extractStringArray();
            }
            catch (DevFailed exception) {
                exception.printStackTrace();
            }
        }
View Full Code Here

        String[] tabProjects = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(pathAuthServer);
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout("getCurrentProjects");
                tabProjects = deviceData.extractStringArray();
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
        }
        if (null != tabProjects) {
View Full Code Here

                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

        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);
View Full Code Here

        String[] passModeList = { "pass1", "pass2", "pass3" };
        if (tmpDeviceProxy != null) {
            try {
                DeviceData dd = tmpDeviceProxy.command_inout("GetpassModeList");
                passModeList = dd.extractStringArray();
            }
            catch (DevFailed e) {
                e.printStackTrace();
            }
        }
View Full Code Here

            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) {
                result = null;
            }
        }
View Full Code Here

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

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

                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.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.