Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Count Failed Inspections and Email Notifications in Vision Builder AI Using the Run LabVIEW VI Step

0 ratings | 0.00 out of 5
Print

Downloads

Filename: countemail.llb
Requirements: View

Filename: countemail_sourcecode.zip
Requirements: View

Filename: countemail.zip
Requirements: View

This example demonstrates the use of the Run LabVIEW VI step to keep a continuous count of failed measurements, display the results on a pop-up graph, and send an email notification when the number of failed parts exceeds a limit.

Description:
The front panel of the VI is opened if it is not already open. A global array is used to store the fail count and the corresponding index is incremented by one when a fail is detected. The count is then graphed. If a particular step fails more than 5 times, an email is sent.

To run the example inspection:
1. Unzip CountEmail.zip to the Vision Builder AI Product folder, typically at C:\Program Files\National Instruments\Vision Builder AI 2.6\Products.
2. Launch Vision Builder AI and open the inspection Count and Email Inspection.
3. Edit the Run LabVIEW VI step.
4. Under the VI Controls tab, click Configure and set constants for Mail Server, Recipient, and Return Address.
5. Click OK.

To view the VI block diagram:
1. Unzip CountEmail_SourceCode.zip.
2. Load EmailFail.vi in LabVIEW.
NOTE: You must have the LabVIEW Internet Toolkit or LabVIEW Full Development System to view the source code. Neither is necessary to run the example script in Vision Builder AI.

To use the example VI in your own Run LabVIEW VI step:
1. Download CountEmail.llb.
2. In the Run LabVIEW VI step, browse to the location of the LLB and select EmailFail.vi.
3. Configure the inputs of the VI.

Requirements


Filename: countemail.llb

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Internet Toolkit 6.0
Language(s): LabVIEW

 
Filename: countemail_sourcecode.zip

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Internet Toolkit 6.0
Language(s): LabVIEW

 
Filename: countemail.zip

Software Requirements


Application Software: NI Vision Builder for Automated Inspection 2.6
Language(s): LabVIEW

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).