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.
- OPC UA
- InProject view, double-click anOPCUATagImporterobject associated with an OPC UA client.In the central pane, the editor appears.
- InSelect file:
- If the certificate is listed, select the certificate and selectSelect.
- If the certificate is not listed:
- Select .
- Select the certificate. For more information, see certificates-and-keys-location.html.
- SelectSelect.
- InSelect file:
- If the private key is listed, select the private key and selectSelect.
- If the private key is not listed:
- Select .
- Select the private key. For more information, seecertificates-and-keys-location.html .
- Select theSelectbutton.
- REPORTS
- InProperties, edit the object properties.
- Design the UI by double-clicking the object and editing it inUI editor.
- C#
- From the main toolbar, select .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.
- Save theCSPROJfile.
- Compile the project.
- In Visual Studio or Visual Studio Code, in the debug mode, open the NetLogic that you want to check.
- Do any of the following:
- If the NetLogic is at runtime, selectStart Debuggingor press.F5
- If the NetLogic is at design-time, inFactoryTalk Optix Studio, right-click a NetLogic and select a method to execute.
- 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.
- C# EXAMPLE APPLICATIONS
- 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.
- Create a new Runtime NetLogic. See create-a-netlogic.html.
- InProject view, right-click theNetLogicfolder and select .
- Save the code.
- InProject view, expand theDataStoresfolder.
- Select a database.
- Double-click the NetLogic.The external code editor opens.
- Save the project.
- Arrange the interface elements.
- CONTAINER STEPFor more information about dynamic links, see create-dynamic-links.html.TIP: If you do not see the required option, select theShow allcheck box.
In 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.
FactoryTalk Optix Studio
, select Run
Provide Feedback