User Tools

Site Tools


cfnet:cfheader:runtime_environment:index

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:

If your application is a .NET Framework 4.x application:

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:

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.

CFHEADER - USB Interface to CFNET IO Modules

cfnet/cfheader/runtime_environment/index.txt · Last modified: by admin