
Chapter IV-10 IV-10Advanced Topics Regular Modules............................................................................................................................................. 222 Regular Modules in Action Procedures and Hook Functions .......................................................... 223 Regular Modules and User-Defined Menus........................................................................................ 224 Independent Modules .................................................................................................................................... 224 Independent Modules - A Simple Example......................................................................................... 225 SetIgorOption IndependentModuleDev=1 .......................................................................................... 225 Independent Module Development Tips............................................................................................. 225 Independent Modules and #include ..................................................................................................... 226 Limitations of Independent Modules ................................................................................................... 226 Independent Modules in Action Procedures and Hook Functions.................................................. 226 Independent Modules and User-Defined Menus ............................................................................... 227 Independent Modules and Popup Menus ........................................................................................... 227 Regular Modules Within Independent Modules ................................................................................ 228 Calling Routines From Other Modules ................................................................................................ 229 Using Execute Within an Independent Module.................................................................................. 229 Independent Modules and Dependencies ........................................................................................... 229 Independent Modules and Pictures...................................................................................................... 230 Making Regular Procedures Independent-Module-Compatible...................................................... 230 Sound................................................................................................................................................................ 230 Movies .............................................................................................................................................................. 230 Playing Movies......................................................................................................................................... 231 Creating Movies....................................................................................................................................... 231 Extracting Movie Frames........................................................................................................................ 231 Movie Programming Examples............................................................................................................. 231 Timing............................................................................................................................................................... 232 Ticks Counter ........................................................................................................................................... 232 Microsecond Timer.................................................................................................................................. 232 Packages ........................................................................................................................................................... 232 Creating a Package .................................................................................................................................. 232 Lightweight Packages ............................................................................................................................. 234 Managing Package Data ................................................................................................................................ 234 Creating and Accessing the Package Data Folder .............................................................................. 235 Creating and Accessing the Package Per-Instance Data Folders...................................................... 236 Saving Package Preferences .......................................................................................................................... 237 Saving Package Preferences in a Special-Format Binary File............................................................ 237 Saving Package Preferences in an Experiment File ............................................................................ 240 Creating Your Own Help File ....................................................................................................................... 241 Syntax of a Help File ............................................................................................................................... 242 Creating Links .......................................................................................................................................... 242 Checking Links......................................................................................................................................... 243 Creating Formatted Text................................................................................................................................ 244 Printf Operation ....................................................................................................................................... 245 sprintf Operation ..................................................................................................................................... 245 fprintf Operation...................................................................................................................................... 246 Chapter IV-10 — Advanced Topics wfprintf Operation .................................................................................................................................. 246 Example Using fprintf and wfprintf ..................................................................................................... 246 Client/Server Overview.................................................................................................................................. 246 Apple Events ............................................................................................................................................ 247 Apple Event Capabilities................................................................................................................. 247 Apple Events — Basic Scenario...................................................................................................... 247 Apple Events — Obtaining Results from Igor ............................................................................. 247 Apple Event Details ......................................................................................................................... 248 AppleScript............................................................................................................................................... 249 Executing Unix Commands on Mac OS X ........................................................................................... 250 ActiveX Automation................................................................................................................................ 250 Calling Igor from Scripts................................................................................................................................ 251 Network Communication.............................................................................................................................. 252 URLs.................................................................................................................................................................. 252 Usernames and Passwords..................................................................................................................... 253 Supported Network Schemes ................................................................................................................ 253 Percent Encoding ..................................................................................................................................... 253 Safe Handling of Passwords.......................................................................................................................... 254 Network Timeouts and Aborts ..................................................................................................................... 255 Network Connections From Multiple Threads .......................................................................................... 255 File Transfer Protocol (FTP)........................................................................................................................... 257 FTP Limitations.......................................................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages100 Page
-
File Size-