09-11-2008 04:46 AM
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
09-11-2008 06:31 AM
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?
09-11-2008 06:34 AM
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
09-11-2008 06:39 AM - edited 09-11-2008 06:39 AM