Hi Chang85,
This would depend on what hardware you are doing and what type of measurement you want to make (a power spectrum, a simple P=IV power measurement, etc...). Also, which operating system are you running on and what programming environment do you prefer?
In any case, one approach would be to use a Wait function in a while loop or for loop.
You could also create a program that automatically executes when opened and closes when finished and use the Windows Scheduled Tasks from the control panel to automatically run the program every hour.
Let me know more details of your application and I'd be happy to offer further advice.
Regards,
John Bongaarts