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?
4 posts
• Page 1 of 1
Ruby output trigger?
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
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
-
Subquantum - Posts: 24
- Joined: Tue Mar 11, 2014 10:20 pm
- Location: USA
Re: Ruby output trigger?
It doesn't matter, you can send anything to the output.
I just do this:
output 0, nil
I just do this:
output 0, nil
- TheOm
- Posts: 103
- Joined: Tue Jan 28, 2014 7:35 pm
- Location: Germany
Re: Ruby output trigger?
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?
Thanks guys!
I thought it was going to be something simple like that.
I thought it was going to be something simple like that.
-
Subquantum - Posts: 24
- Joined: Tue Mar 11, 2014 10:20 pm
- Location: USA
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 68 guests