cmarcus Posted July 26, 2011 Report Share Posted July 26, 2011 Hi Guys, I'm working on a project that will requirement to dynamically change an output trigger position based on speed to compensate for "time of flight" and a printing press speeds up / slows down. In trying spec how I would approach this, I stumbled on the Frequency Measurement based on HSC. I was hoping this utility would be a bit more robust or provide a bit more resolution of encoder frequency over the standard hardware configuration (100mS). I've tried playing with the utility but can't seem to get any data in the output variables. I also noticed that several veriable were reserved for future use. Is this utility currently active? If there is any info or example programs could someone point me in the right direction? Thanks -Chris Quote Link to comment Share on other sites More sharing options...
Jas Posted July 26, 2011 Report Share Posted July 26, 2011 Please see the attached program. This function is linked to HSC0 (I0), set as High Speed Counter. It gives the pulse frequency in DW0 with resolution and precision of 0.01 Hz. As a demonstration, the HSO of the snap-in can be connected to the HSI as defined in the HW config. V570 - HSC Frequency Measurement.vlp 1 Quote Link to comment Share on other sites More sharing options...
cmarcus Posted July 29, 2011 Author Report Share Posted July 29, 2011 Hey Jaz, Thanks for the sample program. Is there any documentation on how we're supposed to use it or specifically how it's supposed to work? When I run the sample program it seems to work, however it only seems to work with HSC with Reload and it seems to take over my reload counter's target value. For example, when running the Freq Measurement my counter will only count to 16-17 then reset, when I stop the Freq Measurement it will resume running to my target count. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.