Table of Contents
Setting up a Runtime Environment
Typically, a CFHEADER application will be developed and debugged on a Windows development PC, and then deployed to another target PC. By setting up a development environment, the development PC will have everything it needs to run the application, as installing the development tools also installs the runtime components. However, before a an application can be deployed and run on a target PC, that typically would not have development tools installed, the runtime components must be installed and configured.
The ComfileTech.Cfnet.Cfheader .NET library only supports 64-bit platforms. 32-bit platforms are not supported.
Windows
To set up a runtime environment on Windows:
If your application is a .NET application:
- Download and install either the .NET SDK or the .NET Runtime. See Choose The Correct Runtime for more information.
If your application is a .NET Framework 4.x application:
- Download and install the .NET Framework 4. Then, any executable file compiled for .NET Framework 4.x can be executed just like any other Windows program.
Linux
If using the latest operating system for COMFILE Technology's ComfilePi panel PCs, CFHEADER applications should work out-of-the-box without any of the following installations or configurations.
Install Dependencies
If your application is a .NET application:
- Install the .NET SDK or .NET Runtime. For ARM Linux PCs, see these instructions.
If your application is a .NET Framework 4.x application:
- Install the Mono Framework. The Mono Frameork framework is an open source implementation of the .NET Framework 4.x for Linux. v6.12 or later is recommended.
For both .NET Framework 4.x and .NET applications, libusb is required.
sudo apt install libusb-dev
USB Permissions
By default, Linux does not give ordinary users direct access to USB devices. That will result in errors when attempting to communicate with the CFHEADER module without elevated privileges. To give access to USB devices for ordinary users, create a file named /etc/udev/rules.d/99-usb.rules with the following contents:
SUBSYSTEM=="usb", GROUP="plugdev", MODE="0666"
Then reboot.
