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