Programming instructions

Switch
National Instruments Corporation 2-17 Multisim Component Reference Guide
To specify the key that controls the switch:
1. Double-click on the switch and select its Value tab.
2. Select the key in the Key for Switch drop-down list and click OK.
To toggle the switch on or off using the keyboard, press the identified key.
To toggle the switch on or off using the mouse, hover the cursor over the switch’s arm and
click when the arm takes on a thickened appearance.
Non-interactive Switches
A small number of switches, for example, time delayed switches, current controlled switches
and voltage controlled switches are not interactive components. For these components, the
contents of the
Val u e tab will be different than those described above, and will vary depending
on the selected component.
Change the settings for these devices in the usual manner; double-click on the component,
select the
Value tab, and enter the desired parameters.
2.4.1 Switch Packs
DIP switch packs are available in footprints that contain from 2 to 10 switches. These devices
are interactive components that can be closed or opened (turned on or off) by pressing a key
on the keyboard, or by using the mouse. The black circle on the switch indicates the ON
position for switch number 1 in the pack.
You can set a different activation key for each switch in the pack.
To set switches’ activation keys:
1. Double-click on the DIP switch pack to display its properties dialog box and click on the
Valu e tab.
2. Enter the desired key for each switch in its corresponding field (Switch 1 Key, Switch 2 Key,
etc.) and click
OK.
To toggle a specific switch on or off using the keyboard, press the identified key.
To toggle a specific switch on or off using the mouse, hover the cursor over the desired switch
and click when the switch is highlighted by a rectangle and cursor changes to a hand symbol.
Note Unused switches in a switch pack should be left in the OFF position for simulation.
For a discussion of interactive simulation, refer to the
Multisim User Guide.
ComponentRef.book Page 17 Thursday, December 7, 2006 10:12 AM