If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Ruby Counter
31 posts
• Page 1 of 4 • 1, 2, 3, 4
Ruby Counter
I thought it would be good if had a "standard" Ruby Counter,
that everyone can use and modify straight away.
This is what i got so far. Not much, but it works.
I'd like to start with a re-set trigger. I can't work it out yet...keep failing.
that everyone can use and modify straight away.
This is what i got so far. Not much, but it works.
I'd like to start with a re-set trigger. I can't work it out yet...keep failing.
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Ruby Counter
Tried with timer/delay after afterload?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: Ruby Counter
not yet.tried lots of things...its really fun to fail at this.
Learning heaps but nothing i try works
next attempt in 12 hours...bummer..
Learning heaps but nothing i try works
next attempt in 12 hours...bummer..
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Ruby Counter
That is the same result I can get.
We are calling Ruby time.
I decided to make a tick counter instead, with my homebrew seq method.
Hopefully trog might pop in here and shed some light on this.
The current counter u have made gives the time since the Ruby component is turned on I think.
All success
We are calling Ruby time.
I decided to make a tick counter instead, with my homebrew seq method.
Hopefully trog might pop in here and shed some light on this.
The current counter u have made gives the time since the Ruby component is turned on I think.
All success
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
Re: Ruby Counter
nix wrote:decided to make a tick counter instead, with my homebrew seq
Yeh I somehow missed it, or forgot it, but it's doing the trick for me at the moment.
The homebrew seq is great man...I'm always using it, to check something or to pull something out
A great "playground" for ruby noobs to cut their teeth...
I know you've taken it underground, but if it dosn't work out there, seriously consider
expanding the whole thing and turning it into a massive "tweakable" tutorial.
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Ruby Counter
I have this...
Not sure it suits your needs...
Not sure it suits your needs...
"Essential random order for chaotic repetitive sequences"
-
tektoog - Posts: 141
- Joined: Sat Oct 30, 2010 11:49 pm
- Location: Geneva - Switzerland
Re: Ruby Counter
tektoog wrote:Not sure it suits your needs...
Thanks mate. Unfortunatly, no, it dosn't suit, as your cheating...
The general Plan is for a ruby module with in's/out's like these.
I don't mind spending the next 6 months, chipping away at this..... all good...great fun
It's just that a "counter" is a "crucial" building block, and i thought it might be better
to create it faster, so people can get on with more important stuff.
But yeh, I'm enjoying it. Spent another hour yesterday failing, trying from other perspectives.
I'll get it one day.
Good entertainment for the "Ruby guru's" as well, watching a ruby noob struggle with 1+1=2.
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Ruby Counter
billv wrote:it dosn't suit, as your cheating...
Hehe, ok...
I wasn't sure if it was a "total ruby counter" you were after...
now, I know!
I'll try to get in if I can...
"Essential random order for chaotic repetitive sequences"
-
tektoog - Posts: 141
- Joined: Sat Oct 30, 2010 11:49 pm
- Location: Geneva - Switzerland
Re: Ruby Counter
tektoog wrote:I'll try to get in if I can..
Cheers mate. don't sweat it. No real hurry.
It's just so weird. I got a signal going in, and all i want to do is stick a number on each signal.
And I still can't do it....
I'm glad I've got Nix's example, which clearly shows a method that semms to work, so i can work of
that a bit.
It's just real dissapointing I still can't work out how to do it on my own.
I think it's best if i maybe fork out some cash for a few lessons by a pro tutor or something.
Cause it's just not happening here. The skills i picked up doing visual basic a few years back
are not returning and i'm sick of waiting for them to turn up
The learning curve is just too much at the moment........hhhhhmmmmmmm
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Ruby Counter
Here's a counter that should cover most bases...
...it's not necessarily the most efficient code - but written with lots of comments that will hopefully make it useful to learn from.
One little note of caution though...
If you are working entirely with 'green' inputs/outputs, a Ruby based counter like this one may not be the best solution. The stock counters will be super-fast compiled 'C' routines, whereas Ruby has to run in its interpreter - so it's probably best to carry on using the old ones, unless your schematic has special requirements that need extra features.
...it's not necessarily the most efficient code - but written with lots of comments that will hopefully make it useful to learn from.
One little note of caution though...
If you are working entirely with 'green' inputs/outputs, a Ruby based counter like this one may not be the best solution. The stock counters will be super-fast compiled 'C' routines, whereas Ruby has to run in its interpreter - so it's probably best to carry on using the old ones, unless your schematic has special requirements that need extra features.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
31 posts
• Page 1 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 79 guests