08-21-2010 07:19 AM
Hi,
I have Visual Studio 2010 installed on my machine along with Vision Development Module 2010. I attempted to use code generation for .NET but it was disabled. I made sure that .NET components is installed. I also made sure that code generation in the vision assistant tree is installed.
Is it possible that Vision Development Module doesn't sense VS 2010? Is there any remedy to activate it?
Thanks in advance.
Solved! Go to Solution.
08-22-2010 12:12 AM
Hi,
By default, Vision Assistant generates code for LabVIEW. To be able to generate code for .NET, choose .NET as the language for code generation from either the Vision Assistant startup dialog, or from the preferences.
-Christophe
08-22-2010 11:15 AM
08-22-2010 02:31 PM
In the [settings] section of your Vision Assistant.ini file, there should be a CodeGenLanguage key. What is it set to in your system?
CodeGenLanguage = 2 selects .NET as the language for code generation and should enable the Tools>>Create .NET code menu.
The value of this key is set when you specify the language you want for code generation in the startup dialog, or the File>>Preferences dialog.
See attached screenshots.
Also, the Create .NET code menu item will be enabled only when you insert the first step in the script. It will be disabled when no script has been loaded yet.
The enabling/disabling of the code generation menus is solely done based on the what you select from the attached dialogs. It does not depend on the version of Visual Studio installed.
Hope this clarifies things.
Best regards,
-Christophe
08-23-2010 08:23 AM