From 3121a1f5a8203bfd14d46f71930ac5cd22afdf7d Mon Sep 17 00:00:00 2001 From: yash1112 Date: Mon, 19 Jun 2017 05:40:46 +0530 Subject: 1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI --- 2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin | Bin 0 -> 16792 bytes 2.3-1/macros/SymbolTable/ST_Del.bin | Bin 0 -> 4552 bytes 2.3-1/macros/SymbolTable/ST_FindPos.bin | Bin 0 -> 5104 bytes 2.3-1/macros/SymbolTable/ST_Get.bin | Bin 0 -> 8108 bytes 2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin | Bin 0 -> 39244 bytes 2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci | 15 +++++++++++++-- 2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin | Bin 0 -> 13320 bytes 2.3-1/macros/SymbolTable/ST_InsForCntVars.bin | Bin 0 -> 25508 bytes 2.3-1/macros/SymbolTable/ST_InsOutArg.bin | Bin 0 -> 33508 bytes 2.3-1/macros/SymbolTable/ST_InsOutArg.sci | 2 -- 2.3-1/macros/SymbolTable/ST_Load.bin | Bin 0 -> 4288 bytes 2.3-1/macros/SymbolTable/ST_MatchSymbol.bin | Bin 0 -> 9112 bytes 2.3-1/macros/SymbolTable/ST_Save.bin | Bin 0 -> 5440 bytes 2.3-1/macros/SymbolTable/ST_Set.bin | Bin 0 -> 7048 bytes 2.3-1/macros/SymbolTable/lib | Bin 1199 -> 752 bytes 15 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin create mode 100644 2.3-1/macros/SymbolTable/ST_Del.bin create mode 100644 2.3-1/macros/SymbolTable/ST_FindPos.bin create mode 100644 2.3-1/macros/SymbolTable/ST_Get.bin create mode 100644 2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin create mode 100644 2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin create mode 100644 2.3-1/macros/SymbolTable/ST_InsForCntVars.bin create mode 100644 2.3-1/macros/SymbolTable/ST_InsOutArg.bin create mode 100644 2.3-1/macros/SymbolTable/ST_Load.bin create mode 100644 2.3-1/macros/SymbolTable/ST_MatchSymbol.bin create mode 100644 2.3-1/macros/SymbolTable/ST_Save.bin create mode 100644 2.3-1/macros/SymbolTable/ST_Set.bin (limited to '2.3-1/macros/SymbolTable') diff --git a/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin new file mode 100644 index 00000000..7e727a04 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_Del.bin b/2.3-1/macros/SymbolTable/ST_Del.bin new file mode 100644 index 00000000..c26e2e58 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_Del.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_FindPos.bin b/2.3-1/macros/SymbolTable/ST_FindPos.bin new file mode 100644 index 00000000..c7003f30 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_FindPos.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_Get.bin b/2.3-1/macros/SymbolTable/ST_Get.bin new file mode 100644 index 00000000..512e72b7 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_Get.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin new file mode 100644 index 00000000..97512b3a Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci index 9f5cbd4e..4c85408c 100644 --- a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci +++ b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci @@ -49,13 +49,13 @@ for cntinarg = 1:NInArg tmpname = InArg(cntinarg).Name; tmpscope = InArg(cntinarg).Scope; lengthNumber = length('Number_'); - if (part(tmpscope,1:lengthNumber) == 'Number_') + if (part(tmpscope,1:lengthNumber) == 'Number_') // #RNU_RES_B PrintStringInfo('Input Argument '+string(cntinarg)+' is a number: '+tmpname+'.',FileInfo.Funct(nxtscifunnumber).ReportFileName,'file'); // #RNU_RES_E UpdatedInArg(cntinarg).Type = part(tmpscope,lengthNumber+1:lengthNumber+1); if (UpdatedInArg(cntinarg).Type == 'x') - UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default. + UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default elseif (UpdatedInArg(cntinarg).Type == 'X') if (SharedInfo.DefaultPrecision == 's') UpdatedInArg(cntinarg).Type = 'c'; // It is the default. @@ -101,6 +101,17 @@ for cntinarg = 1:NInArg UpdatedInArg(cntinarg).FindLike = 0; UpdatedInArg(cntinarg).Dimension = 0; UpdatedInArg(cntinarg).Scope = 'Number'; + if((ASTFunName == 'cmd_analog_in' | ASTFunName == 'cmd_analog_in_volt' ) & cntinarg == 2) + numvalue = eval(tmpname); + if (SharedInfo.Board_name == 'mega' | SharedInfo.Board_name == 'mega2560') then + tmpname = string(numvalue + 54) + UpdatedInArg(cntinarg).Value = 54 + numvalue; + else + tmpname = string(numvalue + 14) + UpdatedInArg(cntinarg).Value = 14 + numvalue; + end + UpdatedInArg(cntinarg).Name = tmpname; // Change the name. + end elseif (tmpscope == 'String') // #RNU_RES_B diff --git a/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin b/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin new file mode 100644 index 00000000..b8a7cf74 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin new file mode 100644 index 00000000..12882fc7 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin new file mode 100644 index 00000000..7571456a Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.sci b/2.3-1/macros/SymbolTable/ST_InsOutArg.sci index f4958ff7..fd6b426c 100644 --- a/2.3-1/macros/SymbolTable/ST_InsOutArg.sci +++ b/2.3-1/macros/SymbolTable/ST_InsOutArg.sci @@ -47,8 +47,6 @@ PrintStringInfo('***Putting output arguments in the symbol table***',ReportFileN // --------------------------- // --- End Initialization. --- // --------------------------- - - for counteroutput = 1:NOutArg // #RNU_RES_B PrintStringInfo(' Symbol ""'+OutArg(counteroutput).Name+'""',ReportFileName,'file','y','n'); diff --git a/2.3-1/macros/SymbolTable/ST_Load.bin b/2.3-1/macros/SymbolTable/ST_Load.bin new file mode 100644 index 00000000..f158c2b6 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_Load.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin new file mode 100644 index 00000000..278560d0 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_Save.bin b/2.3-1/macros/SymbolTable/ST_Save.bin new file mode 100644 index 00000000..4aa50a20 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_Save.bin differ diff --git a/2.3-1/macros/SymbolTable/ST_Set.bin b/2.3-1/macros/SymbolTable/ST_Set.bin new file mode 100644 index 00000000..cbd26274 Binary files /dev/null and b/2.3-1/macros/SymbolTable/ST_Set.bin differ diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib index dbc603e2..59ce4653 100644 Binary files a/2.3-1/macros/SymbolTable/lib and b/2.3-1/macros/SymbolTable/lib differ -- cgit