Getting started with SignalF


SignalF is based on .NET 8 and .NET Standard 2.1. To compile SignalF you need Visual Studio 2022 (version 17.8.0 or newer). If you are using a different development environment, you must install the .NET 8 SDK.

Create a new project

  • Open Visual Studio.

  • Click on New project.

  • Select Console app with the tag C# and click Next.

  • Enter SignalFStarted as the name and then click Create.

Install SignalF

Execute the following command in the Package Manager Console to install SignalF.

Install-Package -IncludePrerelease SignalF.Extensions.Controller

Create the code

Open the file Program.cs and enter the following code.

 1using System.Runtime.Versioning;
 2using SignalF.Extensions.Controller;
 4namespace TestController;
 8public class Program
10    public static async Task Main(string[] args)
11    {
12        var hostBuilder = Host.CreateDefaultBuilder(args)
13            .UseSignalFController()
14            .ConfigureServices(services =>
15            {
16                services.AddSignalFControllerService();
17            });
19        var host = hostBuilder.Build();
20        await host.RunAsync();
21    }

Run the app

Click Debug > Start Without Debugging in the menu to start the app.

You should now see the following text in the console window:

Default process is running ........

SignalF is now up and running. Visit the tutorial to learn how to use devices, tasks, data output and control processes.