SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
RemotingInterface.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
4 using System.Text;
5 using System.Runtime.InteropServices;
6 using Seci.Definitions;
7 
8 namespace Seci.Remoting
9 {
14  [ComVisibleAttribute(true)]
15  public class ReadWriteRemoting : MarshalByRefObject
16  {
20  public void ClearGraphs()
21  {
22  Managers.SeciMgr.ClearGraphs();
23  }
24  }
25 
31  [ComVisibleAttribute(true)]
32  public class ReadOnlyRemoting : MarshalByRefObject
33  {
34 
35  #region Blocks
36 
41  public String[] GetAllBlockValues()
42  {
43  return Bridge.GetAllBlockValues(true, false, false, false);
44  }
45 
53  public String[] GetAllBlockValues(Boolean visibleOnly, Boolean includeSetpoint, Boolean includeGroup)
54  {
55  return Bridge.GetAllBlockValues(visibleOnly, includeSetpoint, includeGroup, false);
56  }
57 
66  public String[] GetAllBlockValues(Boolean visibleOnly, Boolean includeSetpoint, Boolean includeGroup, Boolean includeWaitState)
67  {
68  return Bridge.GetAllBlockValues(visibleOnly, includeSetpoint, includeGroup, includeWaitState);
69  }
70 
71  #endregion
72 
73  #region DAE
74 
79  public String[] GetRunInfo()
80  {
81  if (Seci.Managers.SeciMgr.WebDashboardEnabled)
82  {
83  List<String> data = Standard.Dae.GetFormattedValues(Seci.Managers.SeciMgr.WebDashboardShowTitle, Definitions.Status.IsMuonInstrument);
84  return data.ToArray();
85  }
86  else
87  {
88  return null;
89  }
90  }
91 
92  public String GetShutterKickerStatus()
93  {
94  if (Seci.Managers.SeciMgr.WebDashboardEnabled)
95  {
96  if (Definitions.Status.IsMuonInstrument)
97  {
98  return "Kicker Status: " + Standard.BeamLogger.GetKickerStatus();
99  }
100  else
101  {
102  return "Shutter Status: " + Standard.BeamLogger.GetShutterStatus();
103  }
104  }
105  else
106  {
107  return null;
108  }
109  }
110 
111  #endregion
112 
113  #region Configurations
114 
119  public String GetCurrentConfig()
120  {
121  try
122  {
123  return Managers.ConfigurationMgr.ConfigName;
124  }
125  catch
126  {
127  return null;
128  }
129  }
130 
131  #endregion
132 
133  public int GetNumberOfErrors()
134  {
135  return Seci.Standard.MessageQueue.Messages.Count;
136  }
137 
138  }
139 }
void ClearGraphs()
Requests that any graphs in the user interface are reset
This class is for accessing SECI via DotNet Remoting. This class can return values from SECI and also...
String[] GetAllBlockValues()
Get the current values of all the blocks, including any in the components.
This class is for accessing SECI via DotNet Remoting. Used for the web dashboards mainly...
String[] GetRunInfo()
Get the current run information from the DAE.
String GetCurrentConfig()
Get the name of the current configuration.
String[] GetAllBlockValues(Boolean visibleOnly, Boolean includeSetpoint, Boolean includeGroup, Boolean includeWaitState)
Get the current values of all the blocks, including any in the components.
String[] GetAllBlockValues(Boolean visibleOnly, Boolean includeSetpoint, Boolean includeGroup)
Get the current values of all the blocks, including any in the components.