10/13/2020 10:58 PM | |
Joined: 4/3/2019 Last visit: 11/8/2024 Posts: 116 Rating: (1) |
Jacek sorry but your calcuclation gives me "0" or value goes from 0 to 10...math dosen't work or I am still doing something wrong, please take a look at video.
Attachmentbandicam 2020-10-13 22-54-52-454.avi (211 Downloads) |
10/13/2020 11:03 PM | |
Joined: 4/3/2019 Last visit: 11/8/2024 Posts: 116 Rating: (1) |
qwazee thank you for advise it is 6.4 ms - attachement |
10/14/2020 7:06 PM | |
Joined: 4/3/2019 Last visit: 11/8/2024 Posts: 116 Rating: (1) |
Dear Jacek finally I have found mistake, thank you for help. The mistake was that I was placing MOVE before substraction. When it was before I get calculation result "0" - see attachemnt end of video. When I moved it as you wrote - SUBSTRACT before MOVE then it start to work. This was the most important words for me. Thank you. Now as I understand OB interrupt block read ones per second "new value", instruction MOVE change after one second "new value" to "old value", next substraction is beeing done also after one second and this gives result = 10 hz I am still not sure why it works that way, I know that program works from top to down. The best way of learnig for me is working with the problem. Anyway thank you for help and patience Jacek It is great to have this forum and pepole like you Einstein and Jacek
Attachmentbandicam 2020-10-14 18-44-26-161.avi (183 Downloads) |
This contribution was helpful to2 thankful Users |
10/14/2020 8:07 PM | |
Joined: 3/30/2020 Last visit: 11/13/2024 Posts: 4954 Rating: (1011) |
Sorry for a late response. The filter setting has the ability to kill a fast pulse. The default is 6.4ms is a very bad setting for most applications that need HSC functions. The lazy way is to reduce the filter to the smallest value that is offered as a filter. The more proper way is to calculate the filter time that you require. As a rule-of-thumb, I use a factor of 10. Assume fmax is the fastest possible pulse that the input should detect. Assume tfilter is the input filter time. tfilter = 0.0064s is the default.
|
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to2 thankful Users |
Follow us on