These inputs on the DR5 are similar to the HAL’s Logic In ports. You can configure each of the 8 input ports in one of 2 ways:
- Toggle: This configuration allows you to control the state of a toggle control in the Hardware Controls palette of the Processing Workspace. You can configure each port type to be either Momentary or Latching, which tells HAL how to process the port’s input signal. A complete description of Momentary and Latching toggle inputs is in the Halogen Help file.
- Command: This option allows the Switch Input port to trigger a Command control in the Hardware Controls palette of the Processing Workspace, which you can link to one or more Command controls such as a Command preset or a linkable button in a processing block property dialog.
When nothing is connected to a Switch Input port, the hardware internally pulls the port to logic high (5 V). To trigger the command, a hardware device connected to the Switch Input port must pull the port voltage lower than the logic low threshold. One way to do this is to connect a physical normally open momentary push button switch to the port. When the end user pushes the button, the switch contacts close, pulling the Switch Input port low, which causes the Command to trigger. When the user releases the button, the port signal returns high and the port is ready for the next command.
In addition, you can configure port 8 to serve as a ‘lock’ input, allowing the user to selectively enable or disable all seven input ports with a physical switch attached between Switch Input port 8 and ground (G). When configured as a lock, the DR5 disables Switch Input ports 1 - 7 when the switch is closed and enables the ports when the switch open.
Note: To use the lock port, you must configure Switch Input 8 as a Toggle type of input. Once you have enabled the ‘lock’ port, you cannot move Switch Input port 8 or change its type to Command.
The DR5 provides eight LED output ports that are coupled to the state of the corresponding DR5 switch input controls. You can connect an LED to each port to have a visual indicator of the DR5 operations. The operation of an LED Output port is governed by the Switch Input port configuration:
- Toggle: If the corresponding Switch Input port is configured as a toggle, the LED Output port follows the state of the Toggle control in the Hardware Controls palette of the Processing Workspace. When the Toggle control is checked, the LED Output is high, turning the connected LED on. When the Toggle control is unchecked, the connected LED is off.
- Command: When the corresponding Switch Input port is configured as a Command, the LED Output port follows the state of the Switch Input signal. When the switch is closed, the LED Output is high, turning the connected LED on. When the switch is open the connected LED is off.