From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Developer Center Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Get number of days before license expiration in LabVIEW

Hello,

I'm using TPLA toolkit to protect an application.

Getting status and activating license works fine but I miss the return of the days before expiration in case of "evalution/demo" mode.

KEYLIB32.dll PP_Daysleft() function return this value. Is it plan to add this function to TPLA toolkit (maybe in GetLicenseStatus.vi ) ?

Thanks,

Olivier


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!
Message 1 of 8
(13,841 Views)

One other thing missing , retrieve expiration date (soft and hard).

It could be useful to distribute full featured beta application with automatic deactivation at define date. Be able to display expiration date from license file in a splash screen would be great.

Thanks,

Olivier


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!
Message 2 of 8
(5,787 Views)

Hello,

is this tread has been hide to readers or there is no plan to a short term TPLA toolkit update with these features ?

Thanks

Olivier


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!
Message 3 of 8
(5,787 Views)

Hey Olivier! Sorry for the late response. We didn't have plans to update the toolkit with these features, but we will definitely reevaluate that now. I believe most of these are available through Concept Software's DLL, but I am not sure yet.

Chris Bolin
LabVIEW Partner Program, CLA
0 Kudos
Message 4 of 8
(5,787 Views)

Olivier,

Like Chris said, there were no existing plans to add this to the toolkit.

As you mentioned in your opening post, those functions could be dropped as Call Library Nodes on your block diagram, pointing to KeyLib32.dll (in the resource directory). I would suggest wrapping them in SubVIs with the error wire paradigm to make sure they fit into your product development nicely. Please let us know if you require any assistance with this. You will need to set the calling convention of the CLN to "stdcall" from the LabVIEW default of "C".

We will keep you updated if we decide to provide our own wrapped versions of these functions in the future.

Thanks!

-Sohum.

0 Kudos
Message 5 of 8
(5,787 Views)

I've wrapped KeyLib32.dll using import shared library LabVIEW feature. All function are wrappped.

I've just test pp lfopen, pp lfclose, pp lfdaysleft and pp getvarnum. tt's working fine for my needs.

NB : dll's errors are reported in the error cluster

You'll find the wrapper in attachement (needs LV2009 and TPLA toolkit).

Regards,

Olivier


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!
Message 6 of 8
(5,787 Views)

If you don't mind, I'd like to know which functions you end up using/needing. That would help us prioritize any work on wrapped calls in the toolkit.

Chris Bolin
LabVIEW Partner Program, CLA
0 Kudos
Message 7 of 8
(5,787 Views)

Hi Chris,

Actually, main needs (state and activation) are covered by TPLA.

But, as you are able to check and activate you can't display number of days remaining in demo mode. This data could be retrieve by the actual "Get License Status" function.

To go further into functions (regarding the Software Key Licensing features) that can be interesting to add to TPLA toolkit, I think about the following :

  • Get/Set text variables stored in the licence field
  • Get/Set date variables stored in the licence field
  • Get/Set numeric variables stored in the licence field

With these, I think we can cover 95% of needs to protect an app on a local system.

Protection Plus has ability to manage license over LAN, but this is not in my focus now, also I don't have opinion about what functions could be useful to wrapped.

Regards,

Olivier


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 8 of 8
(5,787 Views)