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 output trigger?

For general discussion related FlowStone

Ruby output trigger?

Postby Subquantum » Thu Oct 09, 2014 9:02 pm

Can someone tell me the correct way send a trigger to an output in ruby?

For instance, if I want to send a boolean to a ruby output, I can use:
output 0,true
But if I want to send a trigger to a ruby output I can not use:
output 0,trigger
User avatar
Subquantum
 
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA

Re: Ruby output trigger?

Postby TheOm » Thu Oct 09, 2014 9:49 pm

It doesn't matter, you can send anything to the output.
I just do this:
output 0, nil
TheOm
 
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Ruby output trigger?

Postby tulamide » Thu Oct 09, 2014 10:08 pm

Any data sent by definition also sends a trigger (with one exception: If you directly change the output array's data). So, as TheOm said, simply send anything (including nil). Just make sure the output type is a trigger then, the information will get lost but the trigger will be used.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby output trigger?

Postby Subquantum » Thu Oct 09, 2014 10:52 pm

Thanks guys!

I thought it was going to be something simple like that.
User avatar
Subquantum
 
Posts: 24
Joined: Tue Mar 11, 2014 10:20 pm
Location: USA


Return to General

Who is online

Users browsing this forum: No registered users and 54 guests