Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Assistant 2010 .NET code generation

Solved!
Go to solution

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.

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 1 of 5
(3,718 Views)

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

0 Kudos
Message 2 of 5
(3,711 Views)

Thanks for your response,

As I mentioned, the choice is disabled from the menu. I made sure I installed it.

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 3 of 5
(3,702 Views)
Solution
Accepted by wbadry

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

Download All
Message 4 of 5
(3,699 Views)

Thanks for clarification. Problem solved.

Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

0 Kudos
Message 5 of 5
(3,684 Views)