Cadfil Help Contents Page

Cadfil - Advanced filament Winding software for program generation for all type of filament winding machine.

Cadfil Installation

Cadfil Installation

Main Cadfil Installation

Datakey Driver Installation

Checking driver Installation

Apply a licence file

Cadfil Run Time Licence Error Codes

Cadfil installing a new Licence Error Codes

Cadfil Network Licence Server Installation

Cadfil Network Licence Server Monitoring

Cadfil Network Licence Failure or Timeout

To install Cadfil correctly the installer must have administrator rights on the PC. Cadfil requires a USB datakey (dongle or software protection device) to enable full use. The first step is to run the Cadfil installer, this copies files to the Cadfil install folder and creates start menu and desktop shortcuts. Futher installers can get run for the USB datakey drivers chosen. You can install multiple different versions of Cadfil as they do not affect each other in any way as different locations and shortcuts are created for each version.

Cadfil uses a security device called a Datakey. This is a DK3 (Blue USB) device. Cadfil can also have DK2 USB devices which look exactley the same but are Green in colour and have DK2 printed on the label.

DK3 (Blue) USB datakey

Main Cadfil Installation

Top of Page

The Cadfil Installer would typically have a name like Install_Cadfil915.exe indicating this was version 9 sub-version 15 (V9.15). Cadfil installers can be found on the download page at www.cadfil.com/updates.html. To install Cadfil correctly the installer must have administrator rights. Typically on recent windows versions you will first get the UAC promt as below.

Cadfil Install Windows UAC Prompt

If you click the "Show more details" link on the above dialog it should show a valid digital Signiture signed by "Valid Publisher : Cresent Consultants Ltd". The intial steps of the installation are shown in the pictures below.

Cadfil Install Step 1

Cadfil Install Step 2b

Cadfil Install Step 2b

As can be seen above Cadfil by default installs into the C:\Cadfil\Cadfilxxx. where xxx is the version e.g. 915. It is possible if the same version of Cadfil is alreday installed the installer will skip the first two screens above and use the locations of the previous install. It is not recommended to change the defaults. Cadfil reads (and sometime writes) configuration data to the install folder and the normal windows "Program Files" location has restricted user access. You can install multiple different versions of Cadfil as they do not affect each other in any way as different locations and shortcuts are created for each version.

Cadfil Install Step 3

The last step of the main install is shown above. There 3 option boxes, one to view the "READ ME" file, and two for datakey drivers. If you already have cadfil running on the PC and are just installing a newer version you can uncheck (remove the tick) from the DK2 or DK3 instal boxes as the current working drivers will be OK. If it is a new install select either DK2 or DK3, depending on if you have a green or blue USB datakey. There is no problem installing the drivers again if they are already installed, the installer will replace older driver files and skip installing the same files again or indeed skip overwritting more recent versions that may be be installed. In the event that you have both DK2 and DK3 datakeys you can install both types.

If you have a Cadfil network licence (only available from Version 9.15 and only if a newtwork licence has been specifically purchased) then select DK2, as the DK2 can be later configured as a network device as described in a later section.

Datakey Driver Installation

There are two different installers that can be called by the Cadfil installer, the DK3 and the DK2 installers. When Cadfil is installed these are copied to the C:\cadfil\cadfilxxx folder (xxx = version e.g.915). At the time of writting these are called, dk3wn3264_3_6_0_64.exe and dk2wn3264_7.43.0.69.exe though the version numbers may change for future releases. The cadfil installer create shortcuts to these installers under the Cadfilxxx entry on the start menu and also has the option to run these directly.

DK3 (Blue) Datakey Driver Installation

Top of Page

Cadfil Dk3 Install 1

Cadfil Dk3 Install 2

Cadfil Dk3 Install 3

Cadfil Dk3 Install 4

Cadfil Dk3 Install 5

Cadfil Dk3 Install 6

At this point after the above steps the DK3 should be installed correctly and if you plug in a DK3 to a USB port windows should recongnise it. The very first time the USB is plugged into a particular port there may be a short delay and windows may give some message about configuring/installing the USB. If for any reason you think the datakey drivers are not installed correctly then please read the section on checcking the datakey driver installation.

DK2 (Green) Datakey Driver Installation

Top of Page

Cadfil Dk2 Install 1

Cadfil Dk2 Install 2

Cadfil Dk2 Install 3

In the Above pictures 'local' is selected, this is the normal option. The server option is only selected with the Cadfil had a network licence option where the DK2 USB device will be attached to a remote licence server machine. The network licence is not a default option and is only avialable if that option has been purchased. This setting can be modified after intstallation using the DESnet control panel which can be found in the section Checking driver Installation

