The software protection feature
is an identification key that is programmed into the firmware. Your software
must look for this key in order to implement the protection. It should only
be necessary to do this during initialization since the frame grabber cannot
be swapped while the software is running. The examples below assume that
your software protection number is 56 hex.
CX Series
The command is read_key().
It can be found on page 52 of the Software Manual. You can use it as follows.
Assuming the value of your protection key is 56 hex. You could use the
following code fragment.
if ( read_key() !=
0x56 )
{
printf("You cannot run this software on this
frame grabber\n");
exit(0);
}
PX Series
The command is ReadProtection().
It can be found on page 102 of the User Manual.
if ( ReadProtection(fgh)
!= 0x56 )
{
printf("You cannot run this software on this
frame grabber\n");
exit(0);
}
PXC Series
The command is ReadProtection().
It can be found on page 99 of the User Manual.
if ( pxc.ReadProtection(fgh)
!= 0x56 )
{
printf("You cannot run this software on this
frame grabber\n");
exit(0);
}
PXD Series
The command is ReadProtection().
It can be found on page 214 of the User Manual.
if ( pxd.ReadProtection(fgh)
!= 0x56 )
{
printf("You cannot run this software on this
frame grabber\n");
exit(0);
}
|