IFIX,VB读写脚本,PDB

前端之家收集整理的这篇文章主要介绍了IFIX,VB读写脚本,PDB前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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"

原文链接:https://www.f2er.com/vb/256659.html

猜你在找的VB相关文章