simple ruby question!

For general discussion related FlowStone
Post Reply
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

simple ruby question!

Post by Jay »

hi all

If i have 2 values going into ruby but don't want them to execute the code within until it receives a trigger on a third input how is that done? currently i am using sample and hold components outside the ruby window!

could someone show me please?

Thanks :)
User avatar
TrojakEW
Posts: 111
Joined: Sat Dec 25, 2010 10:12 am
Location: Slovakia

Re: simple ruby question!

Post by TrojakEW »

It's simple. You need to define and event method. Look in the example attached. You can also check user guide at page 131. That's how I learned that.
Attachments
ruby_trig.fsm
(342 Bytes) Downloaded 898 times
Jay
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm

Re: simple ruby question!

Post by Jay »

Thanks TrojakEW

yeh i was trying to do it from reading the guide but i seem to be placing things the wrong way round :oops: but this is a good help!

thanks again!
Post Reply