Examples of command_inout()


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

                    }

                    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

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

    public void stopScan(IContext context) throws SalsaDeviceException {
        DeviceProxy scanServerProxy;
        String scanServerName = context.getScanServerName();
        try {
            scanServerProxy = getScanServerProxy(scanServerName);
            scanServerProxy.command_inout("Abort");
        }
        catch (DevFailed e) {
            invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
            throw new SalsaDeviceException("Error : cannot stop the scan : " + e.getMessage(), e);
View Full Code Here

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

        DeviceProxy scanServerProxy;
        String scanServerName = context.getScanServerName();

        try {
            scanServerProxy = getScanServerProxy(scanServerName);
            scanServerProxy.command_inout("Pause");
        }
        catch (DevFailed e) {
            invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
            throw new SalsaDeviceException("Error : cannot pause the scan : " + e.getMessage(), e);
View Full Code Here

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

    public void resumeScan(IContext context) throws SalsaDeviceException {
        DeviceProxy scanServerProxy;
        String scanServerName = context.getScanServerName();
        try {
            scanServerProxy = getScanServerProxy(scanServerName);
            scanServerProxy.command_inout("Resume");
        }
        catch (DevFailed e) {
            invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
            throw new SalsaDeviceException("Error : cannot resume the scan : " + e.getMessage(), e);
View Full Code Here

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

     * @throws SalsaDeviceException
     */
    public void clearHistoric(String scanServerName) throws SalsaDeviceException {
        try {
            DeviceProxy scanServerProxy = getScanServerProxy(scanServerName);
            scanServerProxy.command_inout("ClearHistoric");
        }
        catch (DevFailed e) {
            invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
            throw new SalsaDeviceException("Error : cannot read the historic : " + e.getMessage(),
View Full Code Here

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

                                + " is unknow on the scan server " + scanServerName + ".");
                    }
                }
            }

            scanServerProxy.command_inout("ExecuteAction");

        }
        catch (DevFailed e) {
            invalidateScanServerProxy(scanServerName);
            e.printStackTrace();
View Full Code Here

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

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

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

        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 : " + DevFailedUtils.toString(e), e);
            }
View Full Code Here

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

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

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

     */
    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);
            }
        } else {
            throw new SalsaDeviceException("Cannot ClearHistoric because " + scanServerName + " device is down");
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.