Package fr.esrf.TangoApi

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


            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


            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

            // delete previous config
            if (proxy != null) {
                try {
                    DeviceData argin = new DeviceData();
                    argin.insert(strCurrentConfig);
                    proxy.command_inout(DELETE_CONFIG_CMD, argin);
                } catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
        }
View Full Code Here

                    if (dataRecorderDeviceName != null && !dataRecorderDeviceName.isEmpty()) {
                        DeviceProxy dataRecorderProxy = TangoDeviceHelper
                                .getDeviceProxy(dataRecorderDeviceName);
                        if (TangoCommandHelper.isCommandExist(dataRecorderDeviceName,
                                "GetConfigList")) {
                            DeviceData deviceData = dataRecorderProxy
                                    .command_inout("GetConfigList");
                            if (deviceData != null) {
                                configList = deviceData.extractStringArray();
                            }
                        }
View Full Code Here

        String scanServerName = context.getScanServerName();
        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            try {
                DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanServerProxy != null) {
                    scanServerProxy.command_inout("Abort");
                }
            }
            catch (DevFailed e) {
                throw new SalsaDeviceException("Error : cannot stop the scan : "
                        + DevFailedUtils.toString(e), e);
View Full Code Here

        String scanServerName = context.getScanServerName();
        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            try {
                DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanServerProxy != null) {
                    scanServerProxy.command_inout("Pause");
                    // System.out.println(scanServerName + "Pause");
                }
            }
            catch (DevFailed e) {
                throw new SalsaDeviceException("Error : cannot pause the scan : "
View Full Code Here

        String scanServerName = context.getScanServerName();
        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            try {
                DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                if (scanServerProxy != null) {
                    scanServerProxy.command_inout("Resume");
                }
            }
            catch (DevFailed e) {
                throw new SalsaDeviceException("Error : cannot resume the scan : "
                        + DevFailedUtils.toString(e), e);
View Full Code Here

     */
    public void clearHistoric(String scanServerName) throws SalsaDeviceException {
        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            try {
                DeviceProxy scanServerProxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
                scanServerProxy.command_inout("ClearHistoric");
            }
            catch (DevFailed e) {
                throw new SalsaDeviceException("Cannot clear historic : "
                        + DevFailedUtils.toString(e), e);
            }
View Full Code Here

                    }
                }

                // TODO remove syso
                // System.out.println("ExecuteAction()=" + behaviour.getType());
                scanServerProxy.command_inout("ExecuteAction");

            }
            catch (DevFailed e) {
                e.printStackTrace();
                throw new SalsaDeviceException("Error : cannot perform scan function : "
View Full Code Here

            DeviceData result;

            try {
                DeviceProxy proxy = getDeviceProxy(deviceName);

                result = proxy.command_inout(commandName);
            } catch (DevFailed e) {
                throw new SourceDeviceException(DevFailedUtils.toString(e));
            }
            String[] sourceArray = result.extractStringArray();
            sourceList = Arrays.asList(sourceArray);
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.