beckhoff TE1000 TwinCAT 3 — 6.9.2 Creating and handling TwinCAT Analytics projects

Samples | Measurement Each network is represented within a Microsoft Visual Studio ® Editor instance, so that the internal docking mechanisms can be used to simultaneously represent different networks. The IMeasurementAnalyticsNetwork interface defines the following methods: Creating, accessing and handling functions A TwinCAT Analytics Function represents the level of the analysis function. Each function has its own input and output variables as well as various configuration parameters. The IMeasurementAnalyticsFunction interface defines the following methods: No interface is required to adjust the parameters of the function.

To do this, you can simply search the EnvDTE-Properties list of the EnvDTE.ProjectItem.Properties object for the EnvDTE.Property and set its value. TE1000 290 Version: 1.7.0 int ShowControl(); Brings the Microsoft Visual Studio® Editor to the foreground to display the Analytics network. int CloseControl(); Closes the editor. int AddFunction(out ProjectItem item, Guid guid, string name = ""); Adds an analysis function to the network. The function is determined by the corresponding GUID, which can be selected via the interface method IMeasurementAnalyticsProject.GetAvailableModules( out Hashtable modules).

The instance of EnvDTE.ProjectItem.Object can be mapped to the IMeasurementAnalyticsFunction interface. int AddNetwork(out ProjectItem item, string name = ""); The object EnvDTE.ProjectItem.Object can be mapped to the IMeasurementAnalyticsNetwork interface. int ChangeName(string name); Changes the name of the network. int AddNetworkTemplate(out ProjectItem item, string path); Adds a network from a template. The template must be specified at file level. The object EnvDTE.ProjectItem.Object can be mapped to the IMeasurementAnalyticsNetwork interface. int ShowControl(); Brings the Microsoft Visual Studio® Editor to the foreground to display the Analytics project.

int CloseControl(); Closes the editor. int ChangeName(string name); Changes the name of the function. int SetInputVariable(string input, int inputIndex); Sets the input variable to the specified index of the function on the input string. The input string must be in XML format as an example from the TargetBrowser. TargetBrowserExportInfo To obtain the XML-formatted string, you can simply drag and drop the desired variable from the TargetBrowser into a text editor. Please note that the text editor must be started as an administrator if the TargetBrowser host (e.g. Microsoft Visual Studio®) has also been started as an administrator.