
page Contents – 3
GPC-3 / Jan 2006
GPC-3 CONTENTS
5 LIO Example Using Device Properties ................................................................... 14
5.1 Configure the Source Signal in XPoint............................................................ 14
5.2 Configure the GP-16P LIOs ............................................................................ 15
5.3 Create the Mic Control Script Using Script Wizard ......................................... 17
5.4 Reviewing the Script Wizard Code.................................................................. 18
5.5 Beyond the Script Wizard ................................................................................ 19
6 What is the Script Editor? ....................................................................................... 20
6.1 Script Editor Features...................................................................................... 20
6.2 Third Party Editors........................................................................................... 21
7 Creating Custom Scripts......................................................................................... 22
7.1 Getting the Example File ................................................................................. 22
7.2 Example Script Design .................................................................................... 22
7.3 Auto-generated Script Components................................................................ 23
7.4 Custom Start up Subroutine ............................................................................ 23
7.5 Example Script Structure................................................................................. 24
7.6 Example Script - Variables and Constants ..................................................... 25
7.7 Example Script - Subroutines.......................................................................... 27
7.8 Example Script - Actions ................................................................................. 28
7.9 Custom Scripting Suggestions ........................................................................ 29
7.10 Scripting Router Control ................................................................................ 29
7.11 Scripting Surface Control .............................................................................. 29
7.12 Basic Surface Functions................................................................................ 29
7.13 Advanced Surface Functions ........................................................................ 30
7.14 Example surf_talk Commands ...................................................................... 30
8 GP-16P Scripting Language Overview................................................................... 31
8.1 Case Sensitivity ............................................................................................... 31
8.2 Comments ....................................................................................................... 31
8.3 Actions ............................................................................................................. 31
8.4 Global Variables .............................................................................................. 31
8.5 Local & Static Local Variables......................................................................... 32
8.6 Constants......................................................................................................... 32
8.7 Arrays .............................................................................................................. 32
9 GP-16P Scripting Language Structure ................................................................... 33
9.1 Script Structure................................................................................................ 33
9.2 Constant Declarations ..................................................................................... 33
9.3 Global Variable Declarations........................................................................... 33
9.4 Global Array Declarations ............................................................................... 34
9.5 Local & Static Local Variable Declarations ..................................................... 34
9.6 Action Bodies................................................................................................... 34
9.7 Action Parameters ........................................................................................... 35
9.8 Subroutine Bodies ........................................................................................... 35
9.9 Subroutine Parameters.................................................................................... 35
10 Script Debugging .................................................................................................. 37
10.1 Finding Compiler Errors ................................................................................ 37
10.2 Third Party Editors......................................................................................... 37
10.3 Using “Print” and Telnet to Debug................................................................. 38
Appendix A................................................................................................................. 40
Appendix A1 - Example Custom Script File .......................................................... 40
GPC-3 / Jan 2008