Support

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 basic examples

For general discussion related FlowStone

Ruby basic examples

Postby gvalletto » Wed Mar 13, 2019 7:38 pm

Here I put a scheme with small Ruby examples for beginners (like me...). You can add anything related.
Thanks to @Tulamide by his help.
Attachments
Ruby basics fs3081.fsm
(2.92 KiB) Downloaded 836 times
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby basic examples

Postby RJHollins » Wed Mar 13, 2019 11:13 pm

Thanks gvalletto ... this one worked for me.

This is a helpful idea for many of us not experienced doing programing often.

With my latest little project, I leaned more to using RUBY for particular functions needed.

With that, I spent most my time scanning several RUBY sites for syntax details ... particularly those that relate to
FS version of RUBY. I get stuck on some of the basics, but once I get going, it gets better.

What's amazing is how powerful RUBY brings to the design compared to assembling PRIMITIVEs.

Maybe I can pull some of my basic RUBY routines to add to this.

Thanks again.
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Ruby basic examples

Postby gvalletto » Wed Mar 13, 2019 11:53 pm

Your wellcome. Any collaboration of anybody will be good for all of us... Another benefit of those schemes is to bring ready library so no to have to type code from scratch, so it save work time.

Also gurus are wellcome ;)
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina

Re: Ruby basic examples

Postby Nickateenbeats » Thu Mar 14, 2019 1:07 am

Here is some more Ruby code snippets, i didn't write them but im sure some of you could find these useful.
Attachments
Schematic1.fsm
(2.89 KiB) Downloaded 829 times
Nickateenbeats
 
Posts: 37
Joined: Tue Jul 24, 2018 11:32 pm

Re: Ruby basic examples

Postby gvalletto » Fri Mar 15, 2019 11:13 pm

Hi again!
This is the Ruby Sample and Hold found in the User Guide of FS (page 143):
S&H User Guide.JPG
S&H User Guide.JPG (21.28 KiB) Viewed 9818 times


And this is a simplification that I made:
S&H.JPG
S&H.JPG (30.81 KiB) Viewed 9818 times


It works fine here... what do you think about? Any risk to use it?
User avatar
gvalletto
 
Posts: 117
Joined: Fri Jul 09, 2010 10:15 pm
Location: Argentina


Return to General

Who is online

Users browsing this forum: No registered users and 60 guests