National Instruments BridgeVIEW 用户手册

下载
页码 455
Appendix A
HMI Function Reference
A-44
© National Instruments Corporation
Tag Status Handler
Use the Tag Status Handler VI to obtain a description of the tag status, by breaking it down 
into warning or error conditions coming from BridgeVIEW as well as the device server. It 
also identifies where the error or warning occurred. The information for looking up status is 
derived from the inputs: tag statussourceserver error codesserver error descriptions
and from an internal error description lookup that describes all the status values returned from 
the Engine or a Server in BridgeVIEW.
source is a string you can use to describe the VI that is the source of 
warning or error indicated by tag status. This is returned as a part of the 
message string if there is an error.
tag status can be broken down into status information from BridgeVIEW 
(Engine or Server); and status information from a server or a user error.
type of dialog (OK msg:1) determines what type of dialog box is 
displayed, if any. Regardless of its value, the VI returns error information 
and a message describing the error. According to the value, the VI does one 
of the following:
Displays no dialog box. This is useful if you want to have 
programmatic control over how an error is handled.
Displays a dialog box with a single OK button. After the user 
responds, the VI returns control to the main VI. This is the default 
setting.
Displays a dialog box with buttons allowing the user to continue or 
stop. If the user cancels, the VI calls the Stop function to halt 
execution.
server error codes is an array of numeric error codes defined for your 
device server(s).
server error descriptions is an array of descriptions of server error codes. 
If an incoming error matches one in server error codes, the VI uses the 
corresponding description from server error descriptions in the message.
message describes the tag status by breaking it down into the error or 
warning returned by BridgeVIEW as well as the error or warning, if any,