Cadfil Dk2 Install 4

Checking driver Installation

Top of Page

If you think the drivers are not loaded, or example you have have had this message from trying to run Cadfil. There is a control panel entry that gives the status of the DK3 and/or DK3 drivers. In windows 10 the "classic" windows control view panel seems to have been removed. A couple of ways to get to the setings is [Window] + {r] (press on hold the windows key and then R key). The "Run" dialog box should appear, type "DESKEY64.CPL" (not case sensitive) and click OK. A second way is just to type "DESKEY64.CPL" in the Cortana "Type here to Search box" normally in the bottom left of the start menu. If your windows version is an older 32 bit version You would need to type "DESKEY32.CPL. "

Cadfil Deskey Control Panel 1

Cadfil Deskey Control Panel 2

The above screen is shown if DK2 is installed as there are three 'tabs', Dk2, Networking and File Version. If only DK3 is installed there will only be the File Versions tab like below which will list the driver versions that are installed. The presence of the Deskey Control panel is indicative of the drivers being installed. In the Picture above there is an option for local and/or network access to the DK2. Local is where the DK2 is attached to local PC, for network the DK2 is attached to a remote network server. If both are ticked the search option becomes active, so Cadfil will look for a local DK2 and if that fails looks for a network DK2 (or visa versa). The network option should not be picked UNLESS you have purchased a network licenced version of Cadfil as it will not work. The next section below explains the networking tab.

Cadfil Deskey Control Panel 3

The networking tab is only relevant for network licence versions of Cadfil. You should pick "add" and browse the network for the name of the server where the DK2 and DK2 server software is installed. The port is they network port that is used on the server the default port is 3029 but this can be overridden by another value if necessary. It is also possible to have more than one licence server.

Cadfil Deskey Control Panel 4

Apply a licence file

Top of Page

You should have been sent (usually by email) a small file, usually called ‘lic.dat’. This is required when you run Cadfil for the first time after an install. Place this file in a convenient location on the PC, for example on the desktop.

You can now run Cadfil my clicking the Cadfil shortcut on the desktop or in the start menu. You may find that most of the menu options are greyed out and cannot be used. A security error message may be given and you could be directed to this help file if you chose to be.

To appy the licence you need to go to the utilities menu and select the Apply New Licence file option. You will then need to browse in the file open box to find the licence file you saved earlier. Having read the licence file you can then see the Cadfil the Message ‘Licence Update Succesful’ in the Cadfil Text window (you may need to scroll down this window to read the messages). If you get an error please note the error number and contact CCL. It may be that you need an updated licence file. Tyically licence files must be applied to the DK3 withing 9 days of the licence being generated, after that time it cannot be used 9an error is given) and a new licence file is needed.

Security error messages will be of the format ‘Security failure, code xxx. View Help?’. Error codes meanings are shown below.

It is suggested that you:

  1. Check the Datakey is plugged into the PC and try to run Cadfil again. After plugging in a key wait a few seconds for windows to find it.
  2. Check driver inbstallation, see Checking driver Installation
  3. Re-install the driver files if necessary and try again.
  4. Contact CCL at sales@cadfil.com (or your supplier) quoteing the serial number on the datakey.

For other codes you may just need to apply the latest licence file as described above. If the error persists please contact CCL. Contact details are at the start of this help file and can also be found on the About Cadfil option.

Cadfil Run Time Licence error Codes

Top of Page

  1. -1/2 No Datakey driver install found
  2. -5,-16,-17 Corrupt Datakey data
  3. -6,-7,-8,-18 Licence expired
  4. -9 Datakey found but not recognised (not initialised by Cadfil) or networked DK2 option not licenced
  5. -10,-11,-13,-14,-15 Only for DK12 parallel key (DK12 is now obsolete)
  6. -12 Cadfil version number too high for licence data version

Cadfil installing a new licence error codes

Top of Page

The error codes when installing a new licence file are different meanings,these are:

  1. -1 Lic.dat file selected is not found
  2. -2 Error opening lic.dat file
  3. -3 Error reading lic.dat file
  4. -19 Lic.dat file is corrupt
  5. -5, -6 License file is time expired
  6. -7 DK3 found but not recognised
  7. -8 Wrong DK3 for licence file/wrong licence file for DK3
  8. -9,-11,-12 DK12 error codes

Cadfil Network Licence Server Installation

Top of Page

The DK2 (Green USB) can be congured on a network licence server if this option is supplied. The server installer is call dnsrv3264_7.43.0.69.exe and is supplied via download link if it is required. The installation process is simple and is shown in the following three pictures.

