User`s guide
2.3.4 Tutorial 4. Error handling for error message
The purpose of this tutorial is to teach you how to apply the error handling function (error in and
error out) of each Advantech VI to debug your program.
1. First, you can open “Tutor2.vi” to continue with Tutorial 2 “Get voltage input from PCL-818L”.
If you did not do Tutorial 2, please refer to Tutorial 2 to implement “Tutor2.vi”.
2. Wire the error out parameter of the DeviceOpen VI to the error in parameter of the
DIOReadPortByte VI. Additionally, wire the error out parameter of the DIOReadPortByte VI
to the error in parameter of the DeviceClose VI.
3. Switch to Front Panel. Add a String Indicator VI to Front Panel for displaying error messages
during error handling.