The Interoperability Standard
for Industrial Automation
Welcome | OPC Foundation Online | Certification | Technology | News | https://gitHub.com/OPCFoundation |
Unified Architecture Technology Sample Applications
In this section we will simply add a new menu item to the "Server" menu called "Subscribe" available at the top of the window. This option will subscribe to the selected node and will display the value changes in a new window.
This step is a continuation from Step 1 - New Project.
Right-click on the project and choose "Add -> Windows Form" from the menu.
Name the window "SubscriptionOutput".
The window designer will appear and we will now add a label to the form that will occupy the entire window space:
From the Visual Studio .NET 2013 "Common Controls" toolbox double-click the Label control, which will add it to the form.
Select the new label by clicking on it once.
In the property-grid you will:
Select the Dock property and specify the value as Fill.
Change the AutoSize property to False.
Change the Modifiers property to Protected Internal.
Our form is now ready for use.
Double-click on MainForm.cs to launch the window designer.
At the top of the window you will see the main application menu, click on the Server menu and the options will appear below it.
In the bottom box (which shows "Type Here") type in the name "Subscribe".
Next, Step 3 - Setup Subscription.