This project contains some example code that may help you use the WireFlow security dongle to  monitor the expiry date of a software license that you have sold.

The code is stored in the LabVIEW project called "AppNote_SecDong_TimeLimitedLicenseExample.lvproj".

Run the vi called "SecDong_YourMainApplication.vi"
This is a simple application periodically checks the value of "Data field 1", which has been assigned the value of the "Expiry date" of the program.
If it is larger than the current date, then the license has expired and an annoying message will appear.

On the front panel of the program you can experiment with the expiry date in the dongle to see how the annoying message will appear and vanish.

Look in the sub-vi called "SecDong_ExpiryDate-Check.vi" that implements the expiry date check.

The vi "SecDong_PrepareDongleForDelivery.vi" can be used to set the expiry date to a date of your chosing, and the current date.

You may want to implement different license schemes and that is of course possible to do, since you are free to use the three data fields in what ever way you like.

For more info read the application note "AB0005-106 AN17 WF Security Dongle to Handle Time Limited Licenses.docx"


IMPORTANT NOTE #1: Prerequisites
Before you run the example you must make sure that:
* The dongle-driver has been installed
* The LabVIEW-API has been installed 


IMPORTANT NOTE #2: Valid key-values
The program uses hardcoded values of keys 1, 2 & 3. Make sure that you have the same values in your dongle.
* To check the values in the program look in the vi called "SecDong_Keys.vi".
* To check the values in the dongle, use the "Security Suite Programming Application".
* If they are not identical, you either change the values in the LabVIEW code or using the "Security Application" to change the values in the dongle.

