Returning String Data From VBAI Custom Step Primary Software: Vision Builder for Automated InspectionPrimary Software Version: 3.0 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Development Systems>>Professional Development System
Problem: I am using the Vision Builder for Automated Inspection (VBAI) Development Toolkit, and I created a custom step in LabVIEW that returns a string value. When I run the step in VBAI, it does not return the correct string value. It either returns no value at all, or it reproduces a previously returned value. How do I create a custom step that properly sends a string? Solution: When creating a VBAI custom step in LabVIEW with the Development Toolkit, measurement values of all data types must be flattened to a string in the User Programming VI. The same is true for a string data type. Use the Flatten to String primitive to convert string data into a format that VBAI can read once the custom step is run. The following figure shows how to properly convert string data in the User Programming VI. Related Links: NI Vision Builder for Automated Inspection Development Toolkit User Guide 3.0 Attachments:
Report Date: 02/06/2007 Last Updated: 03/05/2007 Document ID: 46587GMS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
