Rane HAL1x Design Guide - Page 52

Selector, One-Of, One-Of Selector

Page 52 highlights

HAL SYSTEM DESIGN GUIDE l Selector: In this option, you can configure one or more Logic In ports to control the state of a corresponding selector control in the Control palette of the Processing Workspace. You can connect a physical device to any or all of the Logic In ports and configure the ports in Halogen so that they make the desired selection according to the state of the physical device. One-Of Selector One type of physical device is a multi-position switch, which can connect one common contact to any one of a set of other contacts. For example, suppose you have a four position switch, which has four contacts and a common. When the switch is in position one, the switch connects contact number one with common, leaving the other three contacts open. When the user changes the switch to position two, it disconnects contact one and connects contact two to common, and so on. In Halogen, we refer to this type of physical switch as a 'One-Of' selector. It connects one (and only one) of the contacts in a set to a common pin on the switch. To use this type of switch with the DR4 Logic In ports, configure the Logic In ports to be a selector (Select in the drop down box) with the desired number of ports (four in our example) and set the type to be One-Of. When the connection to a Logic In port is open (not connected to ground), the hardware pulls the input to a logic high value (5 V). When a connected device pulls the port below the logic low threshold (specified in the DR4 data sheet), the port senses this and, when configured as part of a one-of selector, sets the value of the corresponding selector control in the Processing Workspace. The default value of a one-of Selector control is to select the first item in the list of selections. The example below shows how a DR4 one-of selector works. The following diagram shows how to wire a multi-position switch to a set of DR4 ports. The image below shows the corresponding Selector control in the Control palette of the Processing Workspace. It also includes the DR4 property dialog showing the Logic In port configuration: 48

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

l
Selector:
In this option, you can configure one or more Logic In ports to control the state of a corresponding
selector control in the Control palette of the Processing Workspace. You can connect a physical device
to any or all of the Logic In ports and configure the ports in Halogen so that they make the desired
selection according to the state of the physical device.
One-Of Selector
One type of physical device is a multi-position switch, which can connect one common contact to any
one of a set of other contacts. For example, suppose you have a four position switch, which has four
contacts and a common. When the switch is in position one, the switch connects contact number one
with common, leaving the other three contacts open. When the user changes the switch to position
two, it disconnects contact one and connects contact two to common, and so on.
In Halogen, we refer to this type of physical switch as a ‘One-Of’ selector. It connects one (and only
one) of the contacts in a set to a common pin on the switch. To use this type of switch with the DR4
Logic In ports, configure the Logic In ports to be a selector (
Select
in the drop down box) with the
desired number of ports (four in our example) and set the type to be
One-Of
. When the connection to a
Logic In port is open (not connected to ground), the hardware pulls the input to a logic high value (5
V). When a connected device pulls the port below the logic low threshold (specified in the DR4 data
sheet), the port senses this and, when configured as part of a one-of selector, sets the value of the cor-
responding selector control in the Processing Workspace.
The default value of a one-of Selector control is to select the first item in the list of selections.
The example below shows how a DR4 one-of selector works. The following diagram shows how to
wire a multi-position switch to a set of DR4 ports.
The image below shows the corresponding Selector control in the Control palette of the Processing
Workspace. It also includes the DR4 property dialog showing the Logic In port configuration:
HAL SYSTEM DESIGN GUIDE
48