Class WsRelay
java.lang.Object
org.wildstang.framework.io.outputs.Output
org.wildstang.framework.io.outputs.DiscreteOutput
org.wildstang.hardware.roborio.outputs.WsRelay
Controls a relay.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets relay state to a value based off the current state.Methods inherited from class org.wildstang.framework.io.outputs.DiscreteOutput
getValue, setValue
-
Constructor Details
-
WsRelay
Constructs the relay from config.- Parameters:
p_name- Descriptive name of the relay.channel- Hardware port number the relay is connected to.
-
WsRelay
Constructs the relay from config.- Parameters:
p_name- Descriptive name of the relay.channel- Hardware port number the relay is connected to.direction- Relay operation direction.
-
-
Method Details
-
sendDataToOutput
public void sendDataToOutput()Sets relay state to a value based off the current state.- Specified by:
sendDataToOutputin classOutput
-