After setting up a development environment, simply connect the CFHEADER module to the development machine, and then use Visual Studio, and any .NET language (e.g. C# or VB.NET), to automate the IO modules using the ComfileTech.Cfnet.Cfheader API.
using ComfileTech.Cfnet.Cfheader; var cfheader0 = Cfheader.Instances[0]; var DOModule0 = cfheader0.DigitalOutputModules[0]; cfheader0.Open(); while (true) { foreach (var channel in DOModule0.Channels.Concat(DOModule0.Channels.Reverse())) { foreach (var state in new[] { true, false }) { channel.State = state; cfheader0.Sync(); Thread.Sleep(50); } } }
Debug the entire solution on the Windows development machine before deploying to an ARM Linux or other target device. Since the development machine is usually much more powerful than the target device, local edit-run-debug iterations are far more productive.