Scriptcommunicator Manual Table of Contents Scriptcommunicator History
Total Page:16
File Type:pdf, Size:1020Kb
ScriptCommunicator Manual Table of contents ScriptCommunicator History..................................................................................................................8 GUI documentation..............................................................................................................................17 Main window.......................................................................................................................................17 Settings dialog.....................................................................................................................................18 Send dialog..........................................................................................................................................19 Single sequence table...................................................................................................................19 Cyclic sequence area.....................................................................................................................19 Scripts dialog.......................................................................................................................................20 Create sce file dialog............................................................................................................................22 Add message dialog.............................................................................................................................24 Sending and receiving a file.................................................................................................................24 Configuration files................................................................................................................................24 Main configuration file........................................................................................................................25 Sequence configuration file.................................................................................................................25 Script configuration file.......................................................................................................................25 SCE configuration file...........................................................................................................................25 Command-line arguments....................................................................................................................25 Command-line mode...........................................................................................................................26 SCE files........................................................................................................................................26 SCEZ files.......................................................................................................................................27 Self extracting zip (exe) files (only on windows)...................................................................................27 Internal architecture.............................................................................................................................28 Script interface.....................................................................................................................................28 Script debugging..................................................................................................................................28 Worker scripts......................................................................................................................................29 void stopScript(void)............................................................................................................................29 The scriptThread object/class..............................................................................................................30 Main interface..............................................................................................................................30 Separate interfaces.......................................................................................................................30 Standard dialogs...........................................................................................................................30 Filesystem.....................................................................................................................................36 SQL support..................................................................................................................................41 XML support.................................................................................................................................42 CRC functions................................................................................................................................47 Inter-WorkerScript communication..............................................................................................50 Process..........................................................................................................................................53 Miscellaneous...............................................................................................................................56 The scriptInf object/class.....................................................................................................................64 Main interface..............................................................................................................................65 Separate interfaces.......................................................................................................................78 Script UDP socket class........................................................................................................................79 Script TCP client class..........................................................................................................................81 Script TCP server class.........................................................................................................................86 Script serial port class..........................................................................................................................87 Script PCAN class.................................................................................................................................92 Script Aardvark I2C/SPI class...............................................................................................................94 Script timer class................................................................................................................................100 Script plot window class....................................................................................................................101 User interface classes........................................................................................................................106 Script dialog................................................................................................................................107 Script main window....................................................................................................................107 Script tab widget.........................................................................................................................108 Script tool box.............................................................................................................................109 Script group box..........................................................................................................................110 Script label..................................................................................................................................110 Script action (menu entry)..........................................................................................................111 Script button...............................................................................................................................111 Script tool button........................................................................................................................113 Script check box..........................................................................................................................114 Script radio button......................................................................................................................114 Script combo box and font combo box.......................................................................................115 Script line edit.............................................................................................................................117 Script table widget......................................................................................................................118 Script list widget.........................................................................................................................125 Script tree widget.......................................................................................................................127 Script tree widget item...............................................................................................................129 Script text edit............................................................................................................................131