Using iFIX Subroutines and Experts
iFIX includes several subroutines that can help simplify scripts that are intended to perform common tasks, such as acknowledging alarms or replacing pictures. Since these subroutines are stored in the FactoryGlobals project, they can be automatically accessed directly through the Visual Basic Editor.
In addition to providing the code necessary to perform the task at hand, subroutines offer several "extras" that you would normally have to code yourself, including:
- Generic error handling.
- Posting of operator messages to alarm areas.
- Conformance to VBA naming conventions.