Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceData


        if ((archivingDevicePath != null) && !OLD_FASHION_MONITORED_ATTRIBUTES) {
            System.out.println("MONITORED - go for new fashion monitored attributes");
            DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(archivingDevicePath);
            if (deviceProxy != null) {
                try {
                    DeviceData argout = deviceProxy.command_inout("GetCurrentArchivedAtt");
                    String[] archivedAttributesList = argout.extractStringArray();
                    if (archivedAttributesList != null) {
                        for (String attribute : archivedAttributesList) {
                            System.out.println("\t" + attribute);
                            attributesList.add(attribute);
                        }
View Full Code Here


    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

        // 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 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

     */
    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

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

                {
                    boolean bEndMethod = false;
                    DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
                    if (proxy != null) {
                        try {
                            DeviceData argin = new DeviceData();
                            argin.insert(getTabLdapArgin());
                            proxy.command_inout("SetLdapParameters", argin);
                            bEndMethod = true;
                        } 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) {
                exception.printStackTrace();
            }
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfIntProjDir.getText());
                proxy.command_inout("setInHouseName", argin);
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfBaseDataDir.getText());
                proxy.command_inout("SetBeamlinesDataPath", argin);
            } 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_tfDirAccessRights.getText());
                proxy.command_inout("SetDirAccessRights", argin);
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
            try {
                DeviceData argin = new DeviceData();
                argin.insert(m_tfFileAccessRights.getText());
                proxy.command_inout("SetFileAccessRights", argin);
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
        }
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.