The features decribed or used here are only available if you included "COM development" during the installation of Connectivity Software. If the features are missing, simply re-run the installation program, making sure that "COM development" is included in the selection made on the "Installation Dashboard" setup wizard page.
Where are the examples?
The examples are available in multiple formats and on different locations. You can pick the one that suits you the best.
- On Windows, if you have used the Setup Program to install QuickOPC, examples source files are available from the Start menu or the Launcher application.
- The examples are in this documentation - shown in articles that describe the related concepts, and also all together: QuickOPC Examples.
JScript Examples in IE
The examples here run inside Internet Explorer, i.e. directly on client. No Web server is required. The EasyOPC-DA component must be installed on the client side, and the OPC server(s) must be accessible locally or via DCOM from the computer where EasyOPC-DA component resides.
- ReadAndDisplayValue_JScript.htm: Reads and displays an OPC item value.
JScript Examples in WSH
The examples here run in Windows Script Host (WSH), e.g. from Windows Command Prompt.
- DocExamples folder: Contains all JScript examples for OPC Classic that are given in the Reference documentation.
- ReadAndDisplayValue.js: Reads and displays an OPC item value.
- UADocExamples folder: Contains all JScript examples for OPC-UA that are given in the Reference documentation.
For those who want to use the command-line interface, a "Command Prompt From Here" link is installed into the examples folder. This link allows you to switch from the Windows Explorer to a CMD window with the current directory set to the chosen place, for quick experiments and exploration.
See Also