After [[cfnet:cfheader:development_environment:index|setting up a development environment]], simply [[cfnet:cfheader:connecting_to_usb_host:index|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 [[https://api.comfiletech.com/csharp/api/ComfileTech.Cfnet.Cfheader.html|ComfileTech.Cfnet.Cfheader API]].
After [[cfnet:cfheader:development_environment:index|setting up a development environment]], simply [[cfnet:cfheader:connecting_to_usb_host:index|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 [[https://api.comfiletech.com/csharp/api/ComfileTech.Cfnet.Cfheader.html|ComfileTech.Cfnet.Cfheader API]].
+
+
+
===== Simple Digital Output Example =====
+
+
<code csharp>
+
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()))
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.
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.
cfnet/cfheader/csharp/index.1780033507.txt.gz · Last modified: by mfranklin