IFIX,VB读写脚本,PDB

来源:互联网 发布:c语言怎么判断闰年 编辑:程序博客网 时间:2024/06/05 00:35

Description 
This sample code will read data from an iFIX tag.

 

'declare a few objects 
Dim objWorkspace As Object 
Dim objDataItem As Object

'get reference to the workspace 
Set objWorkspace = CreateObject("Workspace.Application") 
'use the workspace.system object to obtain the OODB dataitem 
Set objDataItem = objWorkspace.System.FindObject("Fix32.FIX.AI1.F_CV")

'display the value in a msgbox 
MsgBox objDataItem.Value

objDataItem.Value = "75"

0 0
原创粉丝点击