|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||||
|
||||||
|
Re: Relay/Spike Problems?
You're creating your Spike Subsystem in both of your commands. This is creating a relay object twice, both referencing the same hardware relay port. The second instance is throwing an exception. I suspect if you scroll up in the output window you will see a stack trace.
You should create a static instance of your subsystem in commandbase, and then reference the subsystem in your commands (without creating new objects). |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|