Advanced features steps

Set the default external code editor. See set-the-default-code-editor.html.
Set Visual Studio Code as the default external code editor. See set-the-default-code-editor.html.
Set Visual Studio as the default external code editor. See set-the-default-code-editor.html.
You can download a sample project from:
Prerequisites
You can move the certificate in the following ways:
  • Manually, by using Windows Explorer (only on Windows target).
  • Remotely, by using FactoryTalk Remote Access.
  • By using the same application.
  1. OPC UA
  2. In
    Project view
    , double-click an
    OPCUATagImporter
    object associated with an OPC UA client.
    In the central pane, the editor appears.
  3. In :
    • If the certificate is listed, select the certificate and select
      Select
      .
    • If the certificate is not listed:
      1. Select Import file(s).
      2. Select the certificate. For more information, see certificates-and-keys-location.html.
      3. Select
        Select
        .
  4. In :
    • If the private key is listed, select the private key and select
      Select
      .
    • If the private key is not listed:
      1. Select Import file(s).
      2. Select the private key. For more information, seecertificates-and-keys-location.html .
      3. Select the
        Select
        button.
  5. REPORTS
    1. In
      Properties
      , edit the object properties.
    2. Design the UI by double-clicking the object and editing it in
      UI editor
      .
  6. C#
  7. From the main toolbar, select Open .NET Solution.
    The default external code editor opens.
    TIP: We recommend using Microsoft Visual Studio 2022 or Microsoft Visual Studio Code as the default code editor. Some development assistance features may not be available when using a different code editor.
  8. Save the
    CSPROJ
    file.
  9. Compile the project.
  10. In Visual Studio or Visual Studio Code, in the debug mode, open the NetLogic that you want to check.
  11. Do any of the following:
    • If the NetLogic is at runtime, select
      Start Debugging
      or press
      .
    • If the NetLogic is at design-time, in
      FactoryTalk Optix Studio
      , right-click a NetLogic and select a method to execute.
  12. Debug the code.
    For more information on debugging in Visual Studio, see First look at the debugger - Visual Studio (Windows) | Microsoft Docs.
    For more information on debugging in Visual Studio Code, see Debugging in Visual Studio Code.
  13. C# EXAMPLE APPLICATIONS
  14. Create a new project with the default parameters save for the project name.
    Do not modify the default project parameters other than the project name. For more information, see create-a-project.html.
  15. Create a new Runtime NetLogic. See create-a-netlogic.html.
  16. In
    Project view
    , right-click the
    NetLogic
    folder and select
    New
    Runtime NetLogic
    .
  17. Save the code.
  18. In
    Project view
    , expand the
    DataStores
    folder.
  19. Select a database.
  20. Double-click the NetLogic.
    The external code editor opens.
  21. Save the project.
  22. Arrange the interface elements.
  23. CONTAINER STEP
    For more information about dynamic links, see create-dynamic-links.html.
    TIP: If you do not see the required option, select the
    Show all
    check box.
In
FactoryTalk Optix Studio
, select
Run
Run
to run the project using the client emulator to test your project. To run the project on a remote client, see add-a-client-device.html.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.