summaryrefslogtreecommitdiff
path: root/2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci
diff options
context:
space:
mode:
authorSandeep Gupta2017-06-21 12:42:02 +0530
committerSandeep Gupta2017-06-21 12:42:02 +0530
commit33e4ef72e7f712eb34a0a87e7b45fcca7d08393c (patch)
treef504c068fe6763f6cf32735e9107cc357c2655a7 /2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci
parentbbd59785a0607149aca4b809d6e43a4b64e2d797 (diff)
parent0051253bc224286c118c080c79eaed5bf611bd35 (diff)
downloadScilab2C-33e4ef72e7f712eb34a0a87e7b45fcca7d08393c.tar.gz
Scilab2C-33e4ef72e7f712eb34a0a87e7b45fcca7d08393c.tar.bz2
Scilab2C-33e4ef72e7f712eb34a0a87e7b45fcca7d08393c.zip
Updated - Linear Algebra
Diffstat (limited to '2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci')
-rw-r--r--2.3-1/macros/SymbolTable/ST_GetInArgInfo.sci15
1 files changed, 13 insertions, 2 deletions
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