Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Returning String Data From VBAI Custom Step

Primary Software: Vision Builder for Automated Inspection
Primary Software Version: 3.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW 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:


PassStringData.JPG - PassStringData.JPG
PassString.JPG - PassString.JPG



Report Date: 02/06/2007
Last Updated: 03/05/2007
Document ID: 46587GMS

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit