View Single Post
  #7   Spotlight this post!  
Unread 05-03-2011, 00:34
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Individual Control of Each Spike output ?

Quote:
Originally Posted by Joe Ross View Post
Have you tried this? It looks like kOn with direction kBoth will throw an exception.
Ugh you are right. What a pain.

You're probably best duplicate your own custom Relay class, and modify the following to make it work...

Lines 220 to 228:

Code:
            case Value.kOn_val:
                if (m_direction == Direction.kBoth) {
                    m_module.setRelayForward(m_channel, true);
                    m_module.setRelayReverse(m_channel, true);
                } else if (m_direction == Direction.kForward) {
                    m_module.setRelayForward(m_channel, true);
                } else if (m_direction == Direction.kReverse) {
                    m_module.setRelayReverse(m_channel, true);
                }
                break;
__________________
In life, what you give, you keep. What you fail to give, you lose forever...