LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to protect my cvi application with a sentinel hardware key

One minute after starting my protected cvi application i get the Sentinel message Error 2 "Hardware key not found". But the key is already connected!

I use the following components:
- CVI 6.0
- Sentinel SuperPro Toolkit 6.3.1.0
- Sentinel System Driver 5.41
- Hardware key Sentinel SuperPro parallel key

I try to solve the problem by:
- using the Windows function ProcessSystemEvents
instead of RunUserInterface
- convert the UIR-Files with the "UI to Code" converter
but this don't solve the problem.

Your help ist greatly appreciated
Georg Rosenfelder
0 Kudos
Message 1 of 4
(3,201 Views)
Any reasons you did the 2 things that you mention?


vishi

rosegede wrote:
> One minute after starting my protected cvi application i get the
> Sentinel message Error 2 "Hardware key not found". But the key is
> already connected!
>
> I use the following components:
> - CVI 6.0
> - Sentinel SuperPro Toolkit 6.3.1.0
> - Sentinel System Driver 5.41
> - Hardware key Sentinel SuperPro parallel key
>
> I try to solve the problem by:
> - using the Windows function ProcessSystemEvents
> instead of RunUserInterface
> - convert the UIR-Files with the "UI to Code" converter
> but this don't solve the problem.
>
> Your help ist greatly appreciated
> Georg Rosenfelder
0 Kudos
Message 2 of 4
(3,201 Views)
Hallo Vishi,

thank you for your answer.


The reason for the two trail were:

1. ProcessSystemEvents:
while (!gQuit) {
ProcessSystemEvents;
Sleep (10);
}

to reduce the Processor Time for the CVI Application. I hope to free more Processor Time for communication with the parallel hardware key.

2. UIR-Files convert with the "UI to Code" converter:

A created a tiny CVI test project. This project had only one panel and one Quit-button. If i use the UIR- File i got the Sentinel Error two. If i use the *.h and *.c -File created by the "UI to code converter" the project was running well.

Georg Rosenfelder
0 Kudos
Message 3 of 4
(3,201 Views)
If you are not doing anything in your code, then RunUserInterface should
not take any significant CPU resources. Reason I ask you why you did
what you did, was to make sure that you are suspecting that your program
is taking more CPU resources and not giving enough time for your
hardware key communications.

Looking at this hardware key it seems you are using their API from CVI
to talk to the key. I would suggest writing a simple program (maybe that
company provides an example) without any GUI to do basic I/O stuff, to
make sure everything is working fine.


vishi

rosegede wrote:
> Hallo Vishi,
>
> thank you for your answer.
>
>
> The reason for the two trail were:
>
> 1. ProcessSystemEvents:
> while (!gQuit) {
> ProcessSystemEvents;
>
Sleep (10);
> }
>
> to reduce the Processor Time for the CVI Application. I hope to free
> more Processor Time for communication with the parallel hardware key.
>
> 2. UIR-Files convert with the "UI to Code" converter:
>
> A created a tiny CVI test project. This project had only one panel and
> one Quit-button. If i use the UIR- File i got the Sentinel Error two.
> If i use the *.h and *.c -File created by the "UI to code converter"
> the project was running well.
>
> Georg Rosenfelder
0 Kudos
Message 4 of 4
(3,201 Views)