This flow diagram will create a light that flashes on and off five ... - DOC

Document Sample
This flow diagram will create a light that flashes on and off five ... - DOC Powered By Docstoc
					Using Interrupts
                                                                            This flow diagram will
                                                                            create a continuous two
                                                                            tone siren that can be
                                                                            interrupted to play a
                                                                            continuous note for one
                                                                            second.

                                                                            After playing the note, the
                                                                            flow returns to the
                                                                            continuous two tone siren.




There are two key parts to this flow diagram.

                This ‘interrupt’ command is used to indicate the start of the interruption. Drag it onto
                a cell and then double-click on it to select which input is going to trigger off the
                interruption.

               The ‘Interrupt Setup’ command needs to be dragged onto the flow diagram after the
               ‘Start’ command. Double-click on it and make sure that the Interrupt Setup is
               ‘Enabled’.

Click on the ‘Digital Panel’ icon          and then the green ‘Run’ button.

                        The Digital Panel shows the state of the inputs and outputs. You can simulate
                        the inputs being ‘on’ by pressing the ‘F’ function keys on the keyboard.

                        ‘F2’   will simulate   an input at   Input   0
                        ‘F3’   will simulate   an input at   Input   1
                        ‘F4’   will simulate   an input at   Input   2
                        ‘F5’   will simulate   an input at   Input   3
                        ‘F6’   will simulate   an input at   Input   4
                        ‘F7’   will simulate   an input at   Input   5
                        ‘F8’   will simulate   an input at   Input   6
                        ‘F9’   will simulate   an input at   Input   7

The flow diagram should make an annoying two-tone beep until you press the ‘F’ key that corresponds
to the ‘Interrupt’ input.

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:5
posted:9/11/2012
language:English
pages:1