290 likes | 320 Views
LabVIEW 基礎課程 ( 三 A). CH 9 字串和文件 IO. Using String Functions(1). Using String Functions(2). Using String Functions(3). 練習 9-1: String Construction. Parsing Functions. Special Characters Used by the Match Pattern Function. 檔案存取. 練習 9-3: Writing to a Spreadsheet File.
E N D
User Actions on the Front Panel Block Diagram Execution Why use Events? Synchronize
The Event Structure • Examples of User Interface (Static) Events • Pressing a button on the mouse • Pressing a key on the keyboard • Value (Signaling) Property can generate a programmatic event
Parts of an Event Structure • Event Selector Label — identifies event case viewed • Timeout— value in ms to wait for events; default value is –1 (indefinite) • Dynamic Event Terminals — used for dynamic event registration • Default Tunnel Values —new type of tunnel which allows unwired cases to provide default values
Parts of an Event Structure (continued) • Event Data Node — identifies the data LabVIEW provides when the event occurs; similar to the Unbundle By Name function • Event Filter Node — identifies the subset of data available in the Event Data Node that the event case can modify
Event Structure Basic Usage • Normally used in a While Loop • Sleeps and handles exactly one event per iteration • Event Data available in terminals on structure’s left border • Can right-click on Event Data and show only the terminals you need
Event Structure Configuration • Use a dialog box to configure events byright-clicking the Event structure border and selecting Edit Events Handled by This Case from the shortcut menu
Edit Events Dialog 1 • Configured Events • Event Sources • Events 2 3