NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
masoudk1368
Posts: 17
0 Kudos

show ni vision assistant tools in vb.net

Dear All,

 

       I have a testing project for distance calculating.

I have done this project in Vision assistant 2011 software and I create the vb.net 2008 project through Vision assistant 2011.

 

My problem is as below:

I need that the clamp tools or other tools to be shown in vb.net in defiend part as you can find in attachment.

 

We used 2 pictures in vision assistant as you can find in attachment.

Note :  To run the vision assistant project correctly, you need to save this 2 pictures (up.bmp and down.bmp) in c:\c\up.bmp direction.

 

Please send me the code that show us the used tools (for example: clamp) in Nationalinstrument.vision.imageviewer component (vb.net 2008) after detection.

 

Your kind reply will be highly appreciated.

Best Regards,

Active Participant
JérémyC
Posts: 468
0 Kudos

Re : show ni vision assistant tools in vb.net

Hello,

 

What do you mean by "I need that the clamp tools or other tools to be shown in vb.net"?

 

Do you want to show the elements drawn by the Vision Assistant in the "Form1.vb" of your VB project? Somewhere else?

 

Regards,

Jérémy C.
National Instruments France


Journées techniques : du contrôle d'instruments aux bancs de test
Du 4 au 13 juin : Grenoble - Pari...

Member
masoudk1368
Posts: 17
0 Kudos

Re: show ni vision assistant tools in vb.net

Hello. Thanks for your reply.

 You are right. As you told, I want to show the elements drawn by the Vision Assistant in the "Form1.vb" of our VB project.

 

You can find one of this elements in attached picture ( red border ).

 

Best Regards,

Active Participant
JérémyC
Posts: 468
0 Kudos

Re: show ni vision assistant tools in vb.net

Hello,

 

In fact, what you're trying to do is like importing the tool of Vision Assistant in your VB project which means once the tools would have been converted in VB code, Vision Assistant should be useless.

I'm sorry but using tools of Vision Assistant in a VB project converted from a Vision Assistant sequence is not possible.

Regards,

Jérémy C.
National Instruments France


Journées techniques : du contrôle d'instruments aux bancs de test
Du 4 au 13 juin : Grenoble - Pari...

Member
masoudk1368
Posts: 17
0 Kudos

Re: show ni vision assistant tools in vb.net

Hello

please check the attach file and inform me if it is possible.

thank you

 

Active Participant
JérémyC
Posts: 468
0 Kudos

Re: show ni vision assistant tools in vb.net

Hello,

 

It seems that some of the tools' results are drawn on the picure. It also seems that only the last step in the .vascr is drawn.

 

I join an example. Tell me if it is what you would like to see in the form of your VB .NET project.

 

Regards,

 

 

Jérémy C.
National Instruments France


Journées techniques : du contrôle d'instruments aux bancs de test
Du 4 au 13 juin : Grenoble - Pari...

Member
masoudk1368
Posts: 17
0 Kudos

Re: show ni vision assistant tools in vb.net

Hello,

in your vision assistant project you use the clamp (rake) and max clamp tool . i need to show all of the tools that detected in picture in vb.net

 

thank you

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page