Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating a vision builder program to labview

Hi, I’ve created a vision builder program using simulate image that looks at a single image and gives a result as a network shared variable.I have successfully written labview code that takes images and saves them as the single image. This works ok

 

However, when I migrate the vision builder program to labview the images change when it is overwritten in the labview code, but the shared variable result does not 

 

my question is can a vision builder program using simulate image and shared variables be migrated to labview, or am I trying to develop something that can’t be done.

best regards

chris

0 Kudos
Message 1 of 3
(2,120 Views)

Hi Chris, 

 

I assume that you mean you are migrating from Vision Builder for AI to LabVIEW? What versions are you using?

 

You should be able to do what you're wanting to do, I don't see a reason why not.

 

Help me understand what exactly you are trying to do and how you are doing it:

  • When you migrate, I assume in Vision Builder, you go to Tools => Migrate and select the correct LabVIEW version?
  • What exactly do you mean with " the images change when it is overwritten in the labview code, but the shared variable result does not "? I don't fully understand what you want to happen? Are you wanting to create extra copies of the images? Or keep the images in memory?

 

Thanks, 
Dan

0 Kudos
Message 2 of 3
(2,045 Views)

Hi Dan,

Thanks for replying to my post.

 

I'm trying to implement a VBAI program that isn't connected to a vision camera. Hence using the simulate acquisition function to view images from a folder. Both LV and VBAI are 2014. I've written a LV code that automatically updates the image with the new image, this works ok.

 

I can migrate the VBAI to labview quite easily, but the shared variables that I created in VBAI don't update, but the image does. Do you know if I can pass shared variables from VBAI that is using simulate acquisition.

 

An alternative approach that I have taken is  run both the lv code and VBAI code simultaneously. but what happens is that if the timing is wrong the lv code will write the image to file as VBAI reads the file and then I get an error. If I could run the VBAI inspection from a LV trigger then this might work.

 

But, I don't know if either of these options are possible.

 

Thanks once again, it is much appreciated

Regards,

Chris

 

If there is a way of running VBAI at a pre determined time then

0 Kudos
Message 3 of 3
(2,039 Views)