Cadfil Network Server Installation Image 2

Cadfil Network Server Installation Image 3

Cadfil Network Server Installation Image 4

After the server installation you should have the two start menu items "DK2 Nework Server Monitor" and "Event log viewer" as can been seen in the image below.

Cadfil Network Server Installation Image 5

The Event log viewer (shown below) shows all activity on the server such as the access via Cadfil "client" systems. In the log below you can see the report that the server process has started and that it has found a DK2 device, both of which are signs of good health! A description of the "DK2 Network Server Monitor" can be found in a following section.

Cadfil Network Server Event Log

By default the Licence server and clients communicate on network port 3029. This port needs to be open for access on the client and server machines and on any routers, firewalls etc that sit beween client and server. This is normally a task for an experienced network administrator. If you need to change the port on the server (you will also need to change on clients to match) you can do this via the Deskey Control panel., the link given shows how to access the Deskey Control panel. The network tab on the control panel is different if you are running on the server. As you can see in the image below there is an area with "DK2 Network Server service control". In this area you can change the port number and stop and start the licence server process. You can see these changes in the event log viewer. You can also note that you can also run Cadfil clients on the server and access the DK2 network proceess via "localhost". You can also note "Monitoring" button which opens the Network Licence Server Monitoring dialog, this is described in the following section.

Cadfil Network Licence Server Control Panel

Cadfil Network Licence Server Monitoring

Top of Page

The Network Licence Server Monitoring dialog allows you to see the current Cadfil licence status, that is how many licences are avialable and how many are in use and who is using those licences. The Monitor dialog can be started in two ways, via the Monitor button on the Newtorking tab of the Deskey Control panel or via "DK2 Network Server Monitor" on the Windows Start menu. An image of the dialog is shown below, the first image shows it run from this server. In this example it shows there are 2 licences available and none are being used. In the second image this is from a client machine looking at a remote server. It shows two licences both of which are in use. You will note that both are issued from the same PC as the licences are "per process" not "per machine" so if you have two copies of Cadfil running that will use two licences even if both those Cadfils are running on the same machine.

Cadfil Network Server Remote Monitor Image 1

Cadfil Network Server Remote Monitor Image 3

Cadfil Network Licence Failure or Timeout

Top of Page

There is no specific licence error when all the licences on the server are in use and an additional licence is requested. The error will be "datakey not found" as the requst to accesss the datakey via the server is denied. If you cannot get a licence you can run the Network Licence Server Monitoring options described in the previous section. The two likley causes will be that either that no licence server is listed or all the licences are being used. The first item may be that the licence server is down, the licence service is stopped on that machine or there is a problem with the network. In the case where all licences are in use you can either wait for one to become free, beat a colleage with a large stick until they agree to release the licence or go and see the boss and get him to buy more Cadfil licences from those nice Cadfil people. It is also possible that there may be "stale" licences where the server believes a licence is still being used when infact it isn't.

When Cadfil exits normally the licence that is being used is released back to the server. If the PC crashes, Cadfil crashes or the network as gone down this licence release process will not happen so the server will still think that that licence is being used and hence a stale licence licence can be created. The Network Licence Server Monitoring dialog decribed in the previous section has an "Admin" button avialable (ie not greyed out) when it is run on the licence server. When this is pressed a password is requested (a default password - avialable on request - is initially set). After succesfully entering the password the dialog in the image below is showm.

Cadfil Network Server Remote Monitor Image 2

The connection monitor option is set at a default of 30 minutes but can take values from 1 - 2880 minutes (2 days). This means that after 30 minutes of no activity beween a client and the server the licence is released at the server. A drawback of a long timeout is that you might have to wait that long to be able to get a stale licence back. Setting a short time (e.g. 1 minute) can also be a problem. Every time you select a menu option in Cadfil, Cadfil messages the licence server to say it it still running. If however if Cadfil is inactive (the phone rang for example) the licence may timout and be released back to the server. As soon as you resume work the licence will be obtained again. This is OK unless someone else made use of the licence whilst you were on the phone in which case you will get a beep and the 'Datakey Unplugged' message until such a time as a licence is avialable or you exit Cadfil. A time of 5 minutes is probnably a good compromise. Stopping and starting the licence server process will alsom clear stale licences.

The beep and 'Datakey Unplugged' message can also be given if the licence server or newtwork goes down after you can succesfully obtained a licence. When the server or network is restored the Cadfil session can be continued. If you are in a command you should be able to continue (e.g. save) until the point that you need to selesct a menu command.

Top of Page