I’ve always published content targeted to mid-level C# developers. However quite a chunk of emails that I receive are from people getting started with C#. Hopefully this article will be a path for these people, a guide on learning how to do an HMI step by step and get consistent ...
Read More »How to record a video with C# – WPF and AForge
In this article we will see how to record a video and a snapshot from a camera (USB or IP camera), with C# and AForge. AForge is a library used for image acquisition and Image Processing, for example to analyse images and detect objects with a Camera. In a previous ...
Read More »HMI with C# and WPF part 3: Communicating with multiple plc (S7 and Modbus)
In the previous articles of this series we saw how to communicate with a single Siemens S7 plc. But it happens frequently to have to communicate with multiple PLCs. In that case, our HMI has to read and aggregate the data that are coming from the field and to react/notify ...
Read More »HMI with C# and WPF part 2: Navigation with PRISM
This article is part of a series that explains how to write an HMI with C# and WPF. Part 1: getting started with MVVM and plc driver Part 2: this article Navigation in WPF is one of the most complicated topics, because it can be implemented in many different ways, ...
Read More »HMI with C# and WPF part 1: getting started with MVVM and plc communication
This article is part of a series that explains how to write an HMI with C# and WPF. Part 1: this article Part 2: Create multiple pages and navigation with PRISM In this article we will see how to create from scratch a simple HMI software, which communicates to a ...
Read More »WPF navigation with dependency injection (DI/IOC): part 2
This article explains how to create dialogs and modal windows in a WPF application that uses dependency injection. We will use services and factories to abstract the creation of windows and MessageBoxes. We will also see how to write unit tests for MVVM navigation. This is the second part of ...
Read More »WPF navigation with dependency injection (DI/IOC): part 1
This article explains some approaches to create the architecture for a WPF application when using dependency injection. In particular we will see how to navigate through views and how to deal with dialogs, both windows and system dialogs. This article is divided in 2 parts. Part 1 (this article): Creation ...
Read More »Communication with Siemens S7 Plc with C# and S7.Net plc driver
In this article I explain how to implement a Siemens S7 plc driver by using the open source driver S7.Net. You can find S7.Net sources on GitHub: https://github.com/killnine/s7netplus. How to video Summary Why S7.Net: features and capabilities of the driver Documentation on the driver and S7 protocol Getting started with ...
Read More »Create DPI-aware and resolution-aware WPF applications
In this article i will analyze two techniques that can help you on writing a DPI-aware application and how to scale it properly. There are two common scenarios which force you to make your application to scale to fit the screen: Different resolution Different DPI In fact it’s very common ...
Read More »WPF touch-friendly controls for resistive touch-screen
While it’s fairly common, when working in automation field, to make software that runs on resistive touch-screens, I admit that it’s not a trivial task to make a good user experience, especially with a desktop technology like WPF and C#. In this article I posted some of the problems that ...
Read More »