2 using System.Collections.Generic;
5 namespace Seci.Managers
19 return LabView.LabViewApp.GetListOfControls(fileName);
24 String type = LabView.LabViewApp.GetControlTime(fileName, control);
26 if (type ==
"NUMERIC")
28 return Seci.Definitions.ControlType.NUMERIC;
30 else if (type ==
"BOOLEAN")
32 return Seci.Definitions.ControlType.BOOLEAN;
34 else if (type ==
"STRING")
36 return Seci.Definitions.ControlType.STRING;
40 return Seci.Definitions.ControlType.UNKNOWN;
51 return LabView.LabViewApp.GetBounds(fileName);
61 LabView.LabViewApp.MoveFrontPanel(fileName, bounds);
71 return LabView.LabViewApp.GetFrontPanelTitle(fileName);
80 LabView.LabViewApp.UpdateFrontPanelTitle(fileName);
91 LabView.LabViewApp.MinimiseVI(fileName);
100 LabView.LabViewApp.RestoreVI(fileName);
107 public static void ShowVI(String fileName)
109 LabView.LabViewApp.ShowVI(fileName);
116 public static void HideVI(String fileName)
118 LabView.LabViewApp.HideVI(fileName);
128 return LabView.LabViewApp.IsVIHidden(fileName);
137 LabView.LabViewApp.SetVisibilityToDefault(fileName);
149 return LabView.LabViewApp.IsVIPresent(fileName);
159 return LabView.LabViewApp.VIsNotLoaded;
169 return LabView.LabViewApp.GetLLBInfo(fileName);
176 public static void AddVI(LabView.LabViewPanelInfo panel)
178 LabView.LabViewApp.LoadVI(panel,
true);
187 LabView.LabViewApp.CloseVI(fileName);
197 return LabView.LabViewApp.GetListOfAllVIs(includeDefault);
206 return LabView.LabViewApp.GetAllPanelsInfo();
213 public static void SetPanelsInfo(SerialisableList<LabView.LabViewPanelInfo> panels)
215 LabView.LabViewApp.SetPanelsInfo(panels);
220 return LabView.LabViewApp.AreYouThere();
The manager class for interacting with LabVIEW.
static Boolean IsVIHidden(String fileName)
Checks whether the VI front panel is hidden.
static List< String > GetVIControls(String fileName)
Get a list of the controls on the VI
static void SetVisibilityToDefault(String fileName)
Returns the VI to its default visibility as determined by the SECI settings.
static SerialisableList< LabView.LabViewPanelInfo > GetAllPanelsInfo()
Get the panel information for all the VIs
static void ShowVI(String fileName)
Shows the VI front panel if it was hidden.
static Boolean IsLabViewRunning()
static Definitions.ControlType GetControlType(String fileName, String control)
static void UpdateFrontPanelTitle(String fileName)
Update the stored window title for the front panel of the VI
static void RestoreVI(String fileName)
Restores the VI front panel.
static void SetFrontPanelBounds(String fileName, int[] bounds)
Set the bound of the front panel. Can be used to move the VI or resize it (not recommended).
static List< String > GetListOfVIs(Boolean includeDefault)
Gets a list of all the VIs loaded by SECI
static List< String > GetLlbInfo(String fileName)
Get the information about the .llb file.
static void HideVI(String fileName)
Hides the VI front panel completely.
static void MinimiseVI(String fileName)
Minimises the VI front panel.
static List< String > GetVIsNotLoaded()
Gets a list of VIs that SECI failed to load. Used when loading a configuration
static Boolean DoesVIExist(String fileName)
Checks whether the VI is present (i.e. has been loaded by SECI)
This class contains all the information about a LabVIEW VI that needs to be saved in the configuratio...
static void RemoveVI(String fileName)
Removes a VI from the current configuration and "closes" it.
static int[] GetPanelBounds(String fileName)
Get the bounds of the VI
static void AddVI(LabView.LabViewPanelInfo panel)
Adds/loads a VI based on the LabViewPanelInfo
static String GetFrontPanelTitle(String fileName)
Get the full title of the VI. Needed for the Win32API stuff.
static void SetPanelsInfo(SerialisableList< LabView.LabViewPanelInfo > panels)
Set the panel information for the VIs