这是 vscode-ihyperdb-snippet 插件的说明文档
This is the README for extension "vscode-ihyperdb-snippet".
插件地址 -- Extension in VS Code Market
此插件提供 iHyperDB 计算点表达式的 常见逻辑语法、函数、常用代码的补全
This extension provides common snippets of syntax / built-in functions / practical codes for iHyperDB calculation point formula's configuration.
表达式文档见:iHyperDB手册-计算点表达式
Official online manual about calculation point see the link above.
下方说明格式 Format of the following content 说明:补全需要输入的关键词 1 / 关键词 2 / ... / 关键词 n (输入任意一个关键词的一部分就能能显示相应的补全选项)
command in iHyperDB
Meanings in CH-zh: Keyword 1 / Keyword 2 / ... / Keyword 3
(the snippet floating window pops up when you input part of a keyword)
-
if...else
指令:ihdifelse / ihdifelif...elseif...
指令:ihdifelif / ihdifelseifCondition
(三元运算符)指令:ihdCondition
-
表达式内建函数补全 Built-in functions snippets
FilExtream()
极大值过滤:ihdFilExtream / ihdFilExtreme / Filter Extreme iHDTagYear()
点的快照时间的年份:ihdTagYear / Year of tag time iHDTagMonth()
点的快照时间的月份:ihdTagMonth / Month of tag time iHDTagDay()
点的快照时间的日:ihdTagDay / Day of tag time iHDTagHour()
点的快照时间的小时:ihdTagHour / Hour of tag time iHDTagMinute()
点的快照时间的分钟:ihdTagMinute / Minute of tag time iHDTagSecond()
点的快照时间的秒:ihdTagSecond / second of tag time iHDTagYearday()
点的快照时间是今年的第几天:ihdTagYearday / day in year of tag time ihdTagDaysec()
点的快照时间是今天的第几秒:ihdTagDaysec / second of day of tag time ihdTagUnixsec()
点的快照时间的 Unix 时间戳:ihdTagUnixsec / Unix timestamp of tag iHDPrevVal()
点的上一次记录的值:ihdPrevVal / Previous value of tag iHDNoOutput()
不将计算结果进行保存:ihdNoOutput / Pass / Do nothing / No OperationPreMs()
点前一条记录的毫秒值:ihdPreMs / Previous millisecond of tag iHDNoneRecord()
检查点是否有历史记录:ihdNoneRecord / is record of tag exists / No record of tag / record is emptyPreBadVal()
点前一条记录的数据质量:ihdPreBadVal / Previous record of tag is bad / "record quality / status is bad/good"
-
常用代码补全 Practical Code snippets
trigUP
上升沿:ihd Positive Transition (P) / ihdTriggerUPtrigDown
下降沿:ihd Negative Transition (N) / ihdTriggerDowncompare3
在两数区间:ihdcompare3 / x<=y<=z / x>=y>=z / between / 3 vars compare
无
No additional requirement.
需要在 c 语言模式下,插件才能提供自动补全功能
This snippet extension runs ONLY in C language mode
部分补全规则会与 c 语言本身的补全相冲突,这是由 iHD 语法决定的
iHyperDB has its unique syntax rules so that some snippets conflict with C language syntax check rules.
最初版本。 Initial release.
更新 README.md Update README.md.