hi everybody... im new in agilent and i am working in a VEE application. So i want to seep up a little this application. Because it consume the CPU.
This application has an infinite loop inside. this loop try to find a done.txt. This is maybe the problem... So i want to sleep the applications for a few millisecond... because i have a range of 5 seconds... between each done.txt.
So i want to implement a c++ function.
Sleep() from <windows.h>
So... there is a way to do this?¡??
This application has an infinite loop inside. this loop try to find a done.txt. This is maybe the problem... So i want to sleep the applications for a few millisecond... because i have a range of 5 seconds... between each done.txt.
So i want to implement a c++ function.
Sleep() from <windows.h>
So... there is a way to do this?¡??
Welcome to the forum!
In VEE there is a function block called "delay"
FLOW -> DELAY
The delay block works like sleep, you can pause the execution of the thread for a specified amount of time, allowing other processes to run.
Another way to do this if you are in the middle of an I/O session is a wait transaction. (for I/O you can read, write or wait) This works in the same way as delay.
However, the use of "sleep" commands is not recommended as a way to control timeouts when talking to instruments because it causes more delay that is needed in most every case. For this use the operation complete query instead.