LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating License File Info in 3rd Party Licensing Toolkit

Solved!
Go to solution

Hello,

I am using LV 2010 and the Third Party Licensing and Activation Toolkit:

http://sine.ni.com/nips/cds/view/p/lang/en/nid/209107

 

(requires:http://decibel.ni.com/content/docs/DOC-9674)

 

I see that on many of the inputs the "license file info" is a required typedef input, but I don't see any method for generating the info inside it. I understand the password and path, but what does the 'handle' refer to?

 

 

 

My search for KB articles or examples has thus far been fruitless, so any pointers or example code would be appreciated.

 

Thanks,

Mello


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 1 of 13
(3,901 Views)

Smiley Happy

 

21535i1632A7FA5CB2A9DD

Chris Bolin
LabVIEW Partner Program, CLA
Message 2 of 13
(3,874 Views)
Solution
Accepted by Mellobuck

All jokes aside, I'm sorry for the confusion... this may not have been the most intuitive choice.

 

We actually have a community group (complete with forums) dedicated to this toolkit, if you are at all interested. (I know, more collaboration options...)

Chris Bolin
LabVIEW Partner Program, CLA
Message 3 of 13
(3,869 Views)

Hmm, this info is not available on my install. Now, this says "you do not need to change this input," so I can just use a cluster constant, bundle by name for the path and password, and the default value for handle will work? I must be missing something, as this doesn't quite seem right...

 

OK, I guess the more peritnant questions is why the VIPM did not install this information in my help, or why there is not a link to Detailed Help?.

 

I will check out the community group. Is the group applicable to the 2010 toolkit version as well as the previous (beta?) version?

 

-Mello


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 4 of 13
(3,864 Views)

Mello,

 

The handle is a value that is used internally by the Protection PLUS APIs. The reason it is part of the cluster is so that we prevent the disk overhead of hitting the license file every time we want to do something with it. The handle is maintained by the Protection PLUS DLL and is de-allocated once the license file is closed or the DLL is unloaded. From our perspective and your perspective, we don't need to deal with the handle at all. Specifying an invalid handle has undefined behavior although my guess is that the API automatically allocates a valid handle if one exists.

 

With regards to the documentation, my guess is that you may have installed the "light" version of the toolkit which just contains the VIs and libraries, but not the documentation and examples. Can you verify which package you installed?

 

Thanks,

Sohum.

Message 5 of 13
(3,857 Views)

Good Afternoon Sohum,

Thanks for the reply. So I will have to run a call to the Protection Plus API through a DLL call.

 

Having used the VIPM (for only the 2nd time ever, I am probably missing something), it seems to just show me this screenshot:

21553i579B812983044255

 

My normal techniques of checking the National Instruments section in Add/Remove programs, license manager or in MAX don't seem to list the toolkit. Where should I check for the version installed by VIPM?

 

Thanks,

Mello

 


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 6 of 13
(3,845 Views)

 


@Mellobuck wrote:

My normal techniques of checking the National Instruments section in Add/Remove programs, license manager or in MAX don't seem to list the toolkit. Where should I check for the version installed by VIPM? 


 

No worries. The VIPM screenshot tells us everything we need to know about the version of the toolkit.

 

 


So I will have to run a call to the Protection Plus API through a DLL call. 


You shouldn't ever have to interact with the PP DLL at all. The toolkit will serve as the API and does all these calls for you. I'm sorry for the confusion.

 

Chris Bolin
LabVIEW Partner Program, CLA
Message 7 of 13
(3,817 Views)

OK,  The toolkit will serve as the API.

I only have six VIs on the palette

None of these six VIs produces the cluster "license file info"

Several of the VIs have "license file info" as a required input, so I need to get it from somewhere

 

So I think I need to just create the cluster myself, as in this document: http://decibel.ni.com/content/docs/DOC-10687

 

I guess I was expecting some kind of "Open Reference" equivalent to create that cluster, I was just overthinking the issue.

 

Thanks everyone for the help, I will give out Kudos, I am sorry that I can only pick one answer as the solution. Since the Community group had the example code, I think I am going to have to give the nod to Chris.b 🙂

 

Regards,

Mello

 


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 8 of 13
(3,797 Views)

Hi Mellobuck,

 

Sorry about the confustion. As Chris mentioned, you shouldn't ever need to call the DLL manually. The reason the documentation did not show up for you is because of an error on my end while building the package for the toolkit.

 

We used the package format during our beta so that we could quickly serve up updates, and that worked great for us. As we released the product, we moved to the standard msi installers because that is what all of our engineering testing and QA processes are built around.

 

I've updated the download page for the toolkit to point to the msi installer instead:

http://ftp.ni.com/evaluation/labview/lvtn/NITPLATK2010.exe

 

Please uninstall the "Third Party Licensing & Activation Toolkit" packages (all four) from VI Package Manager first, and then install the toolkit using the msi installer.

 

Thanks and sorry about the confusion.

 

Jervin Justin

Partner Program Engineer

Jervin Justin
NI TestStand Product Manager
Message 9 of 13
(3,792 Views)

Good Morning Jervin,

Thank you for your swift and professional response, I will do just that.

-Mello


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 10 of 13
(3,789 Views)