02-13-2008 02:33 PM
02-22-2008 07:15 AM
02-22-2008 07:28 AM
Hi macbeth, sorry for the last msg, I send it without finished....![]()
I work with GP timers without any problem. There is a program with timers in the examples! To understand the parameter of GP Control Timer VI, see in the Device Driver and System services, page 8-36 and 8-37. If you want a single delay, you can work only with Width register. To read the value of the Counter register, is a good choice to make it through Inline C Node. ![]()
02-25-2008 10:10 AM
Thanks C.
I did read through that section but found it a bit vague for what I'm trying to do. I'm not a C programmer.
Basically I want to use a timer to time the duration of another function I have.
For example I want to set up a timer, enable it, execute my function, read the timer, and get the difference between the Start & Stop values to determine the time duration that my function took to execute.I'd like to do this with microsecond resolution.
I couldn't find out what the base clock of the timer is or how to change it if possible. I believe it is 133 MHz which is far too fast for my usage.
Thanks.
M
02-27-2008 05:14 PM
Hi Macbeth,
If you are interested in checking for the performance of your code, I would suggest using the in built cycle counting facility. In VisualDSP++, go to help and search for "Basic Cycle Counting Facility" or START_CYCLE_COUNT. This would be a better way to do benchmarking. Hope this helps.
03-26-2008 09:31 AM
Hi Macbeth, Can you solve your problem with the answer of Nitin? If you still interesting in use the GP timers, let me know to help you with the settings. ![]()
See you...!
Caribbean