Vision Assistant Code Generation FAQ
Primary Software: Vision Assistant
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>Professional Development System
Problem: This article addresses some of the problems and questions you may encounter when using the code generation feature in Vision Assistant.
- General Information & Requirements
- Supported Programming Languages
- Windows Vista User Permissions
- LabVIEW 8.0 Hangs When I Try to Generate Code from Vision Assistant
Solution:
- General Information & Requirements
Vision Assistant features a wizard that creates a LabVIEW VI that implements the different steps of the script.
Note: You must have LabVIEW 7.1 or later and the NI Vision 8.2.1 Development Module.
Note: If several versions of LabVIEW and NI Vision are installed on the computer, the wizard searches the machine and displays a list of the available LabVIEW and NI Vision versions you can use to create the VI.
Note: If you have LabVIEW open, you cannot create a VI for a different version of
LabVIEW. For example, if you have LabVIEW 8.0.1 open and you select LabVIEW 8.2
in the LabVIEW VI Creation Wizard, the wizard returns an error when you click Finish.
Note: A fully licensed version of the Vision Development Module is required to generate code in Vision Assistant. This feature is not available with the evaluation version.
- Supported Programming Languages
Vision Assistant has the ability to convert a script over to LabVIEW or C. This can be done by selecting Tools»Create LabVIEW VI or Tools»Create C Code once you have created the script in Vision Assistant.
Vision Assistant does not currently have the capability of migrating code to Visual Basic. However, Vision Assistant will create a "Builder File" that gives the equivalent Visual Basic commands that would be necessary to program the functionality of the script that you have built in Vision Assistant. Once a script has been built, select Tools»Builder File in order to see what these commands would be. A sample Builder File is attached below.
- Windows Visata User Permissions
When generating code for LabVIEW from Vision Assistant it will fail to generate if you are logged in as a standard user. To get the code to generate, log in as an administrator and then generate your code. Once the code is generated you can switch back to being a standard user.
When generating code for C: The code is generated fine but CVI fails to change the compatibility mode and the C files are not added to the CVI project. To correct this, change the compatibility mode when logged in as administrator, then change back to being the standard user.
- LabVIEW Hangs When I Try to Generate Code from Vision Assistant
Vision Assistant successfully launches LabVIEW and the splash screen says "Generating LabVIEW VI", but the code builder hangs at that point. Is there a way to keep this from happening?
This issue is seen in versions of LabVIEW 8.0 and earlier. It can be resolved by selecting 'Run with multiple threads' in LabVIEW under Tools»Options»Performance and Disk.
Related Links: Image Acquisition/Vision SupportProduct Manuals: NI Vision Assistant Tutorial (English and Japanese)Getting Ready for Windows VistaWhich NI Vision Products Support Windows Vista?KnowledgeBase 39QH2IWX: Vision Assistant / VBAI Code Migration to LabVIEW 7.1
Attachments:
Report Date: 09/07/2004
Last Updated: 05/14/2008
Document ID: 3D6FIAL6