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

... more Ruby

For general discussion related FlowStone

... more Ruby

Postby unkargherth » Sat Nov 17, 2012 12:21 am

Sorry guys, probably is some stupid question, but

How to send a trigger from a Ruby component?
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
unkargherth
 
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

Re: ... more Ruby

Postby MyCo » Sat Nov 17, 2012 1:45 am

output x,y

x is the output number, and y doesn't matter
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: ... more Ruby

Postby unkargherth » Sat Nov 17, 2012 3:33 am

So sending any (non nil) output to a trigger sends the trigger? .... nice :)

Thanks MyCo
Free your memory, .. with a free(). Like a pointer
Cast a pointer into an integer and it becomes the integer...
Cast a pointer into a struct and it becomes the struct...
A pointer can overflow... or can crash...
Be a pointer my friend
unkargherth
 
Posts: 29
Joined: Fri Apr 08, 2005 9:46 pm

Re: ... more Ruby

Postby MyCo » Sat Nov 17, 2012 7:49 am

you can also send nil... it doesn't matter. The "output" method itself sends the trigger. If you don't want to send trigger on the outputs, you have to write the value into @outs.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany


Return to General

Who is online

Users browsing this forum: Google [Bot] and 67 guests