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.
To set up a runtime environment on Windows:
If your application is a .NET application:
If your application is a .NET Framework 4.x application:
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.
If your application is a .NET application:
If your application is a .NET Framework 4.x application:
For both .NET Framework 4.x and .NET applications, libusb is required.
sudo apt install libusb-dev
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.