ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sentinel hardware key VI

Hi,

 

I am trying to use the sentinel hardware key by way of a labVIEW VI.  I have created the attached code.

 

The problem arises as the result returns all zero's or all 202's.  I spoke with a representative and they informed me that a zero is a good result and 202 is bad. 

 

It seeems to vary between these two results.

 

Does anyone know where I have gone wrong with my code?  Should I keep submitting the other non secret key parameters on each round?  Is the data formatted ok?

 

I've really hit a brick wall!

 

Thanks,

Sean

0 Kudos
Message 1 of 4
(4,083 Views)
Can't really tell much about the formating without the DLL documentation.

"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(4,072 Views)

Hi Jeff,

 

I tried attaching the dll previously but it's not allowed.

 

I've attached some headers here and  here's some more info:

 

Business Layer API - Quick Reference
❑SFNTSetContactServer - Sets the Sentinel Keys Server to be contacted for obtaining a license.
❑SFNTGetLicense - Obtains a license from the Sentinel Key having required developer ID and license ID.

 

C API function syntax

 

unsigned long int   status;
unsigned long int   DeveloperID;
unsigned long int   licID;
unsigned long int   flags;

status = SFNTGetLicense( DeveloperID,
                         SOFTWARE_KEY,
                         licID,
                         flags,
                         &licHandle );

if (status != SP_SUCCESS)   {
  // If a key with the requested developer ID and License ID
  // is not found or a valid license is not available,
  // then SFNTGetLicense will return an error.
}

Download All
0 Kudos
Message 3 of 4
(4,058 Views)
Sine the VI is in LabVIEW 2009 I can't look at it (yet).
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(4,035 Views)