diff options
Diffstat (limited to '2.3-1/macros/SymbolTable')
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin | bin | 16792 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Del.bin | bin | 4552 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_FindPos.bin | bin | 5104 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Get.bin | bin | 8108 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin | bin | 37384 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci | 15 | ||||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin | bin | 13320 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_InsForCntVars.bin | bin | 25508 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_InsOutArg.bin | bin | 33516 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_InsOutArg.sci | 2 | ||||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Load.bin | bin | 4288 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_MatchSymbol.bin | bin | 9112 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Save.bin | bin | 5440 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/ST_Set.bin | bin | 7048 -> 0 bytes | |||
-rw-r--r-- | 2.3-1/macros/SymbolTable/lib | bin | 684 -> 890 bytes |
15 files changed, 13 insertions, 4 deletions
diff --git a/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin b/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin Binary files differdeleted file mode 100644 index 7e727a04..00000000 --- a/2.3-1/macros/SymbolTable/ST_AnalyzeScope.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_Del.bin b/2.3-1/macros/SymbolTable/ST_Del.bin Binary files differdeleted file mode 100644 index c26e2e58..00000000 --- a/2.3-1/macros/SymbolTable/ST_Del.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_FindPos.bin b/2.3-1/macros/SymbolTable/ST_FindPos.bin Binary files differdeleted file mode 100644 index c7003f30..00000000 --- a/2.3-1/macros/SymbolTable/ST_FindPos.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_Get.bin b/2.3-1/macros/SymbolTable/ST_Get.bin Binary files differdeleted file mode 100644 index 512e72b7..00000000 --- a/2.3-1/macros/SymbolTable/ST_Get.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin b/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin Binary files differdeleted file mode 100644 index 6eb16e37..00000000 --- a/2.3-1/macros/SymbolTable/ST_GetInArgInfo.bin +++ /dev/null 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 Binary files differdeleted file mode 100644 index b8a7cf74..00000000 --- a/2.3-1/macros/SymbolTable/ST_GetSymbolInfo.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin b/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin Binary files differdeleted file mode 100644 index 12882fc7..00000000 --- a/2.3-1/macros/SymbolTable/ST_InsForCntVars.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin b/2.3-1/macros/SymbolTable/ST_InsOutArg.bin Binary files differdeleted file mode 100644 index ec9970cb..00000000 --- a/2.3-1/macros/SymbolTable/ST_InsOutArg.bin +++ /dev/null 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 Binary files differdeleted file mode 100644 index f158c2b6..00000000 --- a/2.3-1/macros/SymbolTable/ST_Load.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin b/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin Binary files differdeleted file mode 100644 index 278560d0..00000000 --- a/2.3-1/macros/SymbolTable/ST_MatchSymbol.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_Save.bin b/2.3-1/macros/SymbolTable/ST_Save.bin Binary files differdeleted file mode 100644 index 4aa50a20..00000000 --- a/2.3-1/macros/SymbolTable/ST_Save.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/ST_Set.bin b/2.3-1/macros/SymbolTable/ST_Set.bin Binary files differdeleted file mode 100644 index cbd26274..00000000 --- a/2.3-1/macros/SymbolTable/ST_Set.bin +++ /dev/null diff --git a/2.3-1/macros/SymbolTable/lib b/2.3-1/macros/SymbolTable/lib Binary files differindex 102c8c96..ad10f776 100644 --- a/2.3-1/macros/SymbolTable/lib +++ b/2.3-1/macros/SymbolTable/lib |