ZeCarlos Posted April 22, 2013 Report Share Posted April 22, 2013 hello, I'm zecarlos sorry for the stupid question but my head does not give more i want reset a memory long ML to 0 after a count 400000 pulses for example or some times to reseting the encoder that i have conected in fast imput. someone help. best regards zecarlos Quote Link to comment Share on other sites More sharing options...
Michael_P Posted April 22, 2013 Report Share Posted April 22, 2013 Hi Zecarlos, To reset the HSC at a certain number of pulses you can use the "High Speed Counter Reload" found in the hardware configuration. Reload enables you to immediately load 0 into a high-speed counter when the counter value reaches a target value. Note that you cannot set the Reload input to Frequency Measurement. Please see the blow image, You can find further instruction in the help file if you reference high speed counter in the search tab. Quote Link to comment Share on other sites More sharing options...
Walkerok Posted April 22, 2013 Report Share Posted April 22, 2013 All you need to do is compare that when you ML is greater than or equal to your desired value "direct store" the constant of the number 0 to the ML. This effectively reset the value to start the process al over again. Keith Quote Link to comment Share on other sites More sharing options...
ZeCarlos Posted April 22, 2013 Author Report Share Posted April 22, 2013 thank for replay Mister´s Michael_P and Walkerok had already tested the direct store but did not work (ML to #0), the function High Speed Counter Reload never tested and looks functional. tomorrow i will test the two options more carefully and then I say something , ok I also discovered a function "reset numeric" that might work (?) best regards zecarlos Quote Link to comment Share on other sites More sharing options...
ZeCarlos Posted April 23, 2013 Author Report Share Posted April 23, 2013 upps... the "direct store" works fine #0 to ML , i spent a day testing ML to #0 thank you again best regards 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.