问题标签 [proficy]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
641 浏览

csv - 无法将 csv 文件写入 Proficy Historian 5.0

我能够导入包含proficy historian 5.0 数据收集器标签的csv 文件。但是,每次我尝试导入 csv 格式的数据时,它总是失败并且错误是“错误添加值 [OUTSIDE ARCHIVE ACTIVE HOURS,-12]”。我怀疑这个问题来自 CSV 文件的错误格式,我猜如果我更改历史学家的某些设置,它可能会被修复。我在正确的轨道上吗?谢谢你的想法!

0 投票
1 回答
159 浏览

stored-procedures - 从历史计算中执行 SQL Server 存储过程

使用 Historian 5.5 和 SQL Server 2012。

我在 SQL Server 中调用了一个存储过程,perfEng_RWtopits我想从 Historian Administrator 中的计算标记中调用此过程。

存储过程返回一个float值。

到目前为止,我有以下代码:

当我测试计算时,我得到一个零值和一个坏的质量。如果我在 SQL Server 中执行存储过程,我会得到 17.123554(这是正确的)。另外,如果我将以下内容添加到末尾。

我收到以下错误消息。

Historian 错误消息

任何人都可以帮忙吗?

0 投票
1 回答
321 浏览

c# - 如何从标签中删除数据

我想在 Proficy Historian 5.5 中按时间从所选标签中删除数据。

这可以使用 C# IHUAPI.cs 来完成吗?

0 投票
2 回答
4279 浏览

python - 我如何使用python轻松地从历史学家中提取数据?

我对 Proficy Historian 和 Python 还很陌生。我的应用程序的目的是开始从 Proficy 中提取数据。

GE (Proficy) Historian 安装在 Virtual Machine 上Server A,而我的 python 安装在另一个 VMServer B上。

两台服务器在同一个防火墙下,在同一个 VLAN 中,所以它们可以通信。

我试图环顾四周,但我不确定哪种方法是提取数据的最简单方法......有什么帮助吗?

0 投票
0 回答
296 浏览

vbscript - GE Historian Calc - Total time between values

I am trying to create a simple GE Historian calculation that calculates the time between two values of a tag. For example, I have a temperature tag called "TAG1" that I want to calculate the time it took to go from 100 degrees to 200 degrees in seconds.

In the past I have calculated the time since the last recorded value using:

I believe what is giving me a hard time is I do not know how I can return the timestamp of when a certain tag was a certain value last. Has anybody made a Calculation tag like this before?

Note: GE Historian calculations use VB Script, and PreviousGoodTime is a Built-In function that uses a tagname and a time to start calculation (in this case, "Now-Second" is one second prior to the trigger of the calc)

Update: Accomplished the end result using two intermediary Boolean calculation tags. One that is True when the temperature is higher than 100 degrees (TAG2) and another that is True when higher than 200 degrees (TAG3). The final calculation tag (TAG1 from original post) is triggered when TAG3 steps from False to True and calculates the time since the last good value of TAG2.

Still curious if this can be accomplished in one single Historian Calculation tag.

0 投票
2 回答
761 浏览

vbscript - SendKeys 操作系统限制

SendKeys vbScript 方法是否存在与操作系统相关的复杂性?我正在从 Windows XP 计算机上的 GE Ciplicity 4 项目升级到 Windows Server 2012 R2 虚拟机上的 GE Ciplicity 10 项目。

SendKeys 方法用于在屏幕打开时更改选项卡焦点。无论使用 SendKeys 发送什么密钥,该脚本现在都会无限期冻结。在操作系统更改之前,是否有人遇到过任何 SendKeys 冻结?

到目前为止我参考的文档:

http://proscada.ru/cimplicity/bce-lrf/lrfs/sendkeys.statement.htm

https://social.technet.microsoft.com/wiki/contents/articles/5169.vbscript-sendkeys-method.aspx

0 投票
2 回答
692 浏览

c# - BrowseTags 方法(收集器对象) | VBA 与 C#

有一段时间我一直在尝试用 c# 制作一个独立的程序,它使用 iHistorian_SDK 的 BrowseTags 函数。(iFix 5.8 和 Historian 7.0)

首先,我在 VBA 中创建了这个函数,它工作得很好,但是由于 VBA 是单线程的,我想将它从 VBA 中移除。

我今天有效的 VBA 代码:

这很好用。但是在我尝试将相同的函数转换为 C# 时,我不断收到错误。

首先,我连接到我的历史服务器,这非常轻松。

我尝试连接之前的状态标签:

连接前

我尝试连接后的状态标签:

连接后

建立连接后,我希望能够做一些类似于我在 VBA 中所做的事情。

我的 c# 尝试如下

错误

有谁知道我可以如何解决这个问题,或者是否可以在 C# 中使用与收集器对象相同的方法浏览标签。

我看过这个视频几次,所以我认为这是可能的,他们只是跳过了他们实际浏览标签的代码。

提前致谢/T

0 投票
1 回答
65 浏览

vba - 有没有办法根据值显示文本?

我使用包含 VBA 的软件,它具有完整的 vba 参考库以及自己的自定义内容。

所以我的问题与我假设的所有地方都应该相同的 vba 部分有关。

我有 5 个变量可以选择作为设定点(一次一个),我也有每个变量的反馈信号,显示它是打开还是关闭。

在表单的显示上,我有一个文本行,我想显示选择了哪个变量。

那么有没有办法编写一个代码“如果这个变量是真的显示它”?

感谢你们,

0 投票
0 回答
206 浏览

historian - Proficy Historian RestAPI - 使用包含“#”的标签检索插值数据

我无法从使用 restAPI 的专业历史学家那里访问包含“#”或“/”的标签的插值数据。我能够获得所有其他标签的插值数据。

例如,使用 tagName 访问插值数据:Tag123#Value

返回

但是我能够获取 Tag123#Value 的当前值

注意:我已经对标签进行了 URI 编码,这使我能够检索当前值 - 但是我怀疑问题与 URI 编码有关......

0 投票
1 回答
255 浏览

shell - 是否有参数可以更改通过 Shell 命令打印记事本的字体大小?

我在 Proficy - Cimplicity(基本脚本引擎)中有一个脚本,它建立一个临时文本文件,然后打印它,然后再删除它。它总是运行良好,但由于此脚本现在位于 Windows 10 环境中,因此字体太大。因此,我需要更改打印的字体大小。

我通过记事本使用 shell 命令打印文本文件。

我试图找到任何论据来改变这一点,但我一无所获。

我尝试在记事本应用程序中更改默认大小字体,但它似乎不会影响我使用脚本进行的打印。

我不知道打印字体的实际大小,但我猜它在 11 左右。任何更小的字体都很好,目标是让它像以前在 Windows XP 中一样适合一页。