LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert Sleep function

Dear Forummembers,

 

I'am busy to write an interface program in cvi.

I tried to use the windows.h file, and insert the sleep(1) function. I'am using this function in an CVI callback function from a push button.

After compiling the project he gives me a lot of errors assisgned to the windows.h file.

I want to use the sleep command because the pc isn't using a lot of CPU time.

How to solve this issue easily?  

 

Thank you,

Jef

 

 

0 Kudos
Message 1 of 4
(3,449 Views)

Normally CVI can treat windows.h without problems, unless there is some error due to an incorrect placement of the file in the list of #includes.

Where is the include file your are including located on disk? Is the one found in the SDK shipped with CVI or another one? Which version of CVI are you using? Is it the base or full package?

 

Can you report here some of the errors you are finding?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,444 Views)

Thank you for your answer.

But i have just find out the problem.

You have to place the windows.h file at the hight possible place in your source file.

Jef

0 Kudos
Message 3 of 4
(3,442 Views)
Yes, this can prevent the errors related to the order the #include files are placed.
Message Edited by Roberto Bozzolo on 09-11-2008 01:39 PM


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,438 Views)