diff --git a/CHANGELOG.md b/CHANGELOG.md index 36c2beb..a5a1e35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how Fixed -- for any bug fixes. Security -- in case of vulnerabilities. --> +## [0.18.3] + +### Added +- support dynamically creating enums for configured nodes ## [0.18.2] @@ -49,7 +53,8 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how - workflow has been added for generaing json artifacts. -[Unreleased]: https://github.com/tektronix/tsp-toolkit-webhelp-to-json/compare/v0.18.2...HEAD +[Unreleased]: https://github.com/tektronix/tsp-toolkit-webhelp-to-json/compare/v0.18.3...HEAD +[0.18.3]: https://github.com/tektronix/tsp-toolkit-webhelp-to-json/releases/tag/v0.18.3 [0.18.2]: https://github.com/tektronix/tsp-toolkit-webhelp-to-json/releases/tag/v0.18.2 [0.18.1]: https://github.com/tektronix/tsp-toolkit-webhelp-to-json/releases/tag/v0.18.1 [0.18.0]: https://github.com/tektronix/tsp-toolkit-webhelp-to-json/releases/tag/v0.18.0 diff --git a/Configuration.py b/Configuration.py index b4baf7f..4e91793 100644 --- a/Configuration.py +++ b/Configuration.py @@ -1,9 +1,12 @@ # Folder path of webhelp file import os -class Confiurations: +class Configuration: HELP_FILE_FOLDER_PATH = "" + MANUALLY_EXTRACTED_COMMANDS = {} + PARAMS_TYPES_DETAILS = {} + # model number MODEL_NUMBER = "" diff --git a/Json_parser/Program.cs b/Json_parser/Program.cs index d5df1c6..74ebf31 100644 --- a/Json_parser/Program.cs +++ b/Json_parser/Program.cs @@ -56,7 +56,6 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path) Console.WriteLine(cmdList.First()); var outStr = "---@meta\n\n"; int MAX_DEPT = 10; - var nodeTable = new HashSet(); Dictionary>[] instrTable = new Dictionary>[MAX_DEPT]; for (int i = 0; i < MAX_DEPT; i++) { @@ -71,35 +70,20 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path) var triggerModelLoadCommands = cmdList.Where(cmd => cmd.name.Contains("trigger.model.load()")).ToList(); // get trigger.model.load() commands - var bufferMathCommand = cmdList.Where(cmd => cmd.name.Contains("buffer.math()")).ToList(); - + var triggerBlockConstants = cmdList.Where(cmd => cmd.name.Contains("trigger.BLOCK_")).ToList(); + cmdList = cmdList.Except(triggerBlockConstants).ToList(); cmdList = cmdList.Except(directFunctioncommands).ToList(); // remove all directFunctioncommands commands and handle it speratley cmdList = cmdList.Except(triggerModelLoadCommands).ToList(); // remove all trigger.model.load() commands and handle it speratley - cmdList = cmdList.Except(bufferMathCommand).ToList(); // remove "buffer.math()" commands and handle it speratley - + foreach (var cmd in cmdList) { string s = cmd.name; var tSplit = s.Contains(".") ? s.Trim().Split('.') : s.Trim().Split(':'); - if (cmd.tsplink_supported.Contains("Yes")) - { - //if (tSplit[0] == "bufferVar") - //continue; - if (tSplit.Length > 1) - { - nodeTable.Add(tSplit[0] + " = " + tSplit[0]); - } - else - { - nodeTable.Add(s.Contains('(') ? s.Split('(')[0] + " = " + s.Split('(')[0] : s + " = " + s); - } - } - - + for (int i = 0; i < tSplit.Length - 1; i++) {//ignore functions string attr = null; @@ -121,15 +105,16 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path) outStr += "---@class io_object\nlocal io_object={}\n---@class scriptVar\nlocal scriptVar={}\n---@class eventID\n\n---@class file_object\nlocal file_object ={}\n\n"; //PRIV outStr += "---@class bufferVar\nlocal bufferVar={}\n"; - outStr += "---@class digio\n digio = {}\n\n---@class tsplink\n tsplink = {}\n\n---@class lan\n lan = {}\n\n---@class tspnetConnectionID\nlocal tspnetConnectionID = {}\n\n ---@class promptID\nlocal promptID = {}\n\n"; + outStr += "---@class digio\n local digio = {}\n\n---@class tsplink\n local tsplink = {}\n\n---@class lan\n local lan = {}\n\n---@class tspnetConnectionID\nlocal tspnetConnectionID = {}\n\n ---@class promptID\nlocal promptID = {}\n\n"; var tsplinkStr = ""; - string[] arrlist = { }; tsplinkStr = outStr; - Utility.PrintFields(MAX_DEPT, file_name, ref instrTable, ref outStr, ref tsplinkStr, ref arrlist, "null"); + tsplinkStr += Utility.PrintFields(MAX_DEPT, file_name, instrTable, true); + outStr += Utility.PrintFields(MAX_DEPT, file_name, instrTable, false); foreach (var cmd in directFunctioncommands) { - Utility.HelpContent(cmd, file_name, ref outStr, ref tsplinkStr, "", true, "", "", true); + var cmd_info = new KeyValuePair(cmd.name, cmd); + outStr += Utility.HelpContent(cmd_info, file_name, "", true); } if (triggerModelLoadCommands.Count > 0) @@ -138,18 +123,13 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path) outStr += defStr; tsplinkStr += defStr; - // IList aliasTypes = new List(); - foreach (var cmd in triggerModelLoadCommands) { - // aliasTypes.Add(cmd.name.Split('-')[1].Trim()); var header = Utility.get_command_header(cmd, file_name); outStr += header; tsplinkStr += header; } - //outStr+= Utility.create_alias_type("loadFunConstParam", aliasTypes); - //tsplinkStr += Utility.create_alias_type("loadFunConstParam", aliasTypes); var sig = "\n" + @"---@param loadFunConst loadFunConstParam function trigger.model.load(loadFunConst,...) end"; outStr += sig; @@ -158,24 +138,7 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path) } - if (bufferMathCommand.Count > 0) - { - var alias = Utility.create_enum_alias_type(bufferMathCommand[0].param_info[1]); - var header = Utility.get_command_header(bufferMathCommand[0], file_name); - - outStr += alias + header; - tsplinkStr += alias + header; - - Utility.append_buffermath_signature(ref outStr); - Utility.append_buffermath_signature(ref tsplinkStr); - - } - - nodeTable.Remove("node[N] = node[N]"); // for now removing this command from nodeTable because its creating problem in lua definitions - nodeTable.Remove("slot[slot] = slot[slot]"); // for now removing this command from nodeTable because its creating problem in lua definition - - - + if (file_name.Contains("26")) { @@ -187,35 +150,25 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path) else // for tti models { - nodeTable.Add("defbuffer1 = defbuffer1"); - nodeTable.Add("defbuffer2 = defbuffer2"); } - var nodeTable_str = @"{" + string.Join(",\n ", nodeTable) + "\n}"; - var node_class_name = Regex.Replace(file_name, @"[^a-zA-Z0-9_]", ""); - var nodeTableDetails = $"---@meta\n\n---@class model{node_class_name}\nmodel{node_class_name} = {nodeTable_str}" + - $"\n--#region node details\n--#endregion"; - Directory.CreateDirectory(Path.Combine(base_lib_dir, model)); Directory.CreateDirectory(Path.Combine(base_lib_dir, model, "tspLinkSupportedCommands")); Directory.CreateDirectory(Path.Combine(base_lib_dir, model, "AllTspCommands")); Directory.CreateDirectory(Path.Combine(base_lib_dir, model, "Helper")); - var nodeTableFilePath = $"{base_lib_dir}/{model}/tspLinkSupportedCommands/nodeTable.lua"; - var AllTspCommandsFilePath = $"{base_lib_dir}/{model}/AllTspCommands/" + file_name + ".lua"; - var tspLinkSupportedCommandsFilePath = $"{base_lib_dir}/{model}/tspLinkSupportedCommands/" + file_name + "_TSPLink.lua"; + var AllTspCommandsFilePath = $"{base_lib_dir}/{model}/AllTspCommands/definitions.lua"; + var tspLinkSupportedCommandsFilePath = $"{base_lib_dir}/{model}/tspLinkSupportedCommands/definitions.txt"; var static_folder_Path = Path.Combine(base_lib_dir, model, "Helper"); Utility.CopyStaticFiles(model, static_folder_Path); - Utility.write_to_file(nodeTableFilePath, nodeTableDetails); Utility.write_to_file(AllTspCommandsFilePath, outStr); Utility.write_to_file(tspLinkSupportedCommandsFilePath, tsplinkStr); - Utility.SetFileReadOnly(nodeTableFilePath); Utility.SetFileReadOnly(AllTspCommandsFilePath); Utility.SetFileReadOnly(tspLinkSupportedCommandsFilePath); diff --git a/Json_parser/Properties/launchSettings.json b/Json_parser/Properties/launchSettings.json new file mode 100644 index 0000000..002844a --- /dev/null +++ b/Json_parser/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "jsonToLuaParser": { + "commandName": "Project", + "commandLineArgs": "C:\\Users\\rjha\\source\\repos\\GitHub\\tsp-toolkit-webhelp-to-json\\data" + } + } +} \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/bufferCustomUnit.lua b/Json_parser/StaticLuaDefinations/2450/bufferCustomUnit.lua deleted file mode 100644 index 95f2cf4..0000000 --- a/Json_parser/StaticLuaDefinations/2450/bufferCustomUnit.lua +++ /dev/null @@ -1,10 +0,0 @@ ----@meta - -buffer.UNIT_CUSTOM1= nil -buffer.UNIT_CUSTOM2= nil -buffer.UNIT_CUSTOM3= nil - ----@alias bufferCustomUnit ----| `buffer.UNIT_CUSTOM1` ----| `buffer.UNIT_CUSTOM2` ----| `buffer.UNIT_CUSTOM3` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/bufferFileSaveDetails.lua b/Json_parser/StaticLuaDefinations/2450/bufferFileSaveDetails.lua deleted file mode 100644 index 2fcce8e..0000000 --- a/Json_parser/StaticLuaDefinations/2450/bufferFileSaveDetails.lua +++ /dev/null @@ -1,61 +0,0 @@ ----@meta - -buffer.COL_ALL= nil -buffer.COL_BRIEF= nil -buffer.COL_CHANNEL= nil -buffer.COL_CSV_CHAN_COLS= nil -buffer.COL_CSV_EASY_GRAPH= nil -buffer.COL_DISPLAY_DIGITS= nil -buffer.COL_EXTRA= nil -buffer.COL_EXTRA_RANGE= nil -buffer.COL_EXTRA_UNIT= nil -buffer.COL_EXTRA_VALUE= nil -buffer.COL_INDEX= nil -buffer.COL_LIMITS= nil -buffer.COL_MATH= nil -buffer.COL_ORIGIN= nil -buffer.COL_QUESTIONABLE= nil -buffer.COL_RANGE_DIGITS= nil -buffer.COL_READING= nil -buffer.COL_STANDARD= nil -buffer.COL_START= nil -buffer.COL_STATUS= nil -buffer.COL_TERMINAL= nil -buffer.COL_TIME_ABSOLUTE= nil -buffer.COL_TIME_PARTS= nil -buffer.COL_TIME_RAW= nil -buffer.COL_TIME_RELATIVE= nil -buffer.COL_TIMESTAMP_READING= nil -buffer.COL_UNIT= nil - ----@alias bufferFileSaveDetails ----| `buffer.COL_ALL` ----| `buffer.COL_BRIEF` ----| `buffer.COL_CHANNEL` ----| `buffer.COL_CSV_CHAN_COLS` ----| `buffer.COL_CSV_EASY_GRAPH` ----| `buffer.COL_DISPLAY_DIGITS` ----| `buffer.COL_EXTRA` ----| `buffer.COL_EXTRA_RANGE` ----| `buffer.COL_EXTRA_UNIT` ----| `buffer.COL_EXTRA_VALUE` ----| `buffer.COL_INDEX` ----| `buffer.COL_LIMITS` ----| `buffer.COL_MATH` ----| `buffer.COL_ORIGIN` ----| `buffer.COL_QUESTIONABLE` ----| `buffer.COL_RANGE_DIGITS` ----| `buffer.COL_READING` ----| `buffer.COL_STANDARD` ----| `buffer.COL_START` ----| `buffer.COL_STATUS` ----| `buffer.COL_TERMINAL` ----| `buffer.COL_TIME_ABSOLUTE` ----| `buffer.COL_TIME_PARTS` ----| `buffer.COL_TIME_RAW` ----| `buffer.COL_TIME_RELATIVE` ----| `buffer.COL_TIMESTAMP_READING` ----| `buffer.COL_UNIT` - - - diff --git a/Json_parser/StaticLuaDefinations/2450/bufferVarstatuses.lua b/Json_parser/StaticLuaDefinations/2450/bufferVarstatuses.lua deleted file mode 100644 index a561f17..0000000 --- a/Json_parser/StaticLuaDefinations/2450/bufferVarstatuses.lua +++ /dev/null @@ -1,21 +0,0 @@ ----@meta - -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_TERMINAL= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_START_GROUP= nil - ----@alias bufferVarstatuses ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_TERMINAL` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_START_GROUP` - diff --git a/Json_parser/StaticLuaDefinations/2450/buttonPressAlias.lua b/Json_parser/StaticLuaDefinations/2450/buttonPressAlias.lua deleted file mode 100644 index e091252..0000000 --- a/Json_parser/StaticLuaDefinations/2450/buttonPressAlias.lua +++ /dev/null @@ -1,13 +0,0 @@ ----@meta - -display.BUTTON_OK= nil -display.BUTTON_CANCEL= nil -display.BUTTON_YES= nil -display.BUTTON_NO= nil - - ----@alias buttonPress ----| `display.BUTTON_OK` ----| `display.BUTTON_CANCEL` ----| `display.BUTTON_YES` ----| `display.BUTTON_NO` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/channelMatchType.lua b/Json_parser/StaticLuaDefinations/2450/channelMatchType.lua deleted file mode 100644 index 16e8a55..0000000 --- a/Json_parser/StaticLuaDefinations/2450/channelMatchType.lua +++ /dev/null @@ -1,16 +0,0 @@ ----@meta - -channel.MATCH_EXACT= nil -channel.MATCH_ANY= nil -channel.MATCH_UNCHANGED= nil -channel.MATCH_NONE= nil - - ----@alias channelMatchType ----| `channel.MATCH_EXACT` ----| `channel.MATCH_ANY` ----| `channel.MATCH_UNCHANGED` ----| `channel.MATCH_NONE` - - - diff --git a/Json_parser/StaticLuaDefinations/2450/displayText.lua b/Json_parser/StaticLuaDefinations/2450/displayText.lua deleted file mode 100644 index f05b37d..0000000 --- a/Json_parser/StaticLuaDefinations/2450/displayText.lua +++ /dev/null @@ -1,8 +0,0 @@ ----@meta - -display.TEXT1= nil -display.TEXT2= nil - ----@alias dsiplayText ----| `display.TEXT1` ----| `display.TEXT2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/display_BUTTON_OPTIONs.lua b/Json_parser/StaticLuaDefinations/2450/display_BUTTON_OPTIONs.lua deleted file mode 100644 index 604a962..0000000 --- a/Json_parser/StaticLuaDefinations/2450/display_BUTTON_OPTIONs.lua +++ /dev/null @@ -1,25 +0,0 @@ ----@meta - - -display.BUTTON_OPTION1 = nil -display.BUTTON_OPTION2 = nil -display.BUTTON_OPTION3 = nil -display.BUTTON_OPTION4 = nil -display.BUTTON_OPTION5 = nil -display.BUTTON_OPTION6 = nil -display.BUTTON_OPTION7 = nil -display.BUTTON_OPTION8 = nil -display.BUTTON_OPTION9 = nil -display.BUTTON_OPTION10 = nil - ----@alias display_BUTTON_OPTIONs ----| `display.BUTTON_OPTION1` ----| `display.BUTTON_OPTION2` ----| `display.BUTTON_OPTION3` ----| `display.BUTTON_OPTION4` ----| `display.BUTTON_OPTION5` ----| `display.BUTTON_OPTION6` ----| `display.BUTTON_OPTION7` ----| `display.BUTTON_OPTION8` ----| `display.BUTTON_OPTION9` ----| `display.BUTTON_OPTION10` diff --git a/Json_parser/StaticLuaDefinations/2450/functionality.lua b/Json_parser/StaticLuaDefinations/2450/functionality.lua index 0dd01f0..dd72687 100644 --- a/Json_parser/StaticLuaDefinations/2450/functionality.lua +++ b/Json_parser/StaticLuaDefinations/2450/functionality.lua @@ -1,9 +1,9 @@ ---@meta -channel = {} -digio = {} -gpib = {} -serial = {} -tsplink = {} +local channel = {} +local digio = {} +local gpib = {} +local serial = {} +local tsplink = {} ---@alias functionality ---| `channel` ---| `digio` diff --git a/Json_parser/StaticLuaDefinations/2450/mathExpressAlias.lua b/Json_parser/StaticLuaDefinations/2450/mathExpressAlias.lua deleted file mode 100644 index 03040eb..0000000 --- a/Json_parser/StaticLuaDefinations/2450/mathExpressAlias.lua +++ /dev/null @@ -1,32 +0,0 @@ ----@meta - -buffer.EXPR_ADD= nil -buffer.EXPR_AVERAGE= nil -buffer.EXPR_DIVIDE= nil -buffer.EXPR_EXPONENT= nil -buffer.EXPR_LOG10= nil -buffer.EXPR_MULTIPLY= nil -buffer.EXPR_NONE= nil -buffer.EXPR_POLY= nil -buffer.EXPR_POWER= nil -buffer.EXPR_RATE= nil -buffer.EXPR_RECIPROCAL= nil -buffer.EXPR_SQROOT= nil -buffer.EXPR_SUBTRACT= nil - ----@alias mathExpression ----| `buffer.EXPR_ADD` ----| `buffer.EXPR_AVERAGE` ----| `buffer.EXPR_DIVIDE` ----| `buffer.EXPR_EXPONENT` ----| `buffer.EXPR_LOG10` ----| `buffer.EXPR_MULTIPLY` ----| `buffer.EXPR_NONE` ----| `buffer.EXPR_POLY` ----| `buffer.EXPR_POWER` ----| `buffer.EXPR_RATE` ----| `buffer.EXPR_RECIPROCAL` ----| `buffer.EXPR_SQROOT` ----| `buffer.EXPR_SUBTRACT` - - diff --git a/Json_parser/StaticLuaDefinations/2450/readingStatus.lua b/Json_parser/StaticLuaDefinations/2450/readingStatus.lua deleted file mode 100644 index 32617a9..0000000 --- a/Json_parser/StaticLuaDefinations/2450/readingStatus.lua +++ /dev/null @@ -1,22 +0,0 @@ ----@meta - -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_REL= nil -buffer.STAT_START_GROUP= nil -buffer.STAT_TERMINAL= nil - ----@alias readingStatus ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_REL` ----| `buffer.STAT_START_GROUP` ----| `buffer.STAT_TERMINAL` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/setblockalias.lua b/Json_parser/StaticLuaDefinations/2450/setblockalias.lua deleted file mode 100644 index 34f5ce6..0000000 --- a/Json_parser/StaticLuaDefinations/2450/setblockalias.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@alias setblockalias ----| `trigger.BLOCK_BRANCH_ALWAYS` ----| `trigger.BLOCK_BRANCH_COUNTER` ----| `trigger.BLOCK_BRANCH_DELTA` ----| `trigger.BLOCK_BRANCH_LIMIT_CONSTANT` ----| `trigger.BLOCK_BRANCH_LIMIT_DYNAMIC` ----| `trigger.BLOCK_BRANCH_ON_EVENT` ----| `trigger.BLOCK_BRANCH_ONCE` ----| `trigger.BLOCK_BRANCH_ONCE_EXCLUDED` ----| `trigger.BLOCK_BUFFER_CLEAR` ----| `trigger.BLOCK_CONFIG_NEXT` ----| `trigger.BLOCK_CONFIG_PREV` ----| `trigger.BLOCK_CONFIG_RECALL` ----| `trigger.BLOCK_DELAY_CONSTANT` ----| `trigger.BLOCK_DELAY_DYNAMIC` ----| `trigger.BLOCK_DIGITAL_IO` ----| `trigger.BLOCK_LOG_EVENT` ----| `trigger.BLOCK_MEASURE` ----| `trigger.BLOCK_MEASURE_DIGITIZE` ----| `trigger.BLOCK_NOP` ----| `trigger.BLOCK_NOTIFY` ----| `trigger.BLOCK_RESET_BRANCH_COUNT` ----| `trigger.BLOCK_SOURCE_OUTPUT` ----| `trigger.BLOCK_WAIT` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/smuMeasureFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2450/smuMeasureFunctionAttribute.lua deleted file mode 100644 index 556183d..0000000 --- a/Json_parser/StaticLuaDefinations/2450/smuMeasureFunctionAttribute.lua +++ /dev/null @@ -1,80 +0,0 @@ -smu.ATTR_MEAS_RANGE_AUTO = nil -smu.ATTR_MEAS_RANGE_HIGH = nil -smu.ATTR_MEAS_RANGE_LOW = nil -smu.ATTR_MEAS_RANGE_REBOUND = nil -smu.ATTR_MEAS_AUTO_ZERO = nil -smu.ATTR_MEAS_COUNT = nil -smu.ATTR_MEAS_DIGITS = nil -smu.ATTR_MEAS_NPLC = nil -smu.ATTR_MEAS_OFFSET_COMP = nil -smu.ATTR_MEAS_RANGE = nil -smu.ATTR_MEAS_REL_ENABLE = nil -smu.ATTR_MEAS_REL_LEVEL = nil -smu.ATTR_MEAS_SENSE = nil -smu.ATTR_MEAS_UNIT = nil -smu.ATTR_MEAS_USER_DELAY_1 = nil -smu.ATTR_MEAS_USER_DELAY_2 = nil -smu.ATTR_MEAS_USER_DELAY_3 = nil -smu.ATTR_MEAS_USER_DELAY_4 = nil -smu.ATTR_MEAS_USER_DELAY_5 = nil -smu.ATTR_MEAS_FILTER_COUNT = nil -smu.ATTR_MEAS_FILTER_ENABLE = nil -smu.ATTR_MEAS_FILTER_TYPE = nil -smu.ATTR_MEAS_MATH_ENABLE = nil -smu.ATTR_MEAS_MATH_MXB_BF = nil -smu.ATTR_MEAS_MATH_MXB_MF = nil -smu.ATTR_MEAS_MATH_FORMAT = nil -smu.ATTR_MEAS_MATH_PERCENT = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_1 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_1 = nil -smu.ATTR_MEAS_LIMIT_FAIL_1 = nil -smu.ATTR_MEAS_LIMIT_HIGH_1 = nil -smu.ATTR_MEAS_LIMIT_LOW_1 = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_2 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_2 = nil -smu.ATTR_MEAS_LIMIT_FAIL_2 = nil -smu.ATTR_MEAS_LIMIT_HIGH_2 = nil -smu.ATTR_MEAS_LIMIT_LOW_2 = nil - ----@alias smuMeasuresetFunctionattribute ----|`smu.ATTR_MEAS_RANGE_AUTO` ----|`smu.ATTR_MEAS_RANGE_HIGH` ----|`smu.ATTR_MEAS_RANGE_LOW` ----|`smu.ATTR_MEAS_RANGE_REBOUND` ----|`smu.ATTR_MEAS_AUTO_ZERO` ----|`smu.ATTR_MEAS_COUNT` ----|`smu.ATTR_MEAS_DIGITS` ----|`smu.ATTR_MEAS_NPLC` ----|`smu.ATTR_MEAS_OFFSET_COMP` ----|`smu.ATTR_MEAS_RANGE` ----|`smu.ATTR_MEAS_REL_ENABLE` ----|`smu.ATTR_MEAS_REL_LEVEL` ----|`smu.ATTR_MEAS_SENSE` ----|`smu.ATTR_MEAS_UNIT` ----|`smu.ATTR_MEAS_USER_DELAY_1` ----|`smu.ATTR_MEAS_USER_DELAY_2` ----|`smu.ATTR_MEAS_USER_DELAY_3` ----|`smu.ATTR_MEAS_USER_DELAY_4` ----|`smu.ATTR_MEAS_USER_DELAY_5` ----|`smu.ATTR_MEAS_FILTER_COUNT` ----|`smu.ATTR_MEAS_FILTER_ENABLE` ----|`smu.ATTR_MEAS_FILTER_TYPE` ----|`smu.ATTR_MEAS_MATH_ENABLE` ----|`smu.ATTR_MEAS_MATH_MXB_BF` ----|`smu.ATTR_MEAS_MATH_MXB_MF` ----|`smu.ATTR_MEAS_MATH_FORMAT` ----|`smu.ATTR_MEAS_MATH_PERCENT` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_1` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_1` ----|`smu.ATTR_MEAS_LIMIT_FAIL_1` ----|`smu.ATTR_MEAS_LIMIT_HIGH_1` ----|`smu.ATTR_MEAS_LIMIT_LOW_1` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_2` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_2` ----|`smu.ATTR_MEAS_LIMIT_FAIL_2` ----|`smu.ATTR_MEAS_LIMIT_HIGH_2` ----|`smu.ATTR_MEAS_LIMIT_LOW_2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/smuSourceFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2450/smuSourceFunctionAttribute.lua deleted file mode 100644 index 214bdf0..0000000 --- a/Json_parser/StaticLuaDefinations/2450/smuSourceFunctionAttribute.lua +++ /dev/null @@ -1,40 +0,0 @@ ----@meta - -smu.ATTR_SRC_RANGE_AUTO = nil -smu.ATTR_SRC_DELAY_AUTO = nil -smu.ATTR_SRC_DELAY = nil -smu.ATTR_SRC_FUNCTION = nil -smu.ATTR_SRC_HIGHC = nil -smu.ATTR_SRC_LEVEL = nil -smu.ATTR_SRC_LIMIT_LEVEL = nil -smu.ATTR_SRC_OFFMODE = nil -smu.ATTR_SRC_PROTECT_LEVEL = nil -smu.ATTR_SRC_PROTECT_TRIPPED = nil -smu.ATTR_SRC_RANGE = nil -smu.ATTR_SRC_READBACK = nil -smu.ATTR_SRC_LIMIT_TRIPPED = nil -smu.ATTR_SRC_USER_DELAY_1 = nil -smu.ATTR_SRC_USER_DELAY_2 = nil -smu.ATTR_SRC_USER_DELAY_3 = nil -smu.ATTR_SRC_USER_DELAY_4 = nil -smu.ATTR_SRC_USER_DELAY_5 = nil - ----@alias smuSourceGetSetAttributes ----|`smu.ATTR_SRC_RANGE_AUTO` ----|`smu.ATTR_SRC_DELAY_AUTO` ----|`smu.ATTR_SRC_DELAY` ----|`smu.ATTR_SRC_FUNCTION` ----|`smu.ATTR_SRC_HIGHC` ----|`smu.ATTR_SRC_LEVEL` ----|`smu.ATTR_SRC_LIMIT_LEVEL` ----|`smu.ATTR_SRC_OFFMODE` ----|`smu.ATTR_SRC_PROTECT_LEVEL` ----|`smu.ATTR_SRC_PROTECT_TRIPPED` ----|`smu.ATTR_SRC_RANGE` ----|`smu.ATTR_SRC_READBACK` ----|`smu.ATTR_SRC_LIMIT_TRIPPED` ----|`smu.ATTR_SRC_USER_DELAY_1` ----|`smu.ATTR_SRC_USER_DELAY_2` ----|`smu.ATTR_SRC_USER_DELAY_3` ----|`smu.ATTR_SRC_USER_DELAY_4` ----|`smu.ATTR_SRC_USER_DELAY_5` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/triggerEventNotify.lua b/Json_parser/StaticLuaDefinations/2450/triggerEventNotify.lua deleted file mode 100644 index 1861311..0000000 --- a/Json_parser/StaticLuaDefinations/2450/triggerEventNotify.lua +++ /dev/null @@ -1,20 +0,0 @@ ----@meta - -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil - ----@alias triggerEventNotify ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2450/triggerEventsAliasStimulus.lua b/Json_parser/StaticLuaDefinations/2450/triggerEventsAliasStimulus.lua deleted file mode 100644 index 0d65d4e..0000000 --- a/Json_parser/StaticLuaDefinations/2450/triggerEventsAliasStimulus.lua +++ /dev/null @@ -1,79 +0,0 @@ ----@meta - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_BLENDER3= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil -trigger.EVENT_SCAN_CHANNEL_READY= nil -trigger.EVENT_SCAN_COMPLETE= nil -trigger.EVENT_SCAN_MEASURE_COMPLETE= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEvents ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_BLENDER3` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` ----| `trigger.EVENT_SCAN_CHANNEL_READY` ----| `trigger.EVENT_SCAN_COMPLETE` ----| `trigger.EVENT_SCAN_MEASURE_COMPLETE` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2450/triggerEventsForFunctionParam.lua b/Json_parser/StaticLuaDefinations/2450/triggerEventsForFunctionParam.lua deleted file mode 100644 index 6ee535c..0000000 --- a/Json_parser/StaticLuaDefinations/2450/triggerEventsForFunctionParam.lua +++ /dev/null @@ -1,80 +0,0 @@ ----@meta - - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEventsForFunctionParam ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2450/triggerMode.lua b/Json_parser/StaticLuaDefinations/2450/triggerMode.lua deleted file mode 100644 index 5f5b2bc..0000000 --- a/Json_parser/StaticLuaDefinations/2450/triggerMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -trigger.EDGE_EITHER= nil ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_FALLING= nil ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_RISING= nil ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - ----@alias triggerMode ----| `trigger.EDGE_EITHER` ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_FALLING` ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_RISING` ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - - diff --git a/Json_parser/StaticLuaDefinations/2450/triggerUserDelay.lua b/Json_parser/StaticLuaDefinations/2450/triggerUserDelay.lua deleted file mode 100644 index d794ad5..0000000 --- a/Json_parser/StaticLuaDefinations/2450/triggerUserDelay.lua +++ /dev/null @@ -1,14 +0,0 @@ ----@meta - -trigger.USER_DELAY_M1= nil -trigger.USER_DELAY_M2= nil -trigger.USER_DELAY_M3= nil -trigger.USER_DELAY_M4= nil -trigger.USER_DELAY_M5= nil - ----@alias triggerUserDelay ----| `trigger.USER_DELAY_M1` ----| `trigger.USER_DELAY_M2` ----| `trigger.USER_DELAY_M3` ----| `trigger.USER_DELAY_M4` ----| `trigger.USER_DELAY_M5` diff --git a/Json_parser/StaticLuaDefinations/2450/tsplinkLineMode.lua b/Json_parser/StaticLuaDefinations/2450/tsplinkLineMode.lua deleted file mode 100644 index 54bbb8e..0000000 --- a/Json_parser/StaticLuaDefinations/2450/tsplinkLineMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -tsplink.MODE_DIGITAL_OPEN_DRAIN= nil -tsplink.MODE_TRIGGER_OPEN_DRAIN= nil -tsplink.MODE_SYNCHRONOUS_MASTER= nil -tsplink.MODE_SYNCHRONOUS_ACCEPTOR= nil - ----@alias tsplinkLineMode ----| `tsplink.MODE_DIGITAL_OPEN_DRAIN` ----| `tsplink.MODE_TRIGGER_OPEN_DRAIN` ----| `tsplink.MODE_SYNCHRONOUS_MASTER` ----| `tsplink.MODE_SYNCHRONOUS_ACCEPTOR` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/bufferCustomUnit.lua b/Json_parser/StaticLuaDefinations/2460/bufferCustomUnit.lua deleted file mode 100644 index 95f2cf4..0000000 --- a/Json_parser/StaticLuaDefinations/2460/bufferCustomUnit.lua +++ /dev/null @@ -1,10 +0,0 @@ ----@meta - -buffer.UNIT_CUSTOM1= nil -buffer.UNIT_CUSTOM2= nil -buffer.UNIT_CUSTOM3= nil - ----@alias bufferCustomUnit ----| `buffer.UNIT_CUSTOM1` ----| `buffer.UNIT_CUSTOM2` ----| `buffer.UNIT_CUSTOM3` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/bufferFileSaveDetails.lua b/Json_parser/StaticLuaDefinations/2460/bufferFileSaveDetails.lua deleted file mode 100644 index 2fcce8e..0000000 --- a/Json_parser/StaticLuaDefinations/2460/bufferFileSaveDetails.lua +++ /dev/null @@ -1,61 +0,0 @@ ----@meta - -buffer.COL_ALL= nil -buffer.COL_BRIEF= nil -buffer.COL_CHANNEL= nil -buffer.COL_CSV_CHAN_COLS= nil -buffer.COL_CSV_EASY_GRAPH= nil -buffer.COL_DISPLAY_DIGITS= nil -buffer.COL_EXTRA= nil -buffer.COL_EXTRA_RANGE= nil -buffer.COL_EXTRA_UNIT= nil -buffer.COL_EXTRA_VALUE= nil -buffer.COL_INDEX= nil -buffer.COL_LIMITS= nil -buffer.COL_MATH= nil -buffer.COL_ORIGIN= nil -buffer.COL_QUESTIONABLE= nil -buffer.COL_RANGE_DIGITS= nil -buffer.COL_READING= nil -buffer.COL_STANDARD= nil -buffer.COL_START= nil -buffer.COL_STATUS= nil -buffer.COL_TERMINAL= nil -buffer.COL_TIME_ABSOLUTE= nil -buffer.COL_TIME_PARTS= nil -buffer.COL_TIME_RAW= nil -buffer.COL_TIME_RELATIVE= nil -buffer.COL_TIMESTAMP_READING= nil -buffer.COL_UNIT= nil - ----@alias bufferFileSaveDetails ----| `buffer.COL_ALL` ----| `buffer.COL_BRIEF` ----| `buffer.COL_CHANNEL` ----| `buffer.COL_CSV_CHAN_COLS` ----| `buffer.COL_CSV_EASY_GRAPH` ----| `buffer.COL_DISPLAY_DIGITS` ----| `buffer.COL_EXTRA` ----| `buffer.COL_EXTRA_RANGE` ----| `buffer.COL_EXTRA_UNIT` ----| `buffer.COL_EXTRA_VALUE` ----| `buffer.COL_INDEX` ----| `buffer.COL_LIMITS` ----| `buffer.COL_MATH` ----| `buffer.COL_ORIGIN` ----| `buffer.COL_QUESTIONABLE` ----| `buffer.COL_RANGE_DIGITS` ----| `buffer.COL_READING` ----| `buffer.COL_STANDARD` ----| `buffer.COL_START` ----| `buffer.COL_STATUS` ----| `buffer.COL_TERMINAL` ----| `buffer.COL_TIME_ABSOLUTE` ----| `buffer.COL_TIME_PARTS` ----| `buffer.COL_TIME_RAW` ----| `buffer.COL_TIME_RELATIVE` ----| `buffer.COL_TIMESTAMP_READING` ----| `buffer.COL_UNIT` - - - diff --git a/Json_parser/StaticLuaDefinations/2460/bufferVarstatuses.lua b/Json_parser/StaticLuaDefinations/2460/bufferVarstatuses.lua deleted file mode 100644 index a561f17..0000000 --- a/Json_parser/StaticLuaDefinations/2460/bufferVarstatuses.lua +++ /dev/null @@ -1,21 +0,0 @@ ----@meta - -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_TERMINAL= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_START_GROUP= nil - ----@alias bufferVarstatuses ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_TERMINAL` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_START_GROUP` - diff --git a/Json_parser/StaticLuaDefinations/2460/buttonPressAlias.lua b/Json_parser/StaticLuaDefinations/2460/buttonPressAlias.lua deleted file mode 100644 index e091252..0000000 --- a/Json_parser/StaticLuaDefinations/2460/buttonPressAlias.lua +++ /dev/null @@ -1,13 +0,0 @@ ----@meta - -display.BUTTON_OK= nil -display.BUTTON_CANCEL= nil -display.BUTTON_YES= nil -display.BUTTON_NO= nil - - ----@alias buttonPress ----| `display.BUTTON_OK` ----| `display.BUTTON_CANCEL` ----| `display.BUTTON_YES` ----| `display.BUTTON_NO` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/channelMatchType.lua b/Json_parser/StaticLuaDefinations/2460/channelMatchType.lua deleted file mode 100644 index 16e8a55..0000000 --- a/Json_parser/StaticLuaDefinations/2460/channelMatchType.lua +++ /dev/null @@ -1,16 +0,0 @@ ----@meta - -channel.MATCH_EXACT= nil -channel.MATCH_ANY= nil -channel.MATCH_UNCHANGED= nil -channel.MATCH_NONE= nil - - ----@alias channelMatchType ----| `channel.MATCH_EXACT` ----| `channel.MATCH_ANY` ----| `channel.MATCH_UNCHANGED` ----| `channel.MATCH_NONE` - - - diff --git a/Json_parser/StaticLuaDefinations/2460/displayText.lua b/Json_parser/StaticLuaDefinations/2460/displayText.lua deleted file mode 100644 index f05b37d..0000000 --- a/Json_parser/StaticLuaDefinations/2460/displayText.lua +++ /dev/null @@ -1,8 +0,0 @@ ----@meta - -display.TEXT1= nil -display.TEXT2= nil - ----@alias dsiplayText ----| `display.TEXT1` ----| `display.TEXT2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/display_BUTTON_OPTIONs.lua b/Json_parser/StaticLuaDefinations/2460/display_BUTTON_OPTIONs.lua deleted file mode 100644 index 604a962..0000000 --- a/Json_parser/StaticLuaDefinations/2460/display_BUTTON_OPTIONs.lua +++ /dev/null @@ -1,25 +0,0 @@ ----@meta - - -display.BUTTON_OPTION1 = nil -display.BUTTON_OPTION2 = nil -display.BUTTON_OPTION3 = nil -display.BUTTON_OPTION4 = nil -display.BUTTON_OPTION5 = nil -display.BUTTON_OPTION6 = nil -display.BUTTON_OPTION7 = nil -display.BUTTON_OPTION8 = nil -display.BUTTON_OPTION9 = nil -display.BUTTON_OPTION10 = nil - ----@alias display_BUTTON_OPTIONs ----| `display.BUTTON_OPTION1` ----| `display.BUTTON_OPTION2` ----| `display.BUTTON_OPTION3` ----| `display.BUTTON_OPTION4` ----| `display.BUTTON_OPTION5` ----| `display.BUTTON_OPTION6` ----| `display.BUTTON_OPTION7` ----| `display.BUTTON_OPTION8` ----| `display.BUTTON_OPTION9` ----| `display.BUTTON_OPTION10` diff --git a/Json_parser/StaticLuaDefinations/2460/functionality.lua b/Json_parser/StaticLuaDefinations/2460/functionality.lua index 0dd01f0..dd72687 100644 --- a/Json_parser/StaticLuaDefinations/2460/functionality.lua +++ b/Json_parser/StaticLuaDefinations/2460/functionality.lua @@ -1,9 +1,9 @@ ---@meta -channel = {} -digio = {} -gpib = {} -serial = {} -tsplink = {} +local channel = {} +local digio = {} +local gpib = {} +local serial = {} +local tsplink = {} ---@alias functionality ---| `channel` ---| `digio` diff --git a/Json_parser/StaticLuaDefinations/2460/mathExpressAlias.lua b/Json_parser/StaticLuaDefinations/2460/mathExpressAlias.lua deleted file mode 100644 index 03040eb..0000000 --- a/Json_parser/StaticLuaDefinations/2460/mathExpressAlias.lua +++ /dev/null @@ -1,32 +0,0 @@ ----@meta - -buffer.EXPR_ADD= nil -buffer.EXPR_AVERAGE= nil -buffer.EXPR_DIVIDE= nil -buffer.EXPR_EXPONENT= nil -buffer.EXPR_LOG10= nil -buffer.EXPR_MULTIPLY= nil -buffer.EXPR_NONE= nil -buffer.EXPR_POLY= nil -buffer.EXPR_POWER= nil -buffer.EXPR_RATE= nil -buffer.EXPR_RECIPROCAL= nil -buffer.EXPR_SQROOT= nil -buffer.EXPR_SUBTRACT= nil - ----@alias mathExpression ----| `buffer.EXPR_ADD` ----| `buffer.EXPR_AVERAGE` ----| `buffer.EXPR_DIVIDE` ----| `buffer.EXPR_EXPONENT` ----| `buffer.EXPR_LOG10` ----| `buffer.EXPR_MULTIPLY` ----| `buffer.EXPR_NONE` ----| `buffer.EXPR_POLY` ----| `buffer.EXPR_POWER` ----| `buffer.EXPR_RATE` ----| `buffer.EXPR_RECIPROCAL` ----| `buffer.EXPR_SQROOT` ----| `buffer.EXPR_SUBTRACT` - - diff --git a/Json_parser/StaticLuaDefinations/2460/readingStatus.lua b/Json_parser/StaticLuaDefinations/2460/readingStatus.lua deleted file mode 100644 index 32617a9..0000000 --- a/Json_parser/StaticLuaDefinations/2460/readingStatus.lua +++ /dev/null @@ -1,22 +0,0 @@ ----@meta - -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_REL= nil -buffer.STAT_START_GROUP= nil -buffer.STAT_TERMINAL= nil - ----@alias readingStatus ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_REL` ----| `buffer.STAT_START_GROUP` ----| `buffer.STAT_TERMINAL` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/setblockalias.lua b/Json_parser/StaticLuaDefinations/2460/setblockalias.lua deleted file mode 100644 index 34f5ce6..0000000 --- a/Json_parser/StaticLuaDefinations/2460/setblockalias.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@alias setblockalias ----| `trigger.BLOCK_BRANCH_ALWAYS` ----| `trigger.BLOCK_BRANCH_COUNTER` ----| `trigger.BLOCK_BRANCH_DELTA` ----| `trigger.BLOCK_BRANCH_LIMIT_CONSTANT` ----| `trigger.BLOCK_BRANCH_LIMIT_DYNAMIC` ----| `trigger.BLOCK_BRANCH_ON_EVENT` ----| `trigger.BLOCK_BRANCH_ONCE` ----| `trigger.BLOCK_BRANCH_ONCE_EXCLUDED` ----| `trigger.BLOCK_BUFFER_CLEAR` ----| `trigger.BLOCK_CONFIG_NEXT` ----| `trigger.BLOCK_CONFIG_PREV` ----| `trigger.BLOCK_CONFIG_RECALL` ----| `trigger.BLOCK_DELAY_CONSTANT` ----| `trigger.BLOCK_DELAY_DYNAMIC` ----| `trigger.BLOCK_DIGITAL_IO` ----| `trigger.BLOCK_LOG_EVENT` ----| `trigger.BLOCK_MEASURE` ----| `trigger.BLOCK_MEASURE_DIGITIZE` ----| `trigger.BLOCK_NOP` ----| `trigger.BLOCK_NOTIFY` ----| `trigger.BLOCK_RESET_BRANCH_COUNT` ----| `trigger.BLOCK_SOURCE_OUTPUT` ----| `trigger.BLOCK_WAIT` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/smuMeasureFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2460/smuMeasureFunctionAttribute.lua deleted file mode 100644 index 556183d..0000000 --- a/Json_parser/StaticLuaDefinations/2460/smuMeasureFunctionAttribute.lua +++ /dev/null @@ -1,80 +0,0 @@ -smu.ATTR_MEAS_RANGE_AUTO = nil -smu.ATTR_MEAS_RANGE_HIGH = nil -smu.ATTR_MEAS_RANGE_LOW = nil -smu.ATTR_MEAS_RANGE_REBOUND = nil -smu.ATTR_MEAS_AUTO_ZERO = nil -smu.ATTR_MEAS_COUNT = nil -smu.ATTR_MEAS_DIGITS = nil -smu.ATTR_MEAS_NPLC = nil -smu.ATTR_MEAS_OFFSET_COMP = nil -smu.ATTR_MEAS_RANGE = nil -smu.ATTR_MEAS_REL_ENABLE = nil -smu.ATTR_MEAS_REL_LEVEL = nil -smu.ATTR_MEAS_SENSE = nil -smu.ATTR_MEAS_UNIT = nil -smu.ATTR_MEAS_USER_DELAY_1 = nil -smu.ATTR_MEAS_USER_DELAY_2 = nil -smu.ATTR_MEAS_USER_DELAY_3 = nil -smu.ATTR_MEAS_USER_DELAY_4 = nil -smu.ATTR_MEAS_USER_DELAY_5 = nil -smu.ATTR_MEAS_FILTER_COUNT = nil -smu.ATTR_MEAS_FILTER_ENABLE = nil -smu.ATTR_MEAS_FILTER_TYPE = nil -smu.ATTR_MEAS_MATH_ENABLE = nil -smu.ATTR_MEAS_MATH_MXB_BF = nil -smu.ATTR_MEAS_MATH_MXB_MF = nil -smu.ATTR_MEAS_MATH_FORMAT = nil -smu.ATTR_MEAS_MATH_PERCENT = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_1 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_1 = nil -smu.ATTR_MEAS_LIMIT_FAIL_1 = nil -smu.ATTR_MEAS_LIMIT_HIGH_1 = nil -smu.ATTR_MEAS_LIMIT_LOW_1 = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_2 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_2 = nil -smu.ATTR_MEAS_LIMIT_FAIL_2 = nil -smu.ATTR_MEAS_LIMIT_HIGH_2 = nil -smu.ATTR_MEAS_LIMIT_LOW_2 = nil - ----@alias smuMeasuresetFunctionattribute ----|`smu.ATTR_MEAS_RANGE_AUTO` ----|`smu.ATTR_MEAS_RANGE_HIGH` ----|`smu.ATTR_MEAS_RANGE_LOW` ----|`smu.ATTR_MEAS_RANGE_REBOUND` ----|`smu.ATTR_MEAS_AUTO_ZERO` ----|`smu.ATTR_MEAS_COUNT` ----|`smu.ATTR_MEAS_DIGITS` ----|`smu.ATTR_MEAS_NPLC` ----|`smu.ATTR_MEAS_OFFSET_COMP` ----|`smu.ATTR_MEAS_RANGE` ----|`smu.ATTR_MEAS_REL_ENABLE` ----|`smu.ATTR_MEAS_REL_LEVEL` ----|`smu.ATTR_MEAS_SENSE` ----|`smu.ATTR_MEAS_UNIT` ----|`smu.ATTR_MEAS_USER_DELAY_1` ----|`smu.ATTR_MEAS_USER_DELAY_2` ----|`smu.ATTR_MEAS_USER_DELAY_3` ----|`smu.ATTR_MEAS_USER_DELAY_4` ----|`smu.ATTR_MEAS_USER_DELAY_5` ----|`smu.ATTR_MEAS_FILTER_COUNT` ----|`smu.ATTR_MEAS_FILTER_ENABLE` ----|`smu.ATTR_MEAS_FILTER_TYPE` ----|`smu.ATTR_MEAS_MATH_ENABLE` ----|`smu.ATTR_MEAS_MATH_MXB_BF` ----|`smu.ATTR_MEAS_MATH_MXB_MF` ----|`smu.ATTR_MEAS_MATH_FORMAT` ----|`smu.ATTR_MEAS_MATH_PERCENT` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_1` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_1` ----|`smu.ATTR_MEAS_LIMIT_FAIL_1` ----|`smu.ATTR_MEAS_LIMIT_HIGH_1` ----|`smu.ATTR_MEAS_LIMIT_LOW_1` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_2` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_2` ----|`smu.ATTR_MEAS_LIMIT_FAIL_2` ----|`smu.ATTR_MEAS_LIMIT_HIGH_2` ----|`smu.ATTR_MEAS_LIMIT_LOW_2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/smuSourceFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2460/smuSourceFunctionAttribute.lua deleted file mode 100644 index 214bdf0..0000000 --- a/Json_parser/StaticLuaDefinations/2460/smuSourceFunctionAttribute.lua +++ /dev/null @@ -1,40 +0,0 @@ ----@meta - -smu.ATTR_SRC_RANGE_AUTO = nil -smu.ATTR_SRC_DELAY_AUTO = nil -smu.ATTR_SRC_DELAY = nil -smu.ATTR_SRC_FUNCTION = nil -smu.ATTR_SRC_HIGHC = nil -smu.ATTR_SRC_LEVEL = nil -smu.ATTR_SRC_LIMIT_LEVEL = nil -smu.ATTR_SRC_OFFMODE = nil -smu.ATTR_SRC_PROTECT_LEVEL = nil -smu.ATTR_SRC_PROTECT_TRIPPED = nil -smu.ATTR_SRC_RANGE = nil -smu.ATTR_SRC_READBACK = nil -smu.ATTR_SRC_LIMIT_TRIPPED = nil -smu.ATTR_SRC_USER_DELAY_1 = nil -smu.ATTR_SRC_USER_DELAY_2 = nil -smu.ATTR_SRC_USER_DELAY_3 = nil -smu.ATTR_SRC_USER_DELAY_4 = nil -smu.ATTR_SRC_USER_DELAY_5 = nil - ----@alias smuSourceGetSetAttributes ----|`smu.ATTR_SRC_RANGE_AUTO` ----|`smu.ATTR_SRC_DELAY_AUTO` ----|`smu.ATTR_SRC_DELAY` ----|`smu.ATTR_SRC_FUNCTION` ----|`smu.ATTR_SRC_HIGHC` ----|`smu.ATTR_SRC_LEVEL` ----|`smu.ATTR_SRC_LIMIT_LEVEL` ----|`smu.ATTR_SRC_OFFMODE` ----|`smu.ATTR_SRC_PROTECT_LEVEL` ----|`smu.ATTR_SRC_PROTECT_TRIPPED` ----|`smu.ATTR_SRC_RANGE` ----|`smu.ATTR_SRC_READBACK` ----|`smu.ATTR_SRC_LIMIT_TRIPPED` ----|`smu.ATTR_SRC_USER_DELAY_1` ----|`smu.ATTR_SRC_USER_DELAY_2` ----|`smu.ATTR_SRC_USER_DELAY_3` ----|`smu.ATTR_SRC_USER_DELAY_4` ----|`smu.ATTR_SRC_USER_DELAY_5` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/triggerEventNotify.lua b/Json_parser/StaticLuaDefinations/2460/triggerEventNotify.lua deleted file mode 100644 index 1861311..0000000 --- a/Json_parser/StaticLuaDefinations/2460/triggerEventNotify.lua +++ /dev/null @@ -1,20 +0,0 @@ ----@meta - -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil - ----@alias triggerEventNotify ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2460/triggerEventsAliasStimulus.lua b/Json_parser/StaticLuaDefinations/2460/triggerEventsAliasStimulus.lua deleted file mode 100644 index 0d65d4e..0000000 --- a/Json_parser/StaticLuaDefinations/2460/triggerEventsAliasStimulus.lua +++ /dev/null @@ -1,79 +0,0 @@ ----@meta - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_BLENDER3= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil -trigger.EVENT_SCAN_CHANNEL_READY= nil -trigger.EVENT_SCAN_COMPLETE= nil -trigger.EVENT_SCAN_MEASURE_COMPLETE= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEvents ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_BLENDER3` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` ----| `trigger.EVENT_SCAN_CHANNEL_READY` ----| `trigger.EVENT_SCAN_COMPLETE` ----| `trigger.EVENT_SCAN_MEASURE_COMPLETE` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2460/triggerEventsForFunctionParam.lua b/Json_parser/StaticLuaDefinations/2460/triggerEventsForFunctionParam.lua deleted file mode 100644 index 6ee535c..0000000 --- a/Json_parser/StaticLuaDefinations/2460/triggerEventsForFunctionParam.lua +++ /dev/null @@ -1,80 +0,0 @@ ----@meta - - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEventsForFunctionParam ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2460/triggerMode.lua b/Json_parser/StaticLuaDefinations/2460/triggerMode.lua deleted file mode 100644 index 5f5b2bc..0000000 --- a/Json_parser/StaticLuaDefinations/2460/triggerMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -trigger.EDGE_EITHER= nil ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_FALLING= nil ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_RISING= nil ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - ----@alias triggerMode ----| `trigger.EDGE_EITHER` ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_FALLING` ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_RISING` ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - - diff --git a/Json_parser/StaticLuaDefinations/2460/triggerUserDelay.lua b/Json_parser/StaticLuaDefinations/2460/triggerUserDelay.lua deleted file mode 100644 index d794ad5..0000000 --- a/Json_parser/StaticLuaDefinations/2460/triggerUserDelay.lua +++ /dev/null @@ -1,14 +0,0 @@ ----@meta - -trigger.USER_DELAY_M1= nil -trigger.USER_DELAY_M2= nil -trigger.USER_DELAY_M3= nil -trigger.USER_DELAY_M4= nil -trigger.USER_DELAY_M5= nil - ----@alias triggerUserDelay ----| `trigger.USER_DELAY_M1` ----| `trigger.USER_DELAY_M2` ----| `trigger.USER_DELAY_M3` ----| `trigger.USER_DELAY_M4` ----| `trigger.USER_DELAY_M5` diff --git a/Json_parser/StaticLuaDefinations/2460/tsplinkLineMode.lua b/Json_parser/StaticLuaDefinations/2460/tsplinkLineMode.lua deleted file mode 100644 index 54bbb8e..0000000 --- a/Json_parser/StaticLuaDefinations/2460/tsplinkLineMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -tsplink.MODE_DIGITAL_OPEN_DRAIN= nil -tsplink.MODE_TRIGGER_OPEN_DRAIN= nil -tsplink.MODE_SYNCHRONOUS_MASTER= nil -tsplink.MODE_SYNCHRONOUS_ACCEPTOR= nil - ----@alias tsplinkLineMode ----| `tsplink.MODE_DIGITAL_OPEN_DRAIN` ----| `tsplink.MODE_TRIGGER_OPEN_DRAIN` ----| `tsplink.MODE_SYNCHRONOUS_MASTER` ----| `tsplink.MODE_SYNCHRONOUS_ACCEPTOR` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/bufferCustomUnit.lua b/Json_parser/StaticLuaDefinations/2461/bufferCustomUnit.lua deleted file mode 100644 index 95f2cf4..0000000 --- a/Json_parser/StaticLuaDefinations/2461/bufferCustomUnit.lua +++ /dev/null @@ -1,10 +0,0 @@ ----@meta - -buffer.UNIT_CUSTOM1= nil -buffer.UNIT_CUSTOM2= nil -buffer.UNIT_CUSTOM3= nil - ----@alias bufferCustomUnit ----| `buffer.UNIT_CUSTOM1` ----| `buffer.UNIT_CUSTOM2` ----| `buffer.UNIT_CUSTOM3` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/bufferFileSaveDetails.lua b/Json_parser/StaticLuaDefinations/2461/bufferFileSaveDetails.lua deleted file mode 100644 index 2fcce8e..0000000 --- a/Json_parser/StaticLuaDefinations/2461/bufferFileSaveDetails.lua +++ /dev/null @@ -1,61 +0,0 @@ ----@meta - -buffer.COL_ALL= nil -buffer.COL_BRIEF= nil -buffer.COL_CHANNEL= nil -buffer.COL_CSV_CHAN_COLS= nil -buffer.COL_CSV_EASY_GRAPH= nil -buffer.COL_DISPLAY_DIGITS= nil -buffer.COL_EXTRA= nil -buffer.COL_EXTRA_RANGE= nil -buffer.COL_EXTRA_UNIT= nil -buffer.COL_EXTRA_VALUE= nil -buffer.COL_INDEX= nil -buffer.COL_LIMITS= nil -buffer.COL_MATH= nil -buffer.COL_ORIGIN= nil -buffer.COL_QUESTIONABLE= nil -buffer.COL_RANGE_DIGITS= nil -buffer.COL_READING= nil -buffer.COL_STANDARD= nil -buffer.COL_START= nil -buffer.COL_STATUS= nil -buffer.COL_TERMINAL= nil -buffer.COL_TIME_ABSOLUTE= nil -buffer.COL_TIME_PARTS= nil -buffer.COL_TIME_RAW= nil -buffer.COL_TIME_RELATIVE= nil -buffer.COL_TIMESTAMP_READING= nil -buffer.COL_UNIT= nil - ----@alias bufferFileSaveDetails ----| `buffer.COL_ALL` ----| `buffer.COL_BRIEF` ----| `buffer.COL_CHANNEL` ----| `buffer.COL_CSV_CHAN_COLS` ----| `buffer.COL_CSV_EASY_GRAPH` ----| `buffer.COL_DISPLAY_DIGITS` ----| `buffer.COL_EXTRA` ----| `buffer.COL_EXTRA_RANGE` ----| `buffer.COL_EXTRA_UNIT` ----| `buffer.COL_EXTRA_VALUE` ----| `buffer.COL_INDEX` ----| `buffer.COL_LIMITS` ----| `buffer.COL_MATH` ----| `buffer.COL_ORIGIN` ----| `buffer.COL_QUESTIONABLE` ----| `buffer.COL_RANGE_DIGITS` ----| `buffer.COL_READING` ----| `buffer.COL_STANDARD` ----| `buffer.COL_START` ----| `buffer.COL_STATUS` ----| `buffer.COL_TERMINAL` ----| `buffer.COL_TIME_ABSOLUTE` ----| `buffer.COL_TIME_PARTS` ----| `buffer.COL_TIME_RAW` ----| `buffer.COL_TIME_RELATIVE` ----| `buffer.COL_TIMESTAMP_READING` ----| `buffer.COL_UNIT` - - - diff --git a/Json_parser/StaticLuaDefinations/2461/bufferVarstatuses.lua b/Json_parser/StaticLuaDefinations/2461/bufferVarstatuses.lua deleted file mode 100644 index a561f17..0000000 --- a/Json_parser/StaticLuaDefinations/2461/bufferVarstatuses.lua +++ /dev/null @@ -1,21 +0,0 @@ ----@meta - -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_TERMINAL= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_START_GROUP= nil - ----@alias bufferVarstatuses ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_TERMINAL` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_START_GROUP` - diff --git a/Json_parser/StaticLuaDefinations/2461/buttonPressAlias.lua b/Json_parser/StaticLuaDefinations/2461/buttonPressAlias.lua deleted file mode 100644 index e091252..0000000 --- a/Json_parser/StaticLuaDefinations/2461/buttonPressAlias.lua +++ /dev/null @@ -1,13 +0,0 @@ ----@meta - -display.BUTTON_OK= nil -display.BUTTON_CANCEL= nil -display.BUTTON_YES= nil -display.BUTTON_NO= nil - - ----@alias buttonPress ----| `display.BUTTON_OK` ----| `display.BUTTON_CANCEL` ----| `display.BUTTON_YES` ----| `display.BUTTON_NO` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/channelMatchType.lua b/Json_parser/StaticLuaDefinations/2461/channelMatchType.lua deleted file mode 100644 index 16e8a55..0000000 --- a/Json_parser/StaticLuaDefinations/2461/channelMatchType.lua +++ /dev/null @@ -1,16 +0,0 @@ ----@meta - -channel.MATCH_EXACT= nil -channel.MATCH_ANY= nil -channel.MATCH_UNCHANGED= nil -channel.MATCH_NONE= nil - - ----@alias channelMatchType ----| `channel.MATCH_EXACT` ----| `channel.MATCH_ANY` ----| `channel.MATCH_UNCHANGED` ----| `channel.MATCH_NONE` - - - diff --git a/Json_parser/StaticLuaDefinations/2461/displayText.lua b/Json_parser/StaticLuaDefinations/2461/displayText.lua deleted file mode 100644 index f05b37d..0000000 --- a/Json_parser/StaticLuaDefinations/2461/displayText.lua +++ /dev/null @@ -1,8 +0,0 @@ ----@meta - -display.TEXT1= nil -display.TEXT2= nil - ----@alias dsiplayText ----| `display.TEXT1` ----| `display.TEXT2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/display_BUTTON_OPTIONs.lua b/Json_parser/StaticLuaDefinations/2461/display_BUTTON_OPTIONs.lua deleted file mode 100644 index 604a962..0000000 --- a/Json_parser/StaticLuaDefinations/2461/display_BUTTON_OPTIONs.lua +++ /dev/null @@ -1,25 +0,0 @@ ----@meta - - -display.BUTTON_OPTION1 = nil -display.BUTTON_OPTION2 = nil -display.BUTTON_OPTION3 = nil -display.BUTTON_OPTION4 = nil -display.BUTTON_OPTION5 = nil -display.BUTTON_OPTION6 = nil -display.BUTTON_OPTION7 = nil -display.BUTTON_OPTION8 = nil -display.BUTTON_OPTION9 = nil -display.BUTTON_OPTION10 = nil - ----@alias display_BUTTON_OPTIONs ----| `display.BUTTON_OPTION1` ----| `display.BUTTON_OPTION2` ----| `display.BUTTON_OPTION3` ----| `display.BUTTON_OPTION4` ----| `display.BUTTON_OPTION5` ----| `display.BUTTON_OPTION6` ----| `display.BUTTON_OPTION7` ----| `display.BUTTON_OPTION8` ----| `display.BUTTON_OPTION9` ----| `display.BUTTON_OPTION10` diff --git a/Json_parser/StaticLuaDefinations/2461/functionality.lua b/Json_parser/StaticLuaDefinations/2461/functionality.lua index 0dd01f0..dd72687 100644 --- a/Json_parser/StaticLuaDefinations/2461/functionality.lua +++ b/Json_parser/StaticLuaDefinations/2461/functionality.lua @@ -1,9 +1,9 @@ ---@meta -channel = {} -digio = {} -gpib = {} -serial = {} -tsplink = {} +local channel = {} +local digio = {} +local gpib = {} +local serial = {} +local tsplink = {} ---@alias functionality ---| `channel` ---| `digio` diff --git a/Json_parser/StaticLuaDefinations/2461/mathExpressAlias.lua b/Json_parser/StaticLuaDefinations/2461/mathExpressAlias.lua deleted file mode 100644 index 03040eb..0000000 --- a/Json_parser/StaticLuaDefinations/2461/mathExpressAlias.lua +++ /dev/null @@ -1,32 +0,0 @@ ----@meta - -buffer.EXPR_ADD= nil -buffer.EXPR_AVERAGE= nil -buffer.EXPR_DIVIDE= nil -buffer.EXPR_EXPONENT= nil -buffer.EXPR_LOG10= nil -buffer.EXPR_MULTIPLY= nil -buffer.EXPR_NONE= nil -buffer.EXPR_POLY= nil -buffer.EXPR_POWER= nil -buffer.EXPR_RATE= nil -buffer.EXPR_RECIPROCAL= nil -buffer.EXPR_SQROOT= nil -buffer.EXPR_SUBTRACT= nil - ----@alias mathExpression ----| `buffer.EXPR_ADD` ----| `buffer.EXPR_AVERAGE` ----| `buffer.EXPR_DIVIDE` ----| `buffer.EXPR_EXPONENT` ----| `buffer.EXPR_LOG10` ----| `buffer.EXPR_MULTIPLY` ----| `buffer.EXPR_NONE` ----| `buffer.EXPR_POLY` ----| `buffer.EXPR_POWER` ----| `buffer.EXPR_RATE` ----| `buffer.EXPR_RECIPROCAL` ----| `buffer.EXPR_SQROOT` ----| `buffer.EXPR_SUBTRACT` - - diff --git a/Json_parser/StaticLuaDefinations/2461/readingStatus.lua b/Json_parser/StaticLuaDefinations/2461/readingStatus.lua deleted file mode 100644 index 32617a9..0000000 --- a/Json_parser/StaticLuaDefinations/2461/readingStatus.lua +++ /dev/null @@ -1,22 +0,0 @@ ----@meta - -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_REL= nil -buffer.STAT_START_GROUP= nil -buffer.STAT_TERMINAL= nil - ----@alias readingStatus ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_REL` ----| `buffer.STAT_START_GROUP` ----| `buffer.STAT_TERMINAL` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/setblockalias.lua b/Json_parser/StaticLuaDefinations/2461/setblockalias.lua deleted file mode 100644 index 34f5ce6..0000000 --- a/Json_parser/StaticLuaDefinations/2461/setblockalias.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@alias setblockalias ----| `trigger.BLOCK_BRANCH_ALWAYS` ----| `trigger.BLOCK_BRANCH_COUNTER` ----| `trigger.BLOCK_BRANCH_DELTA` ----| `trigger.BLOCK_BRANCH_LIMIT_CONSTANT` ----| `trigger.BLOCK_BRANCH_LIMIT_DYNAMIC` ----| `trigger.BLOCK_BRANCH_ON_EVENT` ----| `trigger.BLOCK_BRANCH_ONCE` ----| `trigger.BLOCK_BRANCH_ONCE_EXCLUDED` ----| `trigger.BLOCK_BUFFER_CLEAR` ----| `trigger.BLOCK_CONFIG_NEXT` ----| `trigger.BLOCK_CONFIG_PREV` ----| `trigger.BLOCK_CONFIG_RECALL` ----| `trigger.BLOCK_DELAY_CONSTANT` ----| `trigger.BLOCK_DELAY_DYNAMIC` ----| `trigger.BLOCK_DIGITAL_IO` ----| `trigger.BLOCK_LOG_EVENT` ----| `trigger.BLOCK_MEASURE` ----| `trigger.BLOCK_MEASURE_DIGITIZE` ----| `trigger.BLOCK_NOP` ----| `trigger.BLOCK_NOTIFY` ----| `trigger.BLOCK_RESET_BRANCH_COUNT` ----| `trigger.BLOCK_SOURCE_OUTPUT` ----| `trigger.BLOCK_WAIT` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/smuMeasureFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2461/smuMeasureFunctionAttribute.lua deleted file mode 100644 index 556183d..0000000 --- a/Json_parser/StaticLuaDefinations/2461/smuMeasureFunctionAttribute.lua +++ /dev/null @@ -1,80 +0,0 @@ -smu.ATTR_MEAS_RANGE_AUTO = nil -smu.ATTR_MEAS_RANGE_HIGH = nil -smu.ATTR_MEAS_RANGE_LOW = nil -smu.ATTR_MEAS_RANGE_REBOUND = nil -smu.ATTR_MEAS_AUTO_ZERO = nil -smu.ATTR_MEAS_COUNT = nil -smu.ATTR_MEAS_DIGITS = nil -smu.ATTR_MEAS_NPLC = nil -smu.ATTR_MEAS_OFFSET_COMP = nil -smu.ATTR_MEAS_RANGE = nil -smu.ATTR_MEAS_REL_ENABLE = nil -smu.ATTR_MEAS_REL_LEVEL = nil -smu.ATTR_MEAS_SENSE = nil -smu.ATTR_MEAS_UNIT = nil -smu.ATTR_MEAS_USER_DELAY_1 = nil -smu.ATTR_MEAS_USER_DELAY_2 = nil -smu.ATTR_MEAS_USER_DELAY_3 = nil -smu.ATTR_MEAS_USER_DELAY_4 = nil -smu.ATTR_MEAS_USER_DELAY_5 = nil -smu.ATTR_MEAS_FILTER_COUNT = nil -smu.ATTR_MEAS_FILTER_ENABLE = nil -smu.ATTR_MEAS_FILTER_TYPE = nil -smu.ATTR_MEAS_MATH_ENABLE = nil -smu.ATTR_MEAS_MATH_MXB_BF = nil -smu.ATTR_MEAS_MATH_MXB_MF = nil -smu.ATTR_MEAS_MATH_FORMAT = nil -smu.ATTR_MEAS_MATH_PERCENT = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_1 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_1 = nil -smu.ATTR_MEAS_LIMIT_FAIL_1 = nil -smu.ATTR_MEAS_LIMIT_HIGH_1 = nil -smu.ATTR_MEAS_LIMIT_LOW_1 = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_2 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_2 = nil -smu.ATTR_MEAS_LIMIT_FAIL_2 = nil -smu.ATTR_MEAS_LIMIT_HIGH_2 = nil -smu.ATTR_MEAS_LIMIT_LOW_2 = nil - ----@alias smuMeasuresetFunctionattribute ----|`smu.ATTR_MEAS_RANGE_AUTO` ----|`smu.ATTR_MEAS_RANGE_HIGH` ----|`smu.ATTR_MEAS_RANGE_LOW` ----|`smu.ATTR_MEAS_RANGE_REBOUND` ----|`smu.ATTR_MEAS_AUTO_ZERO` ----|`smu.ATTR_MEAS_COUNT` ----|`smu.ATTR_MEAS_DIGITS` ----|`smu.ATTR_MEAS_NPLC` ----|`smu.ATTR_MEAS_OFFSET_COMP` ----|`smu.ATTR_MEAS_RANGE` ----|`smu.ATTR_MEAS_REL_ENABLE` ----|`smu.ATTR_MEAS_REL_LEVEL` ----|`smu.ATTR_MEAS_SENSE` ----|`smu.ATTR_MEAS_UNIT` ----|`smu.ATTR_MEAS_USER_DELAY_1` ----|`smu.ATTR_MEAS_USER_DELAY_2` ----|`smu.ATTR_MEAS_USER_DELAY_3` ----|`smu.ATTR_MEAS_USER_DELAY_4` ----|`smu.ATTR_MEAS_USER_DELAY_5` ----|`smu.ATTR_MEAS_FILTER_COUNT` ----|`smu.ATTR_MEAS_FILTER_ENABLE` ----|`smu.ATTR_MEAS_FILTER_TYPE` ----|`smu.ATTR_MEAS_MATH_ENABLE` ----|`smu.ATTR_MEAS_MATH_MXB_BF` ----|`smu.ATTR_MEAS_MATH_MXB_MF` ----|`smu.ATTR_MEAS_MATH_FORMAT` ----|`smu.ATTR_MEAS_MATH_PERCENT` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_1` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_1` ----|`smu.ATTR_MEAS_LIMIT_FAIL_1` ----|`smu.ATTR_MEAS_LIMIT_HIGH_1` ----|`smu.ATTR_MEAS_LIMIT_LOW_1` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_2` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_2` ----|`smu.ATTR_MEAS_LIMIT_FAIL_2` ----|`smu.ATTR_MEAS_LIMIT_HIGH_2` ----|`smu.ATTR_MEAS_LIMIT_LOW_2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/smuSourceFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2461/smuSourceFunctionAttribute.lua deleted file mode 100644 index 214bdf0..0000000 --- a/Json_parser/StaticLuaDefinations/2461/smuSourceFunctionAttribute.lua +++ /dev/null @@ -1,40 +0,0 @@ ----@meta - -smu.ATTR_SRC_RANGE_AUTO = nil -smu.ATTR_SRC_DELAY_AUTO = nil -smu.ATTR_SRC_DELAY = nil -smu.ATTR_SRC_FUNCTION = nil -smu.ATTR_SRC_HIGHC = nil -smu.ATTR_SRC_LEVEL = nil -smu.ATTR_SRC_LIMIT_LEVEL = nil -smu.ATTR_SRC_OFFMODE = nil -smu.ATTR_SRC_PROTECT_LEVEL = nil -smu.ATTR_SRC_PROTECT_TRIPPED = nil -smu.ATTR_SRC_RANGE = nil -smu.ATTR_SRC_READBACK = nil -smu.ATTR_SRC_LIMIT_TRIPPED = nil -smu.ATTR_SRC_USER_DELAY_1 = nil -smu.ATTR_SRC_USER_DELAY_2 = nil -smu.ATTR_SRC_USER_DELAY_3 = nil -smu.ATTR_SRC_USER_DELAY_4 = nil -smu.ATTR_SRC_USER_DELAY_5 = nil - ----@alias smuSourceGetSetAttributes ----|`smu.ATTR_SRC_RANGE_AUTO` ----|`smu.ATTR_SRC_DELAY_AUTO` ----|`smu.ATTR_SRC_DELAY` ----|`smu.ATTR_SRC_FUNCTION` ----|`smu.ATTR_SRC_HIGHC` ----|`smu.ATTR_SRC_LEVEL` ----|`smu.ATTR_SRC_LIMIT_LEVEL` ----|`smu.ATTR_SRC_OFFMODE` ----|`smu.ATTR_SRC_PROTECT_LEVEL` ----|`smu.ATTR_SRC_PROTECT_TRIPPED` ----|`smu.ATTR_SRC_RANGE` ----|`smu.ATTR_SRC_READBACK` ----|`smu.ATTR_SRC_LIMIT_TRIPPED` ----|`smu.ATTR_SRC_USER_DELAY_1` ----|`smu.ATTR_SRC_USER_DELAY_2` ----|`smu.ATTR_SRC_USER_DELAY_3` ----|`smu.ATTR_SRC_USER_DELAY_4` ----|`smu.ATTR_SRC_USER_DELAY_5` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/triggerEventNotify.lua b/Json_parser/StaticLuaDefinations/2461/triggerEventNotify.lua deleted file mode 100644 index 1861311..0000000 --- a/Json_parser/StaticLuaDefinations/2461/triggerEventNotify.lua +++ /dev/null @@ -1,20 +0,0 @@ ----@meta - -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil - ----@alias triggerEventNotify ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2461/triggerEventsAliasStimulus.lua b/Json_parser/StaticLuaDefinations/2461/triggerEventsAliasStimulus.lua deleted file mode 100644 index 0d65d4e..0000000 --- a/Json_parser/StaticLuaDefinations/2461/triggerEventsAliasStimulus.lua +++ /dev/null @@ -1,79 +0,0 @@ ----@meta - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_BLENDER3= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil -trigger.EVENT_SCAN_CHANNEL_READY= nil -trigger.EVENT_SCAN_COMPLETE= nil -trigger.EVENT_SCAN_MEASURE_COMPLETE= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEvents ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_BLENDER3` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` ----| `trigger.EVENT_SCAN_CHANNEL_READY` ----| `trigger.EVENT_SCAN_COMPLETE` ----| `trigger.EVENT_SCAN_MEASURE_COMPLETE` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2461/triggerEventsForFunctionParam.lua b/Json_parser/StaticLuaDefinations/2461/triggerEventsForFunctionParam.lua deleted file mode 100644 index 6ee535c..0000000 --- a/Json_parser/StaticLuaDefinations/2461/triggerEventsForFunctionParam.lua +++ /dev/null @@ -1,80 +0,0 @@ ----@meta - - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEventsForFunctionParam ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2461/triggerMode.lua b/Json_parser/StaticLuaDefinations/2461/triggerMode.lua deleted file mode 100644 index 5f5b2bc..0000000 --- a/Json_parser/StaticLuaDefinations/2461/triggerMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -trigger.EDGE_EITHER= nil ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_FALLING= nil ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_RISING= nil ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - ----@alias triggerMode ----| `trigger.EDGE_EITHER` ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_FALLING` ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_RISING` ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - - diff --git a/Json_parser/StaticLuaDefinations/2461/triggerUserDelay.lua b/Json_parser/StaticLuaDefinations/2461/triggerUserDelay.lua deleted file mode 100644 index d794ad5..0000000 --- a/Json_parser/StaticLuaDefinations/2461/triggerUserDelay.lua +++ /dev/null @@ -1,14 +0,0 @@ ----@meta - -trigger.USER_DELAY_M1= nil -trigger.USER_DELAY_M2= nil -trigger.USER_DELAY_M3= nil -trigger.USER_DELAY_M4= nil -trigger.USER_DELAY_M5= nil - ----@alias triggerUserDelay ----| `trigger.USER_DELAY_M1` ----| `trigger.USER_DELAY_M2` ----| `trigger.USER_DELAY_M3` ----| `trigger.USER_DELAY_M4` ----| `trigger.USER_DELAY_M5` diff --git a/Json_parser/StaticLuaDefinations/2461/tsplinkLineMode.lua b/Json_parser/StaticLuaDefinations/2461/tsplinkLineMode.lua deleted file mode 100644 index 54bbb8e..0000000 --- a/Json_parser/StaticLuaDefinations/2461/tsplinkLineMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -tsplink.MODE_DIGITAL_OPEN_DRAIN= nil -tsplink.MODE_TRIGGER_OPEN_DRAIN= nil -tsplink.MODE_SYNCHRONOUS_MASTER= nil -tsplink.MODE_SYNCHRONOUS_ACCEPTOR= nil - ----@alias tsplinkLineMode ----| `tsplink.MODE_DIGITAL_OPEN_DRAIN` ----| `tsplink.MODE_TRIGGER_OPEN_DRAIN` ----| `tsplink.MODE_SYNCHRONOUS_MASTER` ----| `tsplink.MODE_SYNCHRONOUS_ACCEPTOR` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/bufferCustomUnit.lua b/Json_parser/StaticLuaDefinations/2470/bufferCustomUnit.lua deleted file mode 100644 index 95f2cf4..0000000 --- a/Json_parser/StaticLuaDefinations/2470/bufferCustomUnit.lua +++ /dev/null @@ -1,10 +0,0 @@ ----@meta - -buffer.UNIT_CUSTOM1= nil -buffer.UNIT_CUSTOM2= nil -buffer.UNIT_CUSTOM3= nil - ----@alias bufferCustomUnit ----| `buffer.UNIT_CUSTOM1` ----| `buffer.UNIT_CUSTOM2` ----| `buffer.UNIT_CUSTOM3` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/bufferFileSaveDetails.lua b/Json_parser/StaticLuaDefinations/2470/bufferFileSaveDetails.lua deleted file mode 100644 index 2fcce8e..0000000 --- a/Json_parser/StaticLuaDefinations/2470/bufferFileSaveDetails.lua +++ /dev/null @@ -1,61 +0,0 @@ ----@meta - -buffer.COL_ALL= nil -buffer.COL_BRIEF= nil -buffer.COL_CHANNEL= nil -buffer.COL_CSV_CHAN_COLS= nil -buffer.COL_CSV_EASY_GRAPH= nil -buffer.COL_DISPLAY_DIGITS= nil -buffer.COL_EXTRA= nil -buffer.COL_EXTRA_RANGE= nil -buffer.COL_EXTRA_UNIT= nil -buffer.COL_EXTRA_VALUE= nil -buffer.COL_INDEX= nil -buffer.COL_LIMITS= nil -buffer.COL_MATH= nil -buffer.COL_ORIGIN= nil -buffer.COL_QUESTIONABLE= nil -buffer.COL_RANGE_DIGITS= nil -buffer.COL_READING= nil -buffer.COL_STANDARD= nil -buffer.COL_START= nil -buffer.COL_STATUS= nil -buffer.COL_TERMINAL= nil -buffer.COL_TIME_ABSOLUTE= nil -buffer.COL_TIME_PARTS= nil -buffer.COL_TIME_RAW= nil -buffer.COL_TIME_RELATIVE= nil -buffer.COL_TIMESTAMP_READING= nil -buffer.COL_UNIT= nil - ----@alias bufferFileSaveDetails ----| `buffer.COL_ALL` ----| `buffer.COL_BRIEF` ----| `buffer.COL_CHANNEL` ----| `buffer.COL_CSV_CHAN_COLS` ----| `buffer.COL_CSV_EASY_GRAPH` ----| `buffer.COL_DISPLAY_DIGITS` ----| `buffer.COL_EXTRA` ----| `buffer.COL_EXTRA_RANGE` ----| `buffer.COL_EXTRA_UNIT` ----| `buffer.COL_EXTRA_VALUE` ----| `buffer.COL_INDEX` ----| `buffer.COL_LIMITS` ----| `buffer.COL_MATH` ----| `buffer.COL_ORIGIN` ----| `buffer.COL_QUESTIONABLE` ----| `buffer.COL_RANGE_DIGITS` ----| `buffer.COL_READING` ----| `buffer.COL_STANDARD` ----| `buffer.COL_START` ----| `buffer.COL_STATUS` ----| `buffer.COL_TERMINAL` ----| `buffer.COL_TIME_ABSOLUTE` ----| `buffer.COL_TIME_PARTS` ----| `buffer.COL_TIME_RAW` ----| `buffer.COL_TIME_RELATIVE` ----| `buffer.COL_TIMESTAMP_READING` ----| `buffer.COL_UNIT` - - - diff --git a/Json_parser/StaticLuaDefinations/2470/bufferVarstatuses.lua b/Json_parser/StaticLuaDefinations/2470/bufferVarstatuses.lua deleted file mode 100644 index a561f17..0000000 --- a/Json_parser/StaticLuaDefinations/2470/bufferVarstatuses.lua +++ /dev/null @@ -1,21 +0,0 @@ ----@meta - -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_TERMINAL= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_START_GROUP= nil - ----@alias bufferVarstatuses ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_TERMINAL` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_START_GROUP` - diff --git a/Json_parser/StaticLuaDefinations/2470/buttonPressAlias.lua b/Json_parser/StaticLuaDefinations/2470/buttonPressAlias.lua deleted file mode 100644 index e091252..0000000 --- a/Json_parser/StaticLuaDefinations/2470/buttonPressAlias.lua +++ /dev/null @@ -1,13 +0,0 @@ ----@meta - -display.BUTTON_OK= nil -display.BUTTON_CANCEL= nil -display.BUTTON_YES= nil -display.BUTTON_NO= nil - - ----@alias buttonPress ----| `display.BUTTON_OK` ----| `display.BUTTON_CANCEL` ----| `display.BUTTON_YES` ----| `display.BUTTON_NO` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/channelMatchType.lua b/Json_parser/StaticLuaDefinations/2470/channelMatchType.lua deleted file mode 100644 index 16e8a55..0000000 --- a/Json_parser/StaticLuaDefinations/2470/channelMatchType.lua +++ /dev/null @@ -1,16 +0,0 @@ ----@meta - -channel.MATCH_EXACT= nil -channel.MATCH_ANY= nil -channel.MATCH_UNCHANGED= nil -channel.MATCH_NONE= nil - - ----@alias channelMatchType ----| `channel.MATCH_EXACT` ----| `channel.MATCH_ANY` ----| `channel.MATCH_UNCHANGED` ----| `channel.MATCH_NONE` - - - diff --git a/Json_parser/StaticLuaDefinations/2470/displayText.lua b/Json_parser/StaticLuaDefinations/2470/displayText.lua deleted file mode 100644 index f05b37d..0000000 --- a/Json_parser/StaticLuaDefinations/2470/displayText.lua +++ /dev/null @@ -1,8 +0,0 @@ ----@meta - -display.TEXT1= nil -display.TEXT2= nil - ----@alias dsiplayText ----| `display.TEXT1` ----| `display.TEXT2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/display_BUTTON_OPTIONs.lua b/Json_parser/StaticLuaDefinations/2470/display_BUTTON_OPTIONs.lua deleted file mode 100644 index 604a962..0000000 --- a/Json_parser/StaticLuaDefinations/2470/display_BUTTON_OPTIONs.lua +++ /dev/null @@ -1,25 +0,0 @@ ----@meta - - -display.BUTTON_OPTION1 = nil -display.BUTTON_OPTION2 = nil -display.BUTTON_OPTION3 = nil -display.BUTTON_OPTION4 = nil -display.BUTTON_OPTION5 = nil -display.BUTTON_OPTION6 = nil -display.BUTTON_OPTION7 = nil -display.BUTTON_OPTION8 = nil -display.BUTTON_OPTION9 = nil -display.BUTTON_OPTION10 = nil - ----@alias display_BUTTON_OPTIONs ----| `display.BUTTON_OPTION1` ----| `display.BUTTON_OPTION2` ----| `display.BUTTON_OPTION3` ----| `display.BUTTON_OPTION4` ----| `display.BUTTON_OPTION5` ----| `display.BUTTON_OPTION6` ----| `display.BUTTON_OPTION7` ----| `display.BUTTON_OPTION8` ----| `display.BUTTON_OPTION9` ----| `display.BUTTON_OPTION10` diff --git a/Json_parser/StaticLuaDefinations/2470/functionality.lua b/Json_parser/StaticLuaDefinations/2470/functionality.lua index 0dd01f0..dd72687 100644 --- a/Json_parser/StaticLuaDefinations/2470/functionality.lua +++ b/Json_parser/StaticLuaDefinations/2470/functionality.lua @@ -1,9 +1,9 @@ ---@meta -channel = {} -digio = {} -gpib = {} -serial = {} -tsplink = {} +local channel = {} +local digio = {} +local gpib = {} +local serial = {} +local tsplink = {} ---@alias functionality ---| `channel` ---| `digio` diff --git a/Json_parser/StaticLuaDefinations/2470/mathExpressAlias.lua b/Json_parser/StaticLuaDefinations/2470/mathExpressAlias.lua deleted file mode 100644 index 03040eb..0000000 --- a/Json_parser/StaticLuaDefinations/2470/mathExpressAlias.lua +++ /dev/null @@ -1,32 +0,0 @@ ----@meta - -buffer.EXPR_ADD= nil -buffer.EXPR_AVERAGE= nil -buffer.EXPR_DIVIDE= nil -buffer.EXPR_EXPONENT= nil -buffer.EXPR_LOG10= nil -buffer.EXPR_MULTIPLY= nil -buffer.EXPR_NONE= nil -buffer.EXPR_POLY= nil -buffer.EXPR_POWER= nil -buffer.EXPR_RATE= nil -buffer.EXPR_RECIPROCAL= nil -buffer.EXPR_SQROOT= nil -buffer.EXPR_SUBTRACT= nil - ----@alias mathExpression ----| `buffer.EXPR_ADD` ----| `buffer.EXPR_AVERAGE` ----| `buffer.EXPR_DIVIDE` ----| `buffer.EXPR_EXPONENT` ----| `buffer.EXPR_LOG10` ----| `buffer.EXPR_MULTIPLY` ----| `buffer.EXPR_NONE` ----| `buffer.EXPR_POLY` ----| `buffer.EXPR_POWER` ----| `buffer.EXPR_RATE` ----| `buffer.EXPR_RECIPROCAL` ----| `buffer.EXPR_SQROOT` ----| `buffer.EXPR_SUBTRACT` - - diff --git a/Json_parser/StaticLuaDefinations/2470/readingStatus.lua b/Json_parser/StaticLuaDefinations/2470/readingStatus.lua deleted file mode 100644 index 32617a9..0000000 --- a/Json_parser/StaticLuaDefinations/2470/readingStatus.lua +++ /dev/null @@ -1,22 +0,0 @@ ----@meta - -buffer.STAT_LIMIT1_HIGH= nil -buffer.STAT_LIMIT1_LOW= nil -buffer.STAT_LIMIT2_HIGH= nil -buffer.STAT_LIMIT2_LOW= nil -buffer.STAT_ORIGIN= nil -buffer.STAT_QUESTIONABLE= nil -buffer.STAT_REL= nil -buffer.STAT_START_GROUP= nil -buffer.STAT_TERMINAL= nil - ----@alias readingStatus ----| `buffer.STAT_LIMIT1_HIGH` ----| `buffer.STAT_LIMIT1_LOW` ----| `buffer.STAT_LIMIT2_HIGH` ----| `buffer.STAT_LIMIT2_LOW` ----| `buffer.STAT_ORIGIN` ----| `buffer.STAT_QUESTIONABLE` ----| `buffer.STAT_REL` ----| `buffer.STAT_START_GROUP` ----| `buffer.STAT_TERMINAL` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/setblockalias.lua b/Json_parser/StaticLuaDefinations/2470/setblockalias.lua deleted file mode 100644 index 34f5ce6..0000000 --- a/Json_parser/StaticLuaDefinations/2470/setblockalias.lua +++ /dev/null @@ -1,26 +0,0 @@ ----@meta - ----@alias setblockalias ----| `trigger.BLOCK_BRANCH_ALWAYS` ----| `trigger.BLOCK_BRANCH_COUNTER` ----| `trigger.BLOCK_BRANCH_DELTA` ----| `trigger.BLOCK_BRANCH_LIMIT_CONSTANT` ----| `trigger.BLOCK_BRANCH_LIMIT_DYNAMIC` ----| `trigger.BLOCK_BRANCH_ON_EVENT` ----| `trigger.BLOCK_BRANCH_ONCE` ----| `trigger.BLOCK_BRANCH_ONCE_EXCLUDED` ----| `trigger.BLOCK_BUFFER_CLEAR` ----| `trigger.BLOCK_CONFIG_NEXT` ----| `trigger.BLOCK_CONFIG_PREV` ----| `trigger.BLOCK_CONFIG_RECALL` ----| `trigger.BLOCK_DELAY_CONSTANT` ----| `trigger.BLOCK_DELAY_DYNAMIC` ----| `trigger.BLOCK_DIGITAL_IO` ----| `trigger.BLOCK_LOG_EVENT` ----| `trigger.BLOCK_MEASURE` ----| `trigger.BLOCK_MEASURE_DIGITIZE` ----| `trigger.BLOCK_NOP` ----| `trigger.BLOCK_NOTIFY` ----| `trigger.BLOCK_RESET_BRANCH_COUNT` ----| `trigger.BLOCK_SOURCE_OUTPUT` ----| `trigger.BLOCK_WAIT` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/smuMeasureFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2470/smuMeasureFunctionAttribute.lua deleted file mode 100644 index 556183d..0000000 --- a/Json_parser/StaticLuaDefinations/2470/smuMeasureFunctionAttribute.lua +++ /dev/null @@ -1,80 +0,0 @@ -smu.ATTR_MEAS_RANGE_AUTO = nil -smu.ATTR_MEAS_RANGE_HIGH = nil -smu.ATTR_MEAS_RANGE_LOW = nil -smu.ATTR_MEAS_RANGE_REBOUND = nil -smu.ATTR_MEAS_AUTO_ZERO = nil -smu.ATTR_MEAS_COUNT = nil -smu.ATTR_MEAS_DIGITS = nil -smu.ATTR_MEAS_NPLC = nil -smu.ATTR_MEAS_OFFSET_COMP = nil -smu.ATTR_MEAS_RANGE = nil -smu.ATTR_MEAS_REL_ENABLE = nil -smu.ATTR_MEAS_REL_LEVEL = nil -smu.ATTR_MEAS_SENSE = nil -smu.ATTR_MEAS_UNIT = nil -smu.ATTR_MEAS_USER_DELAY_1 = nil -smu.ATTR_MEAS_USER_DELAY_2 = nil -smu.ATTR_MEAS_USER_DELAY_3 = nil -smu.ATTR_MEAS_USER_DELAY_4 = nil -smu.ATTR_MEAS_USER_DELAY_5 = nil -smu.ATTR_MEAS_FILTER_COUNT = nil -smu.ATTR_MEAS_FILTER_ENABLE = nil -smu.ATTR_MEAS_FILTER_TYPE = nil -smu.ATTR_MEAS_MATH_ENABLE = nil -smu.ATTR_MEAS_MATH_MXB_BF = nil -smu.ATTR_MEAS_MATH_MXB_MF = nil -smu.ATTR_MEAS_MATH_FORMAT = nil -smu.ATTR_MEAS_MATH_PERCENT = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_1 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_1 = nil -smu.ATTR_MEAS_LIMIT_FAIL_1 = nil -smu.ATTR_MEAS_LIMIT_HIGH_1 = nil -smu.ATTR_MEAS_LIMIT_LOW_1 = nil -smu.ATTR_MEAS_LIMIT_AUDIBLE_2 = nil -smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2 = nil -smu.ATTR_MEAS_LIMIT_ENABLE_2 = nil -smu.ATTR_MEAS_LIMIT_FAIL_2 = nil -smu.ATTR_MEAS_LIMIT_HIGH_2 = nil -smu.ATTR_MEAS_LIMIT_LOW_2 = nil - ----@alias smuMeasuresetFunctionattribute ----|`smu.ATTR_MEAS_RANGE_AUTO` ----|`smu.ATTR_MEAS_RANGE_HIGH` ----|`smu.ATTR_MEAS_RANGE_LOW` ----|`smu.ATTR_MEAS_RANGE_REBOUND` ----|`smu.ATTR_MEAS_AUTO_ZERO` ----|`smu.ATTR_MEAS_COUNT` ----|`smu.ATTR_MEAS_DIGITS` ----|`smu.ATTR_MEAS_NPLC` ----|`smu.ATTR_MEAS_OFFSET_COMP` ----|`smu.ATTR_MEAS_RANGE` ----|`smu.ATTR_MEAS_REL_ENABLE` ----|`smu.ATTR_MEAS_REL_LEVEL` ----|`smu.ATTR_MEAS_SENSE` ----|`smu.ATTR_MEAS_UNIT` ----|`smu.ATTR_MEAS_USER_DELAY_1` ----|`smu.ATTR_MEAS_USER_DELAY_2` ----|`smu.ATTR_MEAS_USER_DELAY_3` ----|`smu.ATTR_MEAS_USER_DELAY_4` ----|`smu.ATTR_MEAS_USER_DELAY_5` ----|`smu.ATTR_MEAS_FILTER_COUNT` ----|`smu.ATTR_MEAS_FILTER_ENABLE` ----|`smu.ATTR_MEAS_FILTER_TYPE` ----|`smu.ATTR_MEAS_MATH_ENABLE` ----|`smu.ATTR_MEAS_MATH_MXB_BF` ----|`smu.ATTR_MEAS_MATH_MXB_MF` ----|`smu.ATTR_MEAS_MATH_FORMAT` ----|`smu.ATTR_MEAS_MATH_PERCENT` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_1` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_1` ----|`smu.ATTR_MEAS_LIMIT_FAIL_1` ----|`smu.ATTR_MEAS_LIMIT_HIGH_1` ----|`smu.ATTR_MEAS_LIMIT_LOW_1` ----|`smu.ATTR_MEAS_LIMIT_AUDIBLE_2` ----|`smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2` ----|`smu.ATTR_MEAS_LIMIT_ENABLE_2` ----|`smu.ATTR_MEAS_LIMIT_FAIL_2` ----|`smu.ATTR_MEAS_LIMIT_HIGH_2` ----|`smu.ATTR_MEAS_LIMIT_LOW_2` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/smuSourceFunctionAttribute.lua b/Json_parser/StaticLuaDefinations/2470/smuSourceFunctionAttribute.lua deleted file mode 100644 index 214bdf0..0000000 --- a/Json_parser/StaticLuaDefinations/2470/smuSourceFunctionAttribute.lua +++ /dev/null @@ -1,40 +0,0 @@ ----@meta - -smu.ATTR_SRC_RANGE_AUTO = nil -smu.ATTR_SRC_DELAY_AUTO = nil -smu.ATTR_SRC_DELAY = nil -smu.ATTR_SRC_FUNCTION = nil -smu.ATTR_SRC_HIGHC = nil -smu.ATTR_SRC_LEVEL = nil -smu.ATTR_SRC_LIMIT_LEVEL = nil -smu.ATTR_SRC_OFFMODE = nil -smu.ATTR_SRC_PROTECT_LEVEL = nil -smu.ATTR_SRC_PROTECT_TRIPPED = nil -smu.ATTR_SRC_RANGE = nil -smu.ATTR_SRC_READBACK = nil -smu.ATTR_SRC_LIMIT_TRIPPED = nil -smu.ATTR_SRC_USER_DELAY_1 = nil -smu.ATTR_SRC_USER_DELAY_2 = nil -smu.ATTR_SRC_USER_DELAY_3 = nil -smu.ATTR_SRC_USER_DELAY_4 = nil -smu.ATTR_SRC_USER_DELAY_5 = nil - ----@alias smuSourceGetSetAttributes ----|`smu.ATTR_SRC_RANGE_AUTO` ----|`smu.ATTR_SRC_DELAY_AUTO` ----|`smu.ATTR_SRC_DELAY` ----|`smu.ATTR_SRC_FUNCTION` ----|`smu.ATTR_SRC_HIGHC` ----|`smu.ATTR_SRC_LEVEL` ----|`smu.ATTR_SRC_LIMIT_LEVEL` ----|`smu.ATTR_SRC_OFFMODE` ----|`smu.ATTR_SRC_PROTECT_LEVEL` ----|`smu.ATTR_SRC_PROTECT_TRIPPED` ----|`smu.ATTR_SRC_RANGE` ----|`smu.ATTR_SRC_READBACK` ----|`smu.ATTR_SRC_LIMIT_TRIPPED` ----|`smu.ATTR_SRC_USER_DELAY_1` ----|`smu.ATTR_SRC_USER_DELAY_2` ----|`smu.ATTR_SRC_USER_DELAY_3` ----|`smu.ATTR_SRC_USER_DELAY_4` ----|`smu.ATTR_SRC_USER_DELAY_5` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/triggerEventNotify.lua b/Json_parser/StaticLuaDefinations/2470/triggerEventNotify.lua deleted file mode 100644 index 1861311..0000000 --- a/Json_parser/StaticLuaDefinations/2470/triggerEventNotify.lua +++ /dev/null @@ -1,20 +0,0 @@ ----@meta - -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil - ----@alias triggerEventNotify ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2470/triggerEventsAliasStimulus.lua b/Json_parser/StaticLuaDefinations/2470/triggerEventsAliasStimulus.lua deleted file mode 100644 index 0d65d4e..0000000 --- a/Json_parser/StaticLuaDefinations/2470/triggerEventsAliasStimulus.lua +++ /dev/null @@ -1,79 +0,0 @@ ----@meta - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_BLENDER3= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil -trigger.EVENT_SCAN_CHANNEL_READY= nil -trigger.EVENT_SCAN_COMPLETE= nil -trigger.EVENT_SCAN_MEASURE_COMPLETE= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEvents ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_BLENDER3` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` ----| `trigger.EVENT_SCAN_CHANNEL_READY` ----| `trigger.EVENT_SCAN_COMPLETE` ----| `trigger.EVENT_SCAN_MEASURE_COMPLETE` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2470/triggerEventsForFunctionParam.lua b/Json_parser/StaticLuaDefinations/2470/triggerEventsForFunctionParam.lua deleted file mode 100644 index 6ee535c..0000000 --- a/Json_parser/StaticLuaDefinations/2470/triggerEventsForFunctionParam.lua +++ /dev/null @@ -1,80 +0,0 @@ ----@meta - - -trigger.EVENT_NONE= nil -trigger.EVENT_DISPLAY= nil -trigger.EVENT_NOTIFY1= nil -trigger.EVENT_NOTIFY2= nil -trigger.EVENT_NOTIFY3= nil -trigger.EVENT_NOTIFY4= nil -trigger.EVENT_NOTIFY5= nil -trigger.EVENT_NOTIFY6= nil -trigger.EVENT_NOTIFY7= nil -trigger.EVENT_NOTIFY8= nil -trigger.EVENT_COMMAND= nil -trigger.EVENT_DIGIO1= nil -trigger.EVENT_DIGIO2= nil -trigger.EVENT_DIGIO3= nil -trigger.EVENT_DIGIO4= nil -trigger.EVENT_DIGIO5= nil -trigger.EVENT_DIGIO6= nil -trigger.EVENT_TSPLINK1= nil -trigger.EVENT_TSPLINK2= nil -trigger.EVENT_TSPLINK3= nil -trigger.EVENT_LAN1= nil -trigger.EVENT_LAN2= nil -trigger.EVENT_LAN3= nil -trigger.EVENT_LAN4= nil -trigger.EVENT_LAN5= nil -trigger.EVENT_LAN6= nil -trigger.EVENT_LAN7= nil -trigger.EVENT_LAN8= nil -trigger.EVENT_BLENDER1= nil -trigger.EVENT_BLENDER2= nil -trigger.EVENT_TIMER1= nil -trigger.EVENT_TIMER2= nil -trigger.EVENT_TIMER3= nil -trigger.EVENT_TIMER4= nil -trigger.EVENT_ANALOGTRIGGER= nil -trigger.EVENT_EXTERNAL= nil -trigger.EVENT_SCAN_ALARM_LIMIT= nil - ----@alias triggerEventsForFunctionParam ----| `trigger.EVENT_NONE` ----| `trigger.EVENT_DISPLAY` ----| `trigger.EVENT_NOTIFY1` ----| `trigger.EVENT_NOTIFY2` ----| `trigger.EVENT_NOTIFY3` ----| `trigger.EVENT_NOTIFY4` ----| `trigger.EVENT_NOTIFY5` ----| `trigger.EVENT_NOTIFY6` ----| `trigger.EVENT_NOTIFY7` ----| `trigger.EVENT_NOTIFY8` ----| `trigger.EVENT_COMMAND` ----| `trigger.EVENT_DIGIO1` ----| `trigger.EVENT_DIGIO2` ----| `trigger.EVENT_DIGIO3` ----| `trigger.EVENT_DIGIO4` ----| `trigger.EVENT_DIGIO5` ----| `trigger.EVENT_DIGIO6` ----| `trigger.EVENT_TSPLINK1` ----| `trigger.EVENT_TSPLINK2` ----| `trigger.EVENT_TSPLINK3` ----| `trigger.EVENT_LAN1` ----| `trigger.EVENT_LAN2` ----| `trigger.EVENT_LAN3` ----| `trigger.EVENT_LAN4` ----| `trigger.EVENT_LAN5` ----| `trigger.EVENT_LAN6` ----| `trigger.EVENT_LAN7` ----| `trigger.EVENT_LAN8` ----| `trigger.EVENT_BLENDER1` ----| `trigger.EVENT_BLENDER2` ----| `trigger.EVENT_TIMER1` ----| `trigger.EVENT_TIMER2` ----| `trigger.EVENT_TIMER3` ----| `trigger.EVENT_TIMER4` ----| `trigger.EVENT_ANALOGTRIGGER` ----| `trigger.EVENT_EXTERNAL` ----| `trigger.EVENT_SCAN_ALARM_LIMIT` - diff --git a/Json_parser/StaticLuaDefinations/2470/triggerMode.lua b/Json_parser/StaticLuaDefinations/2470/triggerMode.lua deleted file mode 100644 index 5f5b2bc..0000000 --- a/Json_parser/StaticLuaDefinations/2470/triggerMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -trigger.EDGE_EITHER= nil ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_FALLING= nil ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state -trigger.EDGE_RISING= nil ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - ----@alias triggerMode ----| `trigger.EDGE_EITHER` ---Trigger packets detected as rising or falling edge (positive or negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_FALLING` ---rigger packets detected as falling edge (negative status), LAN trigger packet generated for output with a negative state ----| `trigger.EDGE_RISING` ---rigger packets detected as rising edge (positive status), LAN trigger packet generated for output with a positive state - - diff --git a/Json_parser/StaticLuaDefinations/2470/triggerUserDelay.lua b/Json_parser/StaticLuaDefinations/2470/triggerUserDelay.lua deleted file mode 100644 index d794ad5..0000000 --- a/Json_parser/StaticLuaDefinations/2470/triggerUserDelay.lua +++ /dev/null @@ -1,14 +0,0 @@ ----@meta - -trigger.USER_DELAY_M1= nil -trigger.USER_DELAY_M2= nil -trigger.USER_DELAY_M3= nil -trigger.USER_DELAY_M4= nil -trigger.USER_DELAY_M5= nil - ----@alias triggerUserDelay ----| `trigger.USER_DELAY_M1` ----| `trigger.USER_DELAY_M2` ----| `trigger.USER_DELAY_M3` ----| `trigger.USER_DELAY_M4` ----| `trigger.USER_DELAY_M5` diff --git a/Json_parser/StaticLuaDefinations/2470/tsplinkLineMode.lua b/Json_parser/StaticLuaDefinations/2470/tsplinkLineMode.lua deleted file mode 100644 index 54bbb8e..0000000 --- a/Json_parser/StaticLuaDefinations/2470/tsplinkLineMode.lua +++ /dev/null @@ -1,12 +0,0 @@ ----@meta - -tsplink.MODE_DIGITAL_OPEN_DRAIN= nil -tsplink.MODE_TRIGGER_OPEN_DRAIN= nil -tsplink.MODE_SYNCHRONOUS_MASTER= nil -tsplink.MODE_SYNCHRONOUS_ACCEPTOR= nil - ----@alias tsplinkLineMode ----| `tsplink.MODE_DIGITAL_OPEN_DRAIN` ----| `tsplink.MODE_TRIGGER_OPEN_DRAIN` ----| `tsplink.MODE_SYNCHRONOUS_MASTER` ----| `tsplink.MODE_SYNCHRONOUS_ACCEPTOR` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2601B-PULSE/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2601B-PULSE/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2601B-PULSE/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2601B-PULSE/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2601B-PULSE/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2601B-PULSE/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2601B-PULSE/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2601B-PULSE/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2601B-PULSE/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2601B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2601B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2601B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2601B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2601B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2601B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2601B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2601B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2601B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2602B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2602B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2602B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2602B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2602B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2602B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2602B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2602B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2602B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2604B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2604B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2604B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2604B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2604B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2604B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2604B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2604B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2604B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2611B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2611B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2611B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2611B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2611B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2611B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2611B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2611B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2611B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2612B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2612B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2612B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2612B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2612B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2612B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2612B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2612B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2612B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2614B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2614B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2614B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2614B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2614B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2614B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2614B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2614B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2614B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2634B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2634B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2634B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2634B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2634B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2634B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2634B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2634B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2634B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2635B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2635B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2635B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2635B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2635B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2635B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2635B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2635B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2635B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2636B/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2636B/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2636B/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2636B/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2636B/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2636B/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2636B/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2636B/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2636B/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2651A/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2651A/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2651A/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2651A/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2651A/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2651A/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2651A/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2651A/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2651A/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2657A/digioTriggerModes.lua b/Json_parser/StaticLuaDefinations/2657A/digioTriggerModes.lua deleted file mode 100644 index eacac84..0000000 --- a/Json_parser/StaticLuaDefinations/2657A/digioTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -digio.TRIG_BYPASS = nil -digio.TRIG_FALLING = nil -digio.TRIG_RISING = nil -digio.TRIG_EITHER = nil -digio.TRIG_SYNCHRONOUSA = nil -digio.TRIG_SYNCHRONOUS = nil -digio.TRIG_SYNCHRONOUSM = nil -digio.TRIG_RISINGA = nil -digio.TRIG_RISINGM = nil - ----@alias digioTriggerModes ----| `digio.TRIG_BYPASS` ----| `digio.TRIG_FALLING` ----| `digio.TRIG_RISING` ----| `digio.TRIG_EITHER` ----| `digio.TRIG_SYNCHRONOUSA` ----| `digio.TRIG_SYNCHRONOUS` ----| `digio.TRIG_SYNCHRONOUSM` ----| `digio.TRIG_RISINGA` ----| `digio.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2657A/lanTriggerMode.lua b/Json_parser/StaticLuaDefinations/2657A/lanTriggerMode.lua deleted file mode 100644 index be4eb8c..0000000 --- a/Json_parser/StaticLuaDefinations/2657A/lanTriggerMode.lua +++ /dev/null @@ -1,18 +0,0 @@ -lan.TRIG_EITHER = nil -lan.TRIG_FALLING = nil -lan.TRIG_RISING = nil -lan.TRIG_RISINGA = nil -lan.TRIG_RISINGM = nil -lan.TRIG_SYNCHRONOUS = nil -lan.TRIG_SYNCHRONOUSA = nil -lan.TRIG_SYNCHRONOUSM = nil - ----@alias lanTriggerMode ----| `lan.TRIG_EITHER` ----| `lan.TRIG_FALLING` ----| `lan.TRIG_RISING` ----| `lan.TRIG_RISINGA` ----| `lan.TRIG_RISINGM` ----| `lan.TRIG_SYNCHRONOUS` ----| `lan.TRIG_SYNCHRONOUSA` ----| `lan.TRIG_SYNCHRONOUSM` \ No newline at end of file diff --git a/Json_parser/StaticLuaDefinations/2657A/tsplinkTriggerModes.lua b/Json_parser/StaticLuaDefinations/2657A/tsplinkTriggerModes.lua deleted file mode 100644 index 54f05d6..0000000 --- a/Json_parser/StaticLuaDefinations/2657A/tsplinkTriggerModes.lua +++ /dev/null @@ -1,20 +0,0 @@ -tsplink.TRIG_BYPASS = nil -tsplink.TRIG_FALLING = nil -tsplink.TRIG_RISING = nil -tsplink.TRIG_EITHER = nil -tsplink.TRIG_SYNCHRONOUSA = nil -tsplink.TRIG_SYNCHRONOUS = nil -tsplink.TRIG_SYNCHRONOUSM = nil -tsplink.TRIG_RISINGA = nil -tsplink.TRIG_RISINGM = nil - ----@alias tsplinkTriggerModes ----| `tsplink.TRIG_BYPASS` ----| `tsplink.TRIG_FALLING` ----| `tsplink.TRIG_RISING` ----| `tsplink.TRIG_EITHER` ----| `tsplink.TRIG_SYNCHRONOUSA` ----| `tsplink.TRIG_SYNCHRONOUS` ----| `tsplink.TRIG_SYNCHRONOUSM` ----| `tsplink.TRIG_RISINGA` ----| `tsplink.TRIG_RISINGM` \ No newline at end of file diff --git a/Json_parser/Utility.cs b/Json_parser/Utility.cs index bd70c0c..7f3afd8 100644 --- a/Json_parser/Utility.cs +++ b/Json_parser/Utility.cs @@ -22,6 +22,9 @@ class Utility "2636B" }; + public static string NODE_STR = ""; + public static string NODE_ALIAS_STR = ""; + public class Example_Info { public string example { get; set; } @@ -31,9 +34,15 @@ public class ParamInfo { public string Name { get; set; } public string Description { get; set; } - public string enums { get; set; } + public EnumInfo[] enums { get; set; } public string Type { get; set; } } + public class EnumInfo + { + public string Name { get; set; } + public string Description { get; set; } + public string value { get; set; } + } public class CommandEnum { public string enum_number { get; set; } @@ -77,11 +86,11 @@ public static IList get_return_type_and_default_value(CommandInfo cmd) var type = prm[0].Type; lst.Add(type); - var defaultValue = type.Contains("[]") ? "{}" : type == "table" ? "{}" : type == "string" ? "''" : type == "integer" ? "0" : type == "boolean" ? "true" : "0"; + var defaultValue = type.Contains("[]") ? "{}" : type == "table" ? "{}" : type == "string" ? "''" : type == "integer" ? "0" : type == "boolean" ? "true" : type == "number" ? "0" : type.Contains('|') ? type.Split('|')[0].Trim() : "{}"; - if (prm[0].enums != "") + if (prm[0].enums.Length>0) { - defaultValue = prm[0].enums.Split('|')[0].Split(' ')[0]; + defaultValue = prm[0].enums[0].Name; } lst.Add(defaultValue); @@ -118,7 +127,14 @@ public static IList PopulateCommands(ref JObject obj, string feild) { Name = pi["name"].ToString(), Description = pi["description"].ToString(), - enums = pi["enum"].ToString(), + enums = pi["enum"].ToArray().Select(v => new EnumInfo + { + Name = v["name"].ToString(), + value = v["value"].ToString(), + Description = v["description"].ToString(), + + + }).ToArray(), Type = pi["type"].ToString(), }).ToArray(), related_commands = "TODO", @@ -129,198 +145,117 @@ public static IList PopulateCommands(ref JObject obj, string feild) return cmdList; } - public static void PrintFields(int depth, string file_name, ref Dictionary>[] instrTable, ref string outStr, ref string tsplinkStr, ref string[] arrList, string item) + public static string PrintFields(int depth, string file_name, Dictionary>[] instrTable, bool forTspLink) { + var outStr = ""; + if (forTspLink) // for tsplink node string needs to append in tables + { + NODE_STR = "node[$node_number$]."; + NODE_ALIAS_STR = "node$node_number$_"; + outStr += "node = {}\nnode[$node_number$] = {}\n"; + + } + else + { + NODE_STR = ""; + NODE_ALIAS_STR = ""; + } + + string table_name = ""; string type_name = ""; + string[] arrList = { }; for (int i = 0; i < depth; i++) { foreach (var keyValuePair in instrTable[i]) { string class_data = ""; - if (item != "null") + // Handling Arrays in commands + string[] arrayMarkers = { "[N]", "[Y]", "[slot]", "[1]", "[X]" }; + var is_array = false; + + foreach (var marker in arrayMarkers) { - foreach (var keyvalue in keyValuePair.Value) + if (keyValuePair.Key.Contains(marker)) { - bool a = keyvalue.Value.supportedModels.Contains(item); - if (a == true && !item.Contains("-L") && (item.Contains("2604B") || item.Contains("2614B") || item.Contains("2634B"))) + table_name = keyValuePair.Key.Replace(marker, ""); + type_name = keyValuePair.Key.Replace(marker, "|").Split('|')[0].Replace(".", "") + "Arr"; + if (!arrList.Contains(type_name)) + { + arrList = arrList.Append(type_name).ToArray(); + class_data += $"---@class {type_name}\n"; + class_data += $"local {type_name} = {{}}\n\n"; + class_data += $"---@type {type_name}[]\n"; + class_data += $"{NODE_STR}{table_name} = {{}}\n"; + table_name = $"{type_name}"; + } + else { - return; + string rem = keyValuePair.Key.Replace(marker, "|").Split('|')[1]; + class_data += $"{type_name}{rem} = {{}}\n"; + table_name = $"{type_name}{rem}"; } - continue; + is_array = true; + break; } } - if (keyValuePair.Key.Contains("localnode.settimme()")) - continue; - //Handling Arrays in commands - if (keyValuePair.Key.Contains("[N]") || keyValuePair.Key.Contains("[Y]") || keyValuePair.Key.Contains("[slot]") || keyValuePair.Key.Contains("[1]") || keyValuePair.Key.Contains("[X]")) + if (!is_array) { - if (keyValuePair.Key.Contains("[N]")) - { - table_name = keyValuePair.Key.Replace("[N]", ""); - type_name = keyValuePair.Key.Replace("[N]", "|").Split('|')[0].Replace(".", "") + "Arr"; - } - else if (keyValuePair.Key.Contains("[Y]")) - { - table_name = keyValuePair.Key.Replace("[Y]", ""); - type_name = keyValuePair.Key.Replace("[Y]", "|").Split('|')[0].Replace(".", "") + "Arr"; - } - else if (keyValuePair.Key.Contains("[1]")) - { - table_name = keyValuePair.Key.Replace("[1]", ""); - type_name = keyValuePair.Key.Replace("[1]", "|").Split('|')[0].Replace(".", "") + "Arr"; - } - else if (keyValuePair.Key.Contains("[slot]")) - { - table_name = keyValuePair.Key.Replace("[slot]", ""); - type_name = keyValuePair.Key.Replace("[slot]", "|").Split('|')[0].Replace(".", "") + "Arr"; - } - else - { - table_name = keyValuePair.Key.Replace("[X]", ""); - type_name = keyValuePair.Key.Replace("[X]", "|").Split('|')[0].Replace(".", "") + "Arr"; - } + table_name = NODE_STR + keyValuePair.Key; + class_data += "---@class " + keyValuePair.Key + "\n"; + class_data += $"{table_name} = {{}}\n"; + } - if (!arrList.Contains(type_name)) + outStr += class_data; + outStr += "\n\n"; + foreach (var cmd in keyValuePair.Value) + { + if (forTspLink) { - arrList = arrList.Append(type_name).ToArray(); - class_data += "---@class " + type_name + "\n"; - class_data += "local " + type_name + " = {}\n\n"; - - class_data += "---@type " + type_name + "[]\n"; - class_data += table_name + " = {}\n"; + if (cmd.Value.tsplink_supported.Contains("Yes")) + { + outStr += HelpContent(cmd, file_name, table_name); + } + } + else { - class_data += "---@type " + type_name + "[]\n"; - string rem = ""; - if (keyValuePair.Key.Contains("[N]")) - rem = keyValuePair.Key.Replace("[N]", "|").Split('|')[1]; - else if (keyValuePair.Key.Contains("[Y]")) - rem = keyValuePair.Key.Replace("[Y]", "|").Split('|')[1]; - else if (keyValuePair.Key.Contains("[1]")) - rem = keyValuePair.Key.Replace("[1]", "|").Split('|')[1]; - else if (keyValuePair.Key.Contains("[X]")) - rem = keyValuePair.Key.Replace("[X]", "|").Split('|')[1]; - else - rem = keyValuePair.Key.Replace("[slot]", "|").Split('|')[1]; - class_data += type_name + rem + " = {}\n"; - } + outStr += HelpContent(cmd, file_name, table_name); - } - else - { - //table_name = keyValuePair.Key.Replace("[1]",""); //DMM6500 slot[1] - table_name = keyValuePair.Key; - if (!table_name.Contains("bufferVar") && !table_name.Contains("scriptVar") && !table_name.Contains(".setblock()")) - { - class_data += "---@class " + table_name + "\n"; - if (i == 0) - class_data += table_name + " = {}\n"; - else - class_data += table_name + " = {}\n"; } - } - outStr += class_data; - outStr += "\n\n"; - - bool class_data_populated = false; - foreach (var keyvalue in keyValuePair.Value) - { - HelpContent(keyvalue.Value, file_name, ref outStr, ref tsplinkStr, class_data, class_data_populated, keyValuePair.Key, keyvalue.Key, false); - class_data_populated = true; + } } } + return outStr; } - public static void HelpContent(CommandInfo cmd, string file_name, ref string outStr, ref string tsplinkStr, string class_data, bool class_data_populated, string table, string attr, bool directCall) + public static string HelpContent(KeyValuePair command, string file_name, string table, bool is_dircet_function = false) { - string command_help = ""; - if (cmd.name.Contains("node[N].execute()")) - System.Console.WriteLine(cmd.name); + var command_help = ""; - string[] example = new string[] { }; - string[] enum_class = new string[] { }; + var cmd = command.Value; - #region Enum_Population - foreach (var param in cmd.param_info) + if (is_dircet_function) // direct commands are not available with node { - if (cmd.usage.Length == 0) - continue; - else if ((cmd.command_type == CommandType.Attribute_RW) && (cmd.usage.Length == 1) && (!cmd.usage[0].Contains(param.Name))) - continue; - else if ((cmd.command_type == CommandType.Attribute_RW) && (cmd.usage.Length > 1) && (!cmd.usage[0].Contains(param.Name) || !cmd.usage[1].Contains(param.Name))) - continue; - else if ((cmd.command_type == CommandType.Attribute_RO) && (!cmd.usage[0].Contains(param.Name))) - continue; - else if ((cmd.command_type == CommandType.Function) && ((!cmd.signature.Contains(param.Name) && !cmd.command_return.Contains(param.Name))) && cmd.name != "eventlog.suppress()") - continue; - else if (param.enums != "") - { - var aliasName = param.Type.Contains('|') ? param.Type.Split('|')[0].Trim() : param.Type; - - string[] enum_data = param.enums.Split('|'); - command_help += "\n"; - foreach (var data in enum_data) - { - command_help += data.Split(' ')[0] + " = " + data.Split(' ')[1] + "\n"; - } - command_help += "\n---@alias " + aliasName + "\n"; - foreach (var data in enum_data) - { - command_help += "---|`" + data.Split(' ')[0] + "`\n"; - } - command_help += "\n"; - } + NODE_STR = ""; + NODE_ALIAS_STR = ""; } - //} - command_help += "\n"; - #endregion - - command_help += get_command_header(cmd, file_name) + "\n"; - - if (cmd.name.Contains("trigger.BLOCK_")) + if (cmd.command_type == CommandType.Function) { - command_help += "--- Additional paramteres are:\n"; + // implement function here foreach (var param in cmd.param_info) { - if (param.Name != "blockNumber" && param.Name != cmd.name) + if (param.enums.Length>0) { - command_help += "--- - *" + param.Name + "*: " + param.Description + "
\n"; - if (param.enums != "") - { - string[] enum_data = param.enums.Split('|'); - //command_help += "---\n--- This has a paraamter **" + param.Name + "** , that accepets following enum inputs:\n"; - foreach (var data in enum_data) - { - command_help += "--- ```" + data.Split(' ')[0] + "```
\n"; - } - } + command_help += create_enum_alias_type(param); } } - } - /* if (table.Contains("bufferVar")) - { - if (cmd.signature.Contains("[N]")) - { - outStr += "---@type integer[]\n"; - outStr += "bufferVar." + attr + "= {}\n"; - } - else - { - if (cmd.command_type == CommandType.Function) - outStr += "function bufferVar." + attr + "end \n"; - else - outStr += "bufferVar." + attr + "= 0\n"; - } - return; - } */ + command_help += get_command_header(cmd, file_name) + "\n"; - if (cmd.command_type == CommandType.Function) - { List command_returns = cmd.command_return.ToUpper().Split(',') .Select(st => st.Trim()) .ToList(); @@ -338,177 +273,44 @@ public static void HelpContent(CommandInfo cmd, string file_name, ref string out } foreach (var param in cmd.param_info) { - + if (s.Contains(param.Name.ToUpper())) { - string temp = "\"" + param.Name + "\""; - command_help += "---@param " + param.Name; + if (param.enums.Length>0) + command_help += $"---@param {param.Name} {NODE_ALIAS_STR}{param.Type} {param.Description}\n"; + else + command_help += $"---@param {param.Name} {param.Type} {param.Description}\n"; - if (s.Contains(temp)) - command_help += " " + param.Type + " "; - //else - command_help += " " + param.Type + " "; - command_help += param.Description + "\n"; } else if (command_returns.Contains(param.Name.ToUpper())) { - command_help += "---@return "; - - if (param.Name.Contains("fileNumber")) - command_help += "file_object "; - else if (param.Name.Contains("scriptVar")) - command_help += "scriptVar "; - else if (param.Name.Contains("bufferName") || param.Name.Contains("bufferVar")) - command_help += "bufferVar "; - else if (param.Name.Contains("connectionID")) - command_help += "tspnetConnectionID "; + if (param.enums.Length>0) + command_help += $"---@return {NODE_ALIAS_STR}{param.Type} {param.Name} {param.Description}\n"; else - command_help += param.Type + " "; + command_help += $"---@return {param.Type} {param.Name} {param.Description}\n"; + + //if (param.Name.Contains("fileNumber")) + // command_help += "file_object "; + //else if (param.Name.Contains("scriptVar")) + // command_help += "scriptVar "; + //else if (param.Name.Contains("bufferName") || param.Name.Contains("bufferVar")) + // command_help += "bufferVar "; + //else if (param.Name.Contains("connectionID")) + // command_help += "tspnetConnectionID "; + //else + // command_help += param.Type + " "; - command_help += param.Name + " " + param.Description + "\n"; + //command_help += param.Name + " " + param.Description + "\n"; } - /* else if(cmd.name == "eventlog.suppress()") - { - outStr += "---@param eventType eventlogsuppresseventType\n"; - } */ } cmd.signature = cmd.signature.Replace("\"", ""); - } - - if (cmd.command_type != CommandType.Function && !cmd.name.Contains("trigger.BLOCK_")) // for attributes - { - //foreach (var parm in cmd.param_info) - //{ - // if (parm.enums != "" && !table.Contains("bufferVar")) - // { - // if (cmd.usage[0].Contains(parm.Name))// || cmd.usage[1].Contains(parm.Name)) - // command_help += "---@type " + parm.Type + "\n"; - // } - //} - - var lst = get_return_type_and_default_value(cmd); - - if (table.Contains("[N]") || table.Contains("[Y]") || table.Contains("[slot]") || table.Contains("[1]") || table.Contains("[X]")) - { - string[] a = table.Split('['); - string type_name = a[0].Replace(".", "") + "Arr"; - if (table.Contains("[N]")) - { - a[1] = a[1].Replace("N]", ""); - } - if (table.Contains("[Y]")) - { - a[1] = a[1].Replace("Y]", ""); - } - if (table.Contains("[slot]")) - { - a[1] = a[1].Replace("slot]", ""); - } - if (table.Contains("[1]")) - { - a[1] = a[1].Replace("1]", ""); - } - if (table.Contains("[X]")) - { - a[1] = a[1].Replace("X]", ""); - } - - if (a[1] != "") - { - if (attr.Contains("stimulus") && !attr.Contains("[")) - { - command_help += $"---@type {lst[0]}\n"; - command_help += type_name + a[1] + "." + attr + "= trigger.EVENT_NONE\n\n"; - } - else - { - command_help += $"---@type {lst[0]}\n"; - command_help += type_name + a[1] + "." + attr + "= 0\n\n"; - } - - } - else - { - if (attr.Contains("stimulus[")) - { - command_help += $"---@type {lst[0]}\n"; - attr = attr.Remove(attr.Length - 3, 3); - command_help += type_name + a[1] + "." + attr + "= trigger.EVENT_NONE\n\n"; - } - else if (attr.Contains("stimulus") && !attr.Contains("[")) - { - command_help += $"---@type {lst[0]}\n"; - command_help += type_name + a[1] + "." + attr + "= trigger.EVENT_NONE\n\n"; - } - else - { - command_help += $"---@type {lst[0]}\n"; - command_help += $"{type_name}.{attr} = {lst[1]}\n"; - - } - - } - - } - else if (table.Contains("bufferVar") || table.Contains("bufferName")) - { - command_help += $"---@type {lst[0]}\n"; - command_help += $"bufferVar.{attr} = {lst[1]}\n"; - - } - else if (table.Contains("scriptVar")) - { - command_help += $"---@type {lst[0]}\n"; - command_help += $"scriptVar.{attr} = {lst[1]}\n"; - } - else if (attr.Contains("address[N]")) - { - command_help += "---@type integer[]\n"; - attr = attr.Replace("[N]", ""); - command_help += table + "." + attr + " = 0\n\n"; - } - else if (attr.Contains("stimulus")) - { - command_help += "---@type triggerEvents|0\n"; - command_help += table + "." + attr + "= 0\n\n"; - } - else if (attr.Contains("[N]"))//TODOD need to check this can be removed - { - attr = attr.Remove(attr.Length - 3, 3); - command_help += $"---@type {lst[0]}\n"; - command_help += $"{table}.{attr} = {lst[1]}\n"; - - } - - else if (attr.Contains("EVENT_ID")) - { - command_help += "---@type eventID\n"; - command_help += table + "." + attr + "= nil\n"; - } - else - { - if (directCall) - { - cmd.name = cmd.name.Replace("*", "star_"); - command_help += cmd.name + "= 0\n\n"; - } - else - { - command_help += $"---@type {lst[0]}\n"; - command_help += $"{table}.{attr} = {lst[1]}\n"; - - } - } - } - else if (cmd.command_type == CommandType.Function || (cmd.command_type == CommandType.Attribute_WO && cmd.name.Contains(" trigger.BLOCK_"))) - { - if (cmd.overloads.Length > 0 && !cmd.name.Contains("trigger.BLOCK_")) + if (cmd.overloads.Length > 0) { // System.Console.WriteLine(cmd.signature); foreach (var sig in cmd.overloads) { - System.Console.WriteLine(sig); + int startIndex = sig.IndexOf("(") + 1; int endIndex = sig.IndexOf(")", startIndex); var overlad_params = sig.Substring(startIndex, endIndex - startIndex).Split(',').Select(str => str.Trim()).ToList(); @@ -517,105 +319,60 @@ public static void HelpContent(CommandInfo cmd, string file_name, ref string out foreach (var param in cmd.param_info) { if (cmd.command_return.Contains(param.Name)) - overload_return_type.Add($"{param.Name}:{param.Type}"); + if (param.enums.Length>0) + overload_return_type.Add($"{param.Name}:{NODE_ALIAS_STR}{param.Type}"); + else + overload_return_type.Add($"{param.Name}:{param.Type}"); if (overlad_params.Contains(param.Name)) { - overload_sig_and_type.Add($"{param.Name}:{param.Type}"); + if (param.enums.Length>0) + overload_sig_and_type.Add($"{param.Name}:{NODE_ALIAS_STR}{param.Type}"); + else + overload_sig_and_type.Add($"{param.Name}:{param.Type}"); } } command_help += getOverloadDoc($"({string.Join(",", overload_sig_and_type)}){(overload_return_type.Count > 0 ? ":" : "")}{string.Join(", ", overload_return_type)}") + "\n"; } } - else - { - if (cmd.name.Contains("trigger.BLOCK_") && cmd.overloads.Length > 0) - command_help += "--\n--- Overloads are:\n"; - foreach (var sig in cmd.overloads) - { - command_help += "--- - " + sig + "\n"; - } - } - if (table.Contains("[N]") || table.Contains("[Y]") || table.Contains("[slot]") || table.Contains("[X]")) - { - string[] a = cmd.signature.Split('['); - //string[] a = table.Split('['); - string type_name = a[0].Replace(".", "") + "Arr"; - if (table.Contains("[N]")) - { - a[1] = a[1].Replace("N]", ""); - } - if (table.Contains("[Y]")) - { - a[1] = a[1].Replace("Y]", ""); - } - if (table.Contains("[slot]")) - { - a[1] = a[1].Replace("slot]", ""); - } - if (table.Contains("[X]")) - { - a[1] = a[1].Replace("X]", ""); - } - command_help += "function " + type_name + a[1] + " end\n\n"; - } - else if (cmd.signature.Contains("scriptVar")) - { - string sig = cmd.signature.Replace("scriptVar", "scriptVar"); - command_help += "function " + sig + " end\n"; - } - else if (cmd.signature.Contains("fileVar")) + var function_name = command.Key.Replace("(", "").Replace(")", ""); + if (is_dircet_function) { - string sig = cmd.signature.Replace("fileVar", "file_object"); - command_help += "function " + sig + " end\n"; - } - else if (cmd.signature.Contains(".catalog()")) - { - try - { - if (cmd.signature.Contains("display.loadmenu")) - cmd.signature = cmd.signature.Split(' ')[4]; - else - cmd.signature = cmd.signature.Split(' ')[3]; - command_help += "function " + cmd.signature + " end\n"; - } - catch - { - command_help += "function " + cmd.signature + " end\n"; - } + command_help += $"function {function_name}({cmd.signature.Substring(start, end - start)}) end\n"; } - else if (cmd.signature.Contains("bufferName.")) + else { - string sig = cmd.signature.Replace("bufferName.", "bufferVar."); - command_help += "function " + sig + " end\n"; + command_help += $"local function {function_name}({cmd.signature.Substring(start, end - start)}) end\n"; + command_help += $"{table}.{function_name} = { function_name}\n"; } - else if (cmd.signature.Contains("bufferVar.")) + + } + + else // attributes + { + + var attr = command.Key.Replace("[M]", "").Replace("[N]", ""); //some attributes are having [N] or [M] at the end , which is alredy handled in its type + var prm = cmd.param_info.Where(param => param.Name.ToUpper() == cmd.command_return.ToUpper()).ToList(); + var lst = get_return_type_and_default_value(cmd); + if (prm[0].enums.Length>0) { - string sig = cmd.signature.Replace("bufferVar.", "bufferVar."); - command_help += "function " + sig + " end\n"; + command_help += create_enum_alias_type(prm[0]); + command_help += get_command_header(cmd, file_name) + "\n"; + + command_help += $"---@type {NODE_ALIAS_STR}{lst[0]}\n"; + command_help += $"{table}.{attr} = {NODE_STR}{lst[1]}\n"; } else { - if (cmd.command_type == CommandType.Function) - command_help += "function " + cmd.signature + " end\n"; - else - command_help += table + "." + attr + " = 0\n\n"; - } - } + command_help += get_command_header(cmd, file_name) + "\n"; - if (cmd.tsplink_supported.Contains("Yes")) - { - if (class_data_populated == false) - tsplinkStr += class_data; - outStr += command_help; - tsplinkStr += command_help; - } - if (cmd.tsplink_supported.Contains("No")) - { - outStr += command_help; + command_help += $"---@type {lst[0]}\n"; + command_help += $"{table}.{attr} = {lst[1]}\n"; + } } + return command_help; } public static string getOverloadDoc(string signature) @@ -653,33 +410,22 @@ public static string get_command_header(CommandInfo cmd, string file_name) } - public static void append_buffermath_signature(ref string outStr) - { - outStr += - @" ----@param readingBuffer bufferVar The name of the reading buffer; the reading buffer selected must be set to the style FULL ----@param unit buffermathunit The units to be applied to the value generated by the expression ----@param mathExpression mathExpression -function buffer.math(readingBuffer, unit, mathExpression, ...) end"; - } - - public static string create_enum_alias_type(ParamInfo param) { var command_help = ""; var aliasName = param.Type.Contains('|') ? param.Type.Split('|')[0].Trim() : param.Type; - string[] enum_data = param.enums.Split('|'); + EnumInfo[] enum_data = param.enums; command_help += "\n"; foreach (var data in enum_data) { - command_help += data.Split(' ')[0] + " = " + data.Split(' ')[1] + "\n"; + command_help += $"{NODE_STR}{data.Name} = nil\n"; } - command_help += "\n---@alias " + aliasName + "\n"; + command_help += $"\n---@alias {NODE_ALIAS_STR}{aliasName}\n"; foreach (var data in enum_data) { - command_help += "---|`" + data.Split(' ')[0] + "`\n"; + command_help += $"---|`{NODE_STR}{data.Name}`\n"; } command_help += "\n"; @@ -753,5 +499,6 @@ public static void CopyStaticFiles(string model, string folder_path) Console.WriteLine($"An error occurred: {ex.Message}"); } } + } } \ No newline at end of file diff --git a/ParserGeneric/__init__.py b/ParserGeneric/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/ParserGeneric/__pycache__/HelperFunctions.cpython-310.pyc b/ParserGeneric/__pycache__/HelperFunctions.cpython-310.pyc deleted file mode 100644 index dd2de5a..0000000 Binary files a/ParserGeneric/__pycache__/HelperFunctions.cpython-310.pyc and /dev/null differ diff --git a/ParserGeneric/__pycache__/HelperFunctions3XXX.cpython-310.pyc b/ParserGeneric/__pycache__/HelperFunctions3XXX.cpython-310.pyc deleted file mode 100644 index 2034ceb..0000000 Binary files a/ParserGeneric/__pycache__/HelperFunctions3XXX.cpython-310.pyc and /dev/null differ diff --git a/ParserGeneric/__pycache__/Parser.cpython-310.pyc b/ParserGeneric/__pycache__/Parser.cpython-310.pyc deleted file mode 100644 index eef44c2..0000000 Binary files a/ParserGeneric/__pycache__/Parser.cpython-310.pyc and /dev/null differ diff --git a/ParserGeneric/__pycache__/Parser3XXX.cpython-310.pyc b/ParserGeneric/__pycache__/Parser3XXX.cpython-310.pyc deleted file mode 100644 index 75a756a..0000000 Binary files a/ParserGeneric/__pycache__/Parser3XXX.cpython-310.pyc and /dev/null differ diff --git a/ParserGeneric/__pycache__/Sample.cpython-310.pyc b/ParserGeneric/__pycache__/Sample.cpython-310.pyc deleted file mode 100644 index 0724427..0000000 Binary files a/ParserGeneric/__pycache__/Sample.cpython-310.pyc and /dev/null differ diff --git a/ParserGeneric/__pycache__/__init__.cpython-310.pyc b/ParserGeneric/__pycache__/__init__.cpython-310.pyc deleted file mode 100644 index 8a3899d..0000000 Binary files a/ParserGeneric/__pycache__/__init__.cpython-310.pyc and /dev/null differ diff --git a/ParserGeneric/HelperFunctions.py b/helpers/HelperFunctions.py similarity index 70% rename from ParserGeneric/HelperFunctions.py rename to helpers/HelperFunctions.py index 6d83100..17612a0 100644 --- a/ParserGeneric/HelperFunctions.py +++ b/helpers/HelperFunctions.py @@ -3,8 +3,9 @@ import re from bs4 import BeautifulSoup from ordered_set import OrderedSet -from Configuration import Confiurations +from Configuration import Configuration from helpers import cmd_param +import json supportedInstruments = "2601, 2602, 2611, 2612, 2635, 2636, 2601A, 2602A, 2611A, 2612A, 2635A, 2636A,2651A, 2657A, 2601B, 2601B-PULSE, 2602B, 2606B, 2611B, 2612B, 2635B, 2636B, 2604B, 2614B, 2634B,2601B-L, 2602B-L, 2611B-L, 2612B-L, 2635B-L, 2636B-L, 2604B-L, 2614B-L, 2634B-L" @@ -109,7 +110,7 @@ def get_record(name, webhelpfile, cmd_type, default_value, descr, details, param record["usage"] = usage record["overloads"] = list(overloads) record["examples"] = example - if(str(Confiurations.MODEL_NUMBER).find("26")!= -1): + if(str(Configuration.MODEL_NUMBER).find("26")!= -1): if flag == 1: record["supported_models"] = temp_c else: @@ -269,7 +270,7 @@ def get_parameter_details(S, command_name): param_desc = "\n".join([item.get_text(separator='\n') for item in data[1:]]) #24xx, dmm, daq - if(str(Confiurations.MODEL_NUMBER).find("26")!= -1): + if(str(Configuration.MODEL_NUMBER).find("26")!= -1): param_desc = "\n".join([item.get_text().replace("\n", "") for item in data[1:]]) @@ -287,40 +288,27 @@ def get_parameter_details(S, command_name): param_desc = param_desc.split(":")[0] mini_dict["description"] = param_desc - enum_data = "" + enum_data = [] + if len(x) != 0: for index in range(len(x)): - if len(y) > index: - enum_data += x[index] + \ - " " + y[index] + "|" - else: - enum_data += x[index] + " nil" + "|" - enum_data = enum_data[:-1] - enum_class = command_name.replace(".", "") + param - - if "[N]" in command_name: - enum_class = enum_class.replace("[N]", "") - if "[Y]" in command_name: - enum_class = enum_class.replace("[Y]", "") - if "[slot]" in command_name: - enum_class = enum_class.replace("[slot]", "") - if "[X]" in command_name: - enum_class = enum_class.replace("[X]", "") - if "()" in command_name: - enum_class = enum_class.replace("()", "") - if "-" in command_name: - enum_class = enum_class.split( - "-")[0].replace(" ", "") + enum_class.split("-")[1].replace(" ", "") - - enum_data = re.sub("[\w]+smuX","smuX",enum_data) - enum_data = re.sub("[\w]+smu","smu",enum_data) - enum_data = re.sub("[\w]+lan","lan",enum_data) - enum_data = re.sub("[\w]+trigger","trigger",enum_data) - enum_data = re.sub("[\w]+scan","scan",enum_data) - enum_data = re.sub("[\w]+channel","channel",enum_data) - enum_data = re.sub("[\w]+dmm","dmm",enum_data) - - + data = {} + data["name"] = remove_array_string_form_enum(x[index]) + data["value"] = "" + data["description"] = "" + enum_data.append(data) + + + elif command_name in Configuration.MANUALLY_EXTRACTED_COMMANDS: + if param in Configuration.MANUALLY_EXTRACTED_COMMANDS[command_name]["param_info"]: + for enum in Configuration.MANUALLY_EXTRACTED_COMMANDS[command_name]["param_info"][param]["enum"]: + data = {} + data["name"] = enum['name'] + data["value"] = enum['value'] + data["description"] = enum['description'] + enum_data.append(data) + + mini_dict["enum"] = enum_data mini_dict["type"] = get_param_type( command_name, param) @@ -328,94 +316,24 @@ def get_parameter_details(S, command_name): mini_dict["range"] = get_range( command_name, param_desc) param_info.append(mini_dict) - - """ for table_row in param_table: - if_param_present = False - parameter = "" # priv - description = "" # priv - mini_dict = {} - - if table_row == "\n": - continue - - for row_data in table_row: - if row_data == "\n": - continue - - try: - if if_param_present: - raise exception - parameter = row_data.get_text().replace("\n", "") - if parameter == '': - continue - if ("channel.createspecifier()" in command_name or "channel.calibration.unlock" in command_name) and parameter == "X": - parameter = parameter.replace("X", "slotX") - mini_dict["name"] = parameter.replace( - "end", "endPoint").replace("function", "measFunction") - if_param_present = True - except: - try: - if if_param_present: - # description = row_data.get_text() - desc_tag_a = row_data.find_all( - "p", "tablebodytext") - desc_tag_b = row_data.find_all( - "li", "tablelistbullet9pt") - description = "" - - for desc in desc_tag_a: - description = description + desc.text + " " - description = description + "
" - for desc in desc_tag_b: - description = description + desc.text + "
" - description = description.replace("\n", "") - mini_dict["description"] = description - - x = re.findall("[a-z]+\.\w+[0-9_A-Z]", description) - y = re.findall("or\\s(\\d)", description) - - if len(x) != 0: - enum_data = "" - for index in range(len(x)): - if len(y) > index: - enum_data += x[index] + \ - " " + y[index] + "|" - else: - enum_data += x[index] + " nil" + "|" - enum_data = enum_data[:-1] - enum_class = command_name.replace(".", "") - if "[N]" in command_name: - enum_class = enum_class.replace("[N]", "") - if "[Y]" in command_name: - enum_class = enum_class.replace("[Y]", "") - if "[slot]" in command_name: - enum_class = enum_class.replace( - "[slot]", "") - if "()" in command_name: - enum_class = enum_class.replace("()", "") - if "-" in command_name: - enum_class = enum_class.split( - "-")[0].replace(" ", "") + enum_class.split("-")[1].replace(" ", "") - enum_class += parameter - mini_dict["enum"] = enum_data - mini_dict["type"] = enum_class - else: - mini_dict["enum"] = "" - mini_dict["type"] = get_param_type( - command_name, parameter) - mini_dict["range"] = get_range( - command_name, description) - if_param_present = False - param_info.append(mini_dict) - except exception as e: - print(e) - continue """ + except Exception as e: print(command_name, e) return param_info +def remove_array_string_form_enum(enum_data): + enum_data = re.sub("[\w]+smuX","smuX",enum_data) + enum_data = re.sub("[\w]+smu","smu",enum_data) + enum_data = re.sub("[\w]+lan","lan",enum_data) + enum_data = re.sub("[\w]+trigger","trigger",enum_data) + enum_data = re.sub("[\w]+scan","scan",enum_data) + enum_data = re.sub("[\w]+channel","channel",enum_data) + enum_data = re.sub("[\w]+dmm","dmm",enum_data) + return enum_data + + def get_new_row(S, param, disc): new_row = S.new_tag('tr') td1 = S.new_tag("td") @@ -434,13 +352,8 @@ def get_param_type(cmd, param_name) -> str: if str(cmd).startswith("status.") and "*" in cmd: return "number" - file_path = os.path.join("ParserGeneric","tti-command_param_data_type.txt") - if(str(Confiurations.MODEL_NUMBER).find("26")!= -1): - file_path = os.path.join("ParserGeneric","26xx-command_param_data_type.txt") - - paramTypeDetails = cmd_param.getParamTypeDetails( - os.path.abspath(file_path)) - value = paramTypeDetails.get(cmd, None) + + value = Configuration.PARAMS_TYPES_DETAILS.get(cmd, None) if value: param_details = {v.split(':')[0]: v.split( ':')[1].rstrip().lstrip() for v in value.split(',')} @@ -549,4 +462,44 @@ def get_Y_param_options(command,param_details, cmd_type, usage): except: print("Index out of range") - return y_options \ No newline at end of file + return y_options + +def parse_manual_json(file_path): + with open(file_path, 'r', encoding='utf-8') as file: + data = json.load(file) + + commands = data.get("commands", []) + parsed_commands = {} + + for command in commands: + command_name = command.get("name", "") + param_info = command.get("param_info", []) + + parsed_param_info = {} + for param in param_info: + param_name = param.get("name", "") + enums = param.get("enum", []) + + parsed_enums = [] + for enum in enums: + enum_name = enum.get("name", "") + enum_value = enum.get("value", "") + enum_description = enum.get("descriptions", "") + parsed_enums.append({ + "name": enum_name, + "value": enum_value, + "description": enum_description + }) + + parsed_param_info[param_name] = { + "name": param_name, + "enum": parsed_enums + } + + + parsed_commands[command_name] = { + "name": command_name, + "param_info": parsed_param_info + } + + return parsed_commands diff --git a/main.py b/main.py index 210267b..fb38db1 100644 --- a/main.py +++ b/main.py @@ -2,51 +2,70 @@ import json import shutil import sys -from Configuration import Confiurations -from ParserGeneric import HelperFunctions +from Configuration import Configuration +from helpers import HelperFunctions import copy +from helpers import cmd_param +import traceback + def parse_web_help_files(webHelpFoldersDir): output_folder = "data" if os.path.exists(output_folder): - shutil.rmtree(Confiurations.OUTPUT_FOLDER_PATH) + shutil.rmtree(Configuration.OUTPUT_FOLDER_PATH) os.makedirs(output_folder) else: os.makedirs(output_folder) - + for dir in os.listdir(webHelpFoldersDir): try: folder = os.path.join(webHelpFoldersDir, dir) if os.path.isdir(folder): - if dir in Confiurations.SUPPORTED_MODELS: - Confiurations.HELP_FILE_FOLDER_PATH = folder + if dir in Configuration.SUPPORTED_MODELS: + Configuration.HELP_FILE_FOLDER_PATH = folder if str(dir).find("2600B")!= -1: - for model in Confiurations.MODEL_2600B_MODELS: - Confiurations.MODEL_NUMBER = model - Confiurations.CHANNELS = Confiurations.MODEL_CHANNELS.get(model) + for model in Configuration.MODEL_2600B_MODELS: + Configuration.MODEL_NUMBER = model + Configuration.CHANNELS = Configuration.MODEL_CHANNELS.get(model) parse() else: - Confiurations.CHANNELS = Confiurations.MODEL_CHANNELS.get(dir) - Confiurations.MODEL_NUMBER = dir + Configuration.CHANNELS = Configuration.MODEL_CHANNELS.get(dir) + Configuration.MODEL_NUMBER = dir parse() else: - print(dir+ " is not supported") + print(dir + " is not supported") except Exception as E: - print(E) + print(f"An error occurred while processing {dir}: {E}") + traceback.print_exc() def parse(): description_list = [] + + if(str(Configuration.MODEL_NUMBER).find("26")!= -1):#2600 + file_path = os.path.join("resources","2600","26xx-command_param_data_type.txt") + Configuration.PARAMS_TYPES_DETAILS = cmd_param.getParamTypeDetails(file_path) + file_path = os.path.join("resources","2600","manually_extracted_cmd_and_enums.json") + Configuration.MANUALLY_EXTRACTED_COMMANDS = HelperFunctions.parse_manual_json(file_path) + + else:#tti + file_path = os.path.join("resources","tti","manually_extracted_cmd_and_enums.json") + # get static enums types + Configuration.MANUALLY_EXTRACTED_COMMANDS = HelperFunctions.parse_manual_json(file_path) + file_path = os.path.join("resources","tti","tti-command_param_data_type.txt") + Configuration.PARAMS_TYPES_DETAILS = cmd_param.getParamTypeDetails(file_path) + + - for filename in os.listdir(Confiurations.HELP_FILE_FOLDER_PATH): + for filename in os.listdir(Configuration.HELP_FILE_FOLDER_PATH): if filename.endswith('.htm') or filename.endswith('.html'): #if filename.endswith('.html'): # 70xB - fname = os.path.join(Confiurations.HELP_FILE_FOLDER_PATH,filename) + fname = os.path.join(Configuration.HELP_FILE_FOLDER_PATH,filename) soup = HelperFunctions.Parser(fname) try: #command= soup.find_all("h2").pop(0).get_text() @@ -56,19 +75,12 @@ def parse(): # for 2601B-PULSE the commands are already having smua. # Making this to similar to other 2600 models - if Confiurations.MODEL_NUMBER == "2601B-PULSE" and command.find('smua.')!=-1: + if Configuration.MODEL_NUMBER == "2601B-PULSE" and command.find('smua.')!=-1: command = command.replace("smua", "smuX") if command == "*CLS" or command == "*ESR?" or command == "*OPC" or command == "*OPC?" or command == "*ESE" or command == "*ESE?" or command == "*IDN?" or command == "*LANG?" or command == "*LANG" or command == "*RST" or command == "*SRE?" or command == "*SRE" or command == "*STB?" or command == "*TRG" or command == "*TST?" or command == "*WAI": continue - - """ txt = filename+ " -> " + x + "\n" - n = text_file.write(txt) """ - - """ if "*" in command: - txt = filename + " -> " + command + "\n" - n = star_text_file.write(txt) """ if "*" in command and "slot" in command:#available in 37xx model eg. slot[slot].endchannel.* star_command = ["amps","analogoutput","digitalio","isolated","totalizer","voltage"] @@ -103,6 +115,7 @@ def parse(): name, filename, command_type, default_value, explanation, details, param_info, usage, examples, related_commands, tsp_link) description_list.append(record) + elif "*" in command and "status" in command:#available in 26xx model eg. status.operation.* status_star_command = ["condition","enable","event","ntr","ptr"] status_star_command_type = ["Attribute (R)", "Attribute (RW)", "Attribute (R)", "Attribute (RW)", "Attribute (RW)"] @@ -110,7 +123,7 @@ def parse(): channel = [""] if "smuX" in command: - channel = Confiurations.CHANNELS + channel = Configuration.CHANNELS for ch in channel: for x in range(0, 5): @@ -128,20 +141,20 @@ def parse(): elif "smuX" in command and "Y" not in command: explanation, usage, details, examples, related_commands, param_info, command_type, default_value, tsp_link = HelperFunctions.fetch_details( command,soup) - for x in Confiurations.CHANNELS: + for x in Configuration.CHANNELS: name = command.replace("X", x) usage1 = [sig.replace("X", x) for sig in usage] parameter = copy.deepcopy(param_info) for parm in parameter: - for key in parm: - if parm[key] == 'X' or parm[key] =='Y': - continue - else: - parm[key] = parm[key].replace("X",x) - """ temp_enum_datas = deepcopy(enum_datas) - for enum_data in temp_enum_datas: - new_enum = enum_data.get('enum').replace("X",x) - enum_data['enum'] = new_enum """ + for key in parm: + if parm[key] == 'X' or parm[key] =='Y': + continue + elif type(parm[key]) == str: + parm[key] = parm[key].replace("X",x) + elif type(parm[key]) == list: # for enum + parm[key] = [{**i, "name": i["name"].replace("X", x)} for i in parm[key]] + else: + print(f"not an expected type: {type(parm[key])}") record = HelperFunctions.get_record( name,filename, command_type, default_value, explanation, details, parameter, usage1, examples, related_commands,tsp_link) @@ -156,7 +169,7 @@ def parse(): usage_orignal = copy.deepcopy(usage) - for x in Confiurations.CHANNELS: + for x in Configuration.CHANNELS: for y in y_param_details: if "iv" in y: usage = [sig for sig in usage_orignal if "iv" in sig] @@ -171,17 +184,19 @@ def parse(): for key in parm: if parm[key] == 'X' or parm[key] =='Y': continue + elif type(parm[key]) == str: + parm[key] = parm[key].replace("X",x).replace("Y",y) + elif type(parm[key]) == list: # for enum + parm[key] = [{**i, "name": i["name"].replace("X", x).replace("Y", y)} for i in parm[key]] else: - parm[key] = parm[key].replace("X",x).replace("Y",y) - """ temp_enum_datas = deepcopy(enum_datas) - for enum_data in temp_enum_datas: - new_enum = enum_data.get('enum').replace("X",x) - enum_data['enum'] = new_enum """ + print(f"not an expected type: {type(parm[key])}") + record = HelperFunctions.get_record( name, filename, command_type, default_value, explanation, details, parameter, usage1, examples, related_commands,tsp_link) # replace 'Y' with i,v,p,r in signature and uses and overloads and append recoed description_list.append(record) - elif "smu.source.xlimit" in command: # this command is having i,v as parameter that needs to handle sperately + + elif "smu.source.xlimit" in command: # this command is having i,v as parameter that needs to handle separately explanation, usage, details, examples, related_commands, param_info, command_type, default_value, tsp_link = HelperFunctions.fetch_details( command,soup) for x in ["i", "v"]: @@ -192,24 +207,56 @@ def parse(): name,filename, command_type, default_value, explanation, details, parameter, usage1, examples, related_commands,tsp_link) description_list.append(record) + + elif "bufferVar.fillmode" in command and str(Configuration.MODEL_NUMBER).find("26")!= -1: + explanation, usage, details, examples, related_commands, param_info, command_type, default_value, tsp_link = HelperFunctions.fetch_details( + command, soup) + + parameter = copy.deepcopy(param_info) + param = parameter[0] # access fillMode parameter + param["enum"] = [ + {"name": i.replace("X", ch), "description": "", "value": ""} + for ch in Configuration.CHANNELS + for i in ["smuX.FILL_ONCE", "smuX.FILL_WINDOW"] + ] + + record = HelperFunctions.get_record( + command, filename, command_type, default_value, explanation, details, parameter, usage, examples, related_commands,tsp_link) + description_list.append(record) + + elif "buffer.math()" in command: + explanation, usage, details, examples, related_commands, param_info, command_type, default_value, tsp_link = HelperFunctions.fetch_details( + command, soup) + + math_exp_param = {} + math_exp_param["name"] = "mathExpression" + math_exp_param["description"] = "math expression parameter" + math_exp_param["type"] = "mathExpression" + math_exp_param["range"] = "" + enums = [] + for enum in Configuration.MANUALLY_EXTRACTED_COMMANDS[command]["param_info"]["mathExpression"]["enum"]: + data = {} + data["name"] = enum['name'] + data["value"] = enum['value'] + data["description"] = enum['description'] + enums.append(data) + math_exp_param["enum"] = enums + param_info.append(math_exp_param) + + record = HelperFunctions.get_record( + command, filename, command_type, default_value, explanation, details, param_info, usage, examples, related_commands,tsp_link) + record["signature"] = "buffer.math(readingBuffer, unit, mathExpression, ...)" + record["overloads"] = [] + description_list.append(record) + else: if command != " " and command != '' """ and filename =="31093.htm" """: try: explanation, usage, details, examples, related_commands, param_info, command_type, default_value, tsp_link = HelperFunctions.fetch_details( command, soup) - parameter = copy.deepcopy(param_info) - for parm in parameter: - for key in parm: - if "smuX" in parm[key]: - for x in Confiurations.CHANNELS: - parm[key] = parm[key].replace("X",x) - record = HelperFunctions.get_record( - command, filename, command_type, default_value, explanation, details, parameter, usage, examples, related_commands,tsp_link) - #if "setblock()" not in command: + command, filename, command_type, default_value, explanation, details, param_info, usage, examples, related_commands,tsp_link) description_list.append(record) - #else: - # setblock_list.append(record) except Exception as e: print(e) print(command, "Not added to commands list\n File name: ", filename) @@ -217,9 +264,9 @@ def parse(): description_list = {"commands": description_list} json_obj = json.dumps(description_list, indent=4) - with open(os.path.join(Confiurations.OUTPUT_FOLDER_PATH, Confiurations.MODEL_NUMBER+".json"), 'w', newline='') as file: + with open(os.path.join(Configuration.OUTPUT_FOLDER_PATH, Configuration.MODEL_NUMBER+".json"), 'w', newline='') as file: file.write(json_obj) - print(os.path.join(Confiurations.OUTPUT_FOLDER_PATH, Confiurations.MODEL_NUMBER+".json"), "is successfully created") + print(os.path.join(Configuration.OUTPUT_FOLDER_PATH, Configuration.MODEL_NUMBER+".json"), "is successfully created") if __name__ == "__main__": diff --git a/package.json b/package.json index 6b04f26..e1a8358 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tektronix/keithley_instrument_libraries", - "version": "0.18.2", + "version": "0.18.3", "description": "", "main": "index.js", "scripts": { diff --git a/ParserGeneric/26xx-command_param_data_type.txt b/resources/2600/26xx-command_param_data_type.txt similarity index 99% rename from ParserGeneric/26xx-command_param_data_type.txt rename to resources/2600/26xx-command_param_data_type.txt index b3703d5..68bb2f3 100644 --- a/ParserGeneric/26xx-command_param_data_type.txt +++ b/resources/2600/26xx-command_param_data_type.txt @@ -875,10 +875,10 @@ password: string passWord: string localnode.prompts -prompting: localnodepromptsprompting +prompting: 0|1 localnode.prompts4882 -prompting: localnodeprompts4882prompting +prompting: 0|1 localnode.serialno serialno: string @@ -1679,7 +1679,7 @@ connectionID: tspnetConnectionID tspnet.termination() connectionID:tspnetConnectionID -termSequence: tspnetterminationtermSquence +termSequence: tspnetterminationtype type: tspnetterminationtype tspnet.timeout @@ -2514,7 +2514,7 @@ path: string fs.mkdir() path: string -newpath: string +newPath: string fs.rmdir() path: string @@ -2962,7 +2962,7 @@ name: string value: string userstring.catalog() -name: stirng +name: string body: string userstring.delete() @@ -2974,6 +2974,7 @@ value: number waitcomplete() group: any + beeper.enable state: beeperenablestate diff --git a/resources/2600/manually_extracted_cmd_and_enums.json b/resources/2600/manually_extracted_cmd_and_enums.json new file mode 100644 index 0000000..8f89f71 --- /dev/null +++ b/resources/2600/manually_extracted_cmd_and_enums.json @@ -0,0 +1,164 @@ +{ + "commands":[ + { + "name":"digio.trigger[N].mode", + "param_info": [ + { + "name":"triggerMode", + "enum": [ + { + "name":"digio.TRIG_BYPASS", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_FALLING", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_RISING", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_EITHER", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_SYNCHRONOUSA", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_SYNCHRONOUS", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_SYNCHRONOUSM", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_RISINGA", + "value":"", + "descriptions":"" + }, + { + "name":"digio.TRIG_RISINGM", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"lan.trigger[N].mode", + "param_info": [ + { + "name":"mode", + "enum": [ + { + "name":"lan.TRIG_EITHER", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_FALLING", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_RISING", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_RISINGA", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_RISINGM", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_SYNCHRONOUS", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_SYNCHRONOUSA", + "value":"", + "descriptions":"" + }, + { + "name":"lan.TRIG_SYNCHRONOUSM", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"tsplink.trigger[N].mode", + "param_info": [ + { + "name":"mode", + "enum": [ + { + "name":"tsplink.TRIG_BYPASS", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_FALLING", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_RISING", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_EITHER", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_SYNCHRONOUSA", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_SYNCHRONOUS", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_SYNCHRONOUSM", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_RISINGA", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.TRIG_RISINGM", + "value":"", + "descriptions":"" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/resources/tti/manually_extracted_cmd_and_enums.json b/resources/tti/manually_extracted_cmd_and_enums.json new file mode 100644 index 0000000..3568329 --- /dev/null +++ b/resources/tti/manually_extracted_cmd_and_enums.json @@ -0,0 +1,1024 @@ +{ + "commands":[ + { + "name":"buffer.math()", + "param_info": [ + { + "name":"mathExpression", + "enum": [ + { + "name":"buffer.EXPR_NONE", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_ADD", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_AVERAGE", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_DIVIDE", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_EXPONENT", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_LOG10", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_MULTIPLY", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_POLY", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_POWER", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_RATE", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_RECIPROCAL", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_SQROOT", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.EXPR_SUBTRACT", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"buffer.unit()", + "param_info": [ + { + "name":"UNIT_CUSTOMN", + "enum": [ + { + "name":"UNIT_CUSTOM1", + "value":"", + "descriptions":"custom unit1" + }, + { + "name":"UNIT_CUSTOM2", + "value":"", + "descriptions":"custom unit2" + }, + { + "name":"UNIT_CUSTOM3", + "value":"", + "descriptions":"custom unit3" + } + ] + } + ] + }, + { + "name":"buffer.save()", + "param_info": [ + { + "name":"what", + "enum": [ + { + "name":"buffer.COL_ALL", + "value":"", + "descriptions":"Saves all columns." + }, + { + "name":"buffer.COL_BRIEF", + "value":"", + "descriptions":"Saves a brief summary of the buffer." + }, + { + "name":"buffer.COL_CHANNEL", + "value":"", + "descriptions":"Saves the channel information." + }, + { + "name":"buffer.COL_CSV_CHAN_COLS", + "value":"", + "descriptions":"Saves the buffer in CSV format with channel columns." + }, + { + "name":"buffer.COL_CSV_EASY_GRAPH", + "value":"", + "descriptions":"Saves the buffer in CSV format for easy graphing." + }, + { + "name":"buffer.COL_DISPLAY_DIGITS", + "value":"", + "descriptions":"Saves the display digits." + }, + { + "name":"buffer.COL_EXTRA", + "value":"", + "descriptions":"Saves extra information." + }, + { + "name":"buffer.COL_EXTRA_RANGE", + "value":"", + "descriptions":"Saves the extra range information." + }, + { + "name":"buffer.COL_EXTRA_UNIT", + "value":"", + "descriptions":"Saves the extra unit information." + }, + { + "name":"buffer.COL_EXTRA_VALUE", + "value":"", + "descriptions":"Saves the extra value information." + }, + { + "name":"buffer.COL_INDEX", + "value":"", + "descriptions":"Saves the buffer index." + }, + { + "name":"buffer.COL_LIMITS", + "value":"", + "descriptions":"Saves the limit information." + }, + { + "name":"buffer.COL_MATH", + "value":"", + "descriptions":"Saves the math information." + }, + { + "name":"buffer.COL_ORIGIN", + "value":"", + "descriptions":"Saves the origin information." + }, + { + "name":"buffer.COL_QUESTIONABLE", + "value":"", + "descriptions":"Saves the questionable status." + }, + { + "name":"buffer.COL_RANGE_DIGITS", + "value":"", + "descriptions":"Saves the range digits." + }, + { + "name":"buffer.COL_READING", + "value":"", + "descriptions":"Saves the reading information." + }, + { + "name":"buffer.COL_STANDARD", + "value":"", + "descriptions":"Saves the standard information." + }, + { + "name":"buffer.COL_START", + "value":"", + "descriptions":"Saves the start information." + }, + { + "name":"buffer.COL_STATUS", + "value":"", + "descriptions":"Saves the status information." + }, + { + "name":"buffer.COL_TERMINAL", + "value":"", + "descriptions":"Saves the terminal information." + }, + { + "name":"buffer.COL_TIME_ABSOLUTE", + "value":"", + "descriptions":"Saves the absolute time." + }, + { + "name":"buffer.COL_TIME_PARTS", + "value":"", + "descriptions":"Saves the time parts." + }, + { + "name":"buffer.COL_TIME_RAW", + "value":"", + "descriptions":"Saves the raw time." + }, + { + "name":"buffer.COL_TIME_RELATIVE", + "value":"", + "descriptions":"Saves the relative time." + }, + { + "name":"buffer.COL_TIMESTAMP_READING", + "value":"", + "descriptions":"Saves the timestamp reading." + }, + { + "name":"buffer.COL_UNIT", + "value":"", + "descriptions":"Saves the unit information." + } + ] + } + ] + }, + { + "name":"bufferVar.statuses", + "param_info": [ + { + "name":"statusInformation", + "enum": [ + { + "name":"buffer.STAT_QUESTIONABLE", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_ORIGIN", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_TERMINAL", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_LIMIT2_LOW", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_LIMIT2_HIGH", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_LIMIT1_LOW", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_LIMIT1_HIGH", + "value":"", + "descriptions":"" + }, + { + "name":"buffer.STAT_START_GROUP", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"buffer.write.reading()", + "param_info": [ + { + "name":"status", + "enum": [ + { + "name":"buffer.STAT_LIMIT1_HIGH", + "value":"", + "descriptions":"Reading is above high limit 1" + }, + { + "name":"buffer.STAT_LIMIT1_LOW", + "value":"", + "descriptions":"Reading is below low limit 1" + }, + { + "name":"buffer.STAT_LIMIT2_HIGH", + "value":"", + "descriptions":"Reading is above high limit 2" + }, + { + "name":"buffer.STAT_LIMIT2_LOW", + "value":"", + "descriptions":"Reading is below low limit 2" + }, + { + "name":"buffer.STAT_ORIGIN", + "value":"", + "descriptions":"A/D converter from which reading originated; for the Model 2470, this will always be 0 (main)" + }, + { + "name":"buffer.STAT_QUESTIONABLE", + "value":"", + "descriptions":"Measure status questionable" + }, + { + "name":"buffer.STAT_REL", + "value":"", + "descriptions":"Relative offset" + }, + { + "name":"buffer.STAT_SCAN", + "value":"", + "descriptions":"Scan" + }, + { + "name":"buffer.STAT_START_GROUP", + "value":"", + "descriptions":"First reading in a group" + }, + { + "name":"buffer.STAT_TERMINAL", + "value":"", + "descriptions":"Measure terminal, front is 1, rear is 0" + } + ] + } + ] + }, + { + "name":"channel.setmatchtype()", + "param_info": [ + { + "name":"type", + "enum": [ + { + "name":"channel.MATCH_EXACT", + "value":"", + "descriptions":"" + }, + { + "name":"channel.MATCH_ANY", + "value":"", + "descriptions":"" + }, + { + "name":"channel.MATCH_UNCHANGED", + "value":"", + "descriptions":"" + }, + { + "name":"channel.MATCH_NONE", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"display.settext()", + "param_info": [ + { + "name":"displayArea", + "enum": [ + { + "name":"display.TEXT1T", + "value":"", + "descriptions":"" + }, + { + "name":"display.TEXT2", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"display.input.option()", + "param_info": [ + { + "name":"BUTTON_OPTIONn", + "enum": [ + { + "name":"display.BUTTON_OPTION1", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION2", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION3", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION4", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION5", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION6", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION7", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION8", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION9", + "value":"", + "descriptions":"" + }, + { + "name":"display.BUTTON_OPTION10", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"smu.measure.setattribute()", + "param_info": [ + { + "name":"setting", + "enum": [ + { + "name":"smu.ATTR_MEAS_RANGE_AUTO", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_RANGE_HIGH", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_RANGE_LOW", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_RANGE_REBOUND", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_AUTO_ZERO", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_COUNT", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_DIGITS", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_NPLC", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_OFFSET_COMP", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_RANGE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_REL_ENABLE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_REL_LEVEL", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_SENSE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_UNIT", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_USER_DELAY_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_USER_DELAY_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_USER_DELAY_3", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_USER_DELAY_4", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_USER_DELAY_5", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_FILTER_COUNT", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_FILTER_ENABLE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_FILTER_TYPE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_MATH_ENABLE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_MATH_MXB_BF", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_MATH_MXB_MF", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_MATH_FORMAT", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_MATH_PERCENT", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_AUDIBLE_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_ENABLE_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_FAIL_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_HIGH_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_LOW_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_AUDIBLE_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_AUTO_CLEAR_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_ENABLE_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_FAIL_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_HIGH_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_MEAS_LIMIT_LOW_2", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"smu.source.setattribute()", + "param_info": [ + { + "name":"setting", + "enum": [ + { + "name":"smu.ATTR_SRC_RANGE_AUTO", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_DELAY_AUTO", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_DELAY", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_FUNCTION", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_HIGHC", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_LEVEL", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_LIMIT_LEVEL", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_OFFMODE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_PROTECT_LEVEL", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_PROTECT_TRIPPED", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_RANGE", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_READBACK", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_LIMIT_TRIPPED", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_USER_DELAY_1", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_USER_DELAY_2", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_USER_DELAY_3", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_USER_DELAY_4", + "value":"", + "descriptions":"" + }, + { + "name":"smu.ATTR_SRC_USER_DELAY_5", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"trigger.tsplinkout[N].stimulus", + "param_info": [ + { + "name":"event", + "enum": [ + { + "name":"trigger.EVENT_NONE", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DISPLAY", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY1", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY2", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY3", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY4", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY5", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY6", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY7", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_NOTIFY8", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_COMMAND", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DIGIO1", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DIGIO2", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DIGIO3", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DIGIO4", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DIGIO5", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_DIGIO6", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TSPLINK1", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TSPLINK2", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TSPLINK3", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN1", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN2", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN3", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN4", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN5", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN6", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN7", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_LAN8", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_BLENDER1", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_BLENDER2", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TIMER1", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TIMER2", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TIMER3", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_TIMER4", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_ANALOGTRIGGER", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_EXTERNAL", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EVENT_SCAN_ALARM_LIMIT", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"trigger.lanin[N].edge", + "param_info": [ + { + "name":"edgeMode", + "enum": [ + { + "name":"trigger.EDGE_EITHER", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EDGE_FALLING", + "value":"", + "descriptions":"" + }, + { + "name":"trigger.EDGE_RISING", + "value":"", + "descriptions":"" + } + ] + } + ] + }, + { + "name":"tsplink.line[N].mode", + "param_info": [ + { + "name":"mode", + "enum": [ + { + "name":"tsplink.MODE_DIGITAL_OPEN_DRAIN", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.MODE_TRIGGER_OPEN_DRAIN", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.MODE_SYNCHRONOUS_MASTER", + "value":"", + "descriptions":"" + }, + { + "name":"tsplink.MODE_SYNCHRONOUS_ACCEPTOR", + "value":"", + "descriptions":"" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/ParserGeneric/tti-command_param_data_type.txt b/resources/tti/tti-command_param_data_type.txt similarity index 99% rename from ParserGeneric/tti-command_param_data_type.txt rename to resources/tti/tti-command_param_data_type.txt index ff81063..a717e0d 100644 --- a/ParserGeneric/tti-command_param_data_type.txt +++ b/resources/tti/tti-command_param_data_type.txt @@ -1341,7 +1341,7 @@ timer.gettime() time: number trigger.blender[N].orenable -orenable: boolean | true | false +orenable: boolean trigger.blender[N].overrun overrun: boolean @@ -2871,7 +2871,7 @@ name: string value: string userstring.catalog() -name: stirng +name: string body: string userstring.delete()