Hello all,
In my application due to customer requirement we are using cognex quick build for image process and labview as front end.
Can anyone guide me how to call a cognex jobcode *.vpp from the Labview.
I am using labview 7.1
在 01-15-2016 04:43 AM
HI ,
Have you got solution ?
I don't think you can call a VisionPro file from LabVIEW direct. You would need to build it into the Visual Studio app or .NET assembly and then call it from there through the .NET api probably.
From what I rmember the VPP is just a configuration file for VisionPro to run. There may be a .NET assembly for VisionPro that you could then load the vpp file into and run, Much like you can do with VBAI.
Mike
在 01-16-2016 04:55 AM
HI MikeeB,
yes i need to run .vpp file using labview .net ,
but i am not able to connect labview with cognex, do you have any labview example file for labview + cognex quick build using .net
Sorry I don't have access to VisionPro anymore. I would look at the VB.NET examples that come with it to try and find one that loads in a .vpp file and then runs it.
Then use the .NET example Calling a Private .NET assembly VI you should be able to see how to call the relevant methods.
Good Luck
Mike
在 01-18-2016 04:36 AM
HI Mike ,
i have used .net platte to run .vpp file.
but i am not able to get output image and .vpp file output .
How to get process image output and results of the .vpp file
There should be a results object that you can retrieve from the job manager after that. You should also be able to reference the image output of a step. This is all from memory as I haven't used this in 10+ years
Sorry I can't be more exact
Mike
在 01-18-2016 07:47 AM
Mike ,
thanks for the reply
在 03-31-2018 09:38 PM
can you share your Vi to me , I want to know how to call VPP in labivew .
wenluderen@gmail.com is my E-mail.
Thank you
在 04-21-2018 11:27 PM
Will you implement visionpro call with LabVIEW.net, can you give an example program, I now use "loadobjectfromfile" but unsuccessful, thank you!