Keep LabVIEW Front Panel Open In VBAI InspectionPrimary Software: Vision Builder for Automated InspectionPrimary Software Version: 1.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: How do I keep the front panel open for the user when I call a Run LabVIEW VI step in VBAI? Solution: This can be done by manually setting the Front Panel»Open property to True whenever the Run LabVIEW VI step is first called, and then using the Front Panel»Close method later on. The attached VI and inspection show an example implementation of this method. The call front panel status is controlled by putting all of the code inside a case structure connected to a boolean. This boolean's value is controlled from VBAI. Effectively then, VBAI controls the opening and closing of the front panel of the VI. The images below describe how to open and close the front panel programmatically from within LabVIEW. Figure 1. Setting Front Panel » Open property to True
Figure 2. Calling Front Panel»Close method
Note that this does not allow the VI to run in parallel to a VBAI Inspection. When the first Run LabVIEW VI step is called, the VI opens and executes the true case. It then remains open but stopped. Instructions for LabVIEW 8.0 and VBAI 3.0 or higher
Instructions for LabVIEW 7.1 and VBAI 2.6
Related Links: KnowledgeBase 496H20MJ: Error Calling a VI in VBAI Developer Zone Tutorial: Introduction to Vision Builder for Automation Inspection Webcast Product Manuals: NI Vision Builder for Automation Inspection Tutorial Attachments:
Report Date: 05/03/2007 Last Updated: 06/17/2009 Document ID: 4923NP9 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
