Jump to content


Photo
- - - - -

Utils -> Immediate -> Freq Measurement based on HSC


  • Please log in to reply
2 replies to this topic

#1 cmarcus

cmarcus

    Member

  • Members
  • PipPip
  • 25 posts

Posted 26 July 2011 - 03:22 PM

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
  • 0

#2 Jas

Jas

    Advanced Member

  • Members
  • PipPipPip
  • 65 posts
  • LocationBoston, MA

Posted 26 July 2011 - 04:59 PM

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.

Attached Files


  • 0
Applications Engineer - Unitronics Inc.

#3 cmarcus

cmarcus

    Member

  • Members
  • PipPip
  • 25 posts

Posted 29 July 2011 - 05:18 PM

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.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users