Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

"NI Vision Development Module" and .Net

Solved!
Go to solution

Hello,

i already searched for this question but to be 100% sure i better ask again.

The question is if the program "NI Vision Development Module" which can be found on this page https://www.ni.com/en/shop/data-acquisition-and-control/add-ons-for-data-acquisition-and-control/wha...

can be used with C#.Net? 

The first description says "Hundreds of functions for LabVIEW, C/C++, Visual Basic, and .NET" but when i open the datasheet then there is no word any more from .Net.

 

Second question is: When i run the Vision-software in assistant-mode and it works there, is it then possible to see which functions are used? Or what is the way to write the thing in C# after it my assistant-mode what ok?

 

Thanks for your help

 

0 Kudos
Message 1 of 3
(4,140 Views)

Hi,

 

If you can call external DLLs from C#.Net (I'm pretty sure, that you can), then you can use  NI VDM.

If you want to see which functions was used in Vision Assistant, then you can export your script as *.c file and you will get code snapshot with all of them.

 

best regards,

Andrey.

0 Kudos
Message 2 of 3
(4,139 Views)
Solution
Accepted by topic author OnlyOne

OnlyOne -

 

Currently, the NI Vision Development Module does ship .NET interop assemblies, so it can be used with C#.

 

Vision Assistant has the option to generate LabVIEW or C code, so if you write a script you can generate code and see what functions are being called.  Vision Assistant does not directly generate C# code, but it will generate pseudcode that uses the Visual Basic API (which is what the .NET interop assemblies are based on) so it shouldn't be too difficult to manually convert it to VB.NET or C#.

 

Greg Stoll

Vision R&D

National Instruments

Greg Stoll
LabVIEW R&D
Message 3 of 3
(4,130 Views)