LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open cam VI in Main.exe and Vision Acquisition License

Hi,

 

I've an application which controls some devices...I've two questions:

1. I'm building an exe of my main VI. When I run it as exe on other PCs, it doesn't open the subVI (cam_pos_test.vi) (on my PC is everything running ok). The cam subVI is added in the always included VIs, when I build the application. Part of the main level VI looks like this (control/producer loop):

mainVI.JPG

in the red circle is the subVI which opens the Ref to the cam_subVI. It looks like this:

sub_cam_VI_ref.JPG

I think: I make some error in the defining the path of the subVI (cam_pos_test.vi). Do you have some idea, what could be wrong? Why the cam_pos_test does not pop-up as it should on the other machines? 🙂 I've tested the cam_pos_test.vi as exe is running on other PCs.

 

2. I've Vision Acquisition License on my PC. Do I need Vision Acquisition License also for the PC where the executable is running (to use a cam)?

 

Thanks!

 

Angel

0 Kudos
Message 1 of 7
(3,519 Views)

Hi Angel,

 

first to you second question: Yes, you need a deployment license for the Vision Acquisition Software. There are deployment licenses for that.

And I actually think that this might be the problem with your code and this is the reason, why its not running.

Please Check the licenses:

 

Vision Development:

https://www.ni.com/en/shop/data-acquisition-and-control/add-ons-for-data-acquisition-and-control/wha...

 

Vision Acquisition:

https://www.ni.com/en-us/shop/product/vision-acquisition-software.html

 

Hope this helps, Mona

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 2 of 7
(3,499 Views)

Hi Mona,

 

I've also thought about this problem. I've tested it last week on other lab PC with evaluation version of LV and Vision Acquisition:

 

with the source code => it works!

as an executable => it doesn"t work 😞

 

About the licenses: do I need for each PC a Vision Acquisition License (where the executable is running) ?! I've included the cam as an option for a nice visualization only.... Smiley Sad

 

Greetings,

 

Angel

0 Kudos
Message 3 of 7
(3,492 Views)

Hi Angel,

 

it depends what exactly you are using for functions. If it is a function provieded by the Vision Acquisition Software or the Vision Development  you will need a license and normally this kind of errors are caused by licensing.

What functions exactly are you using? Can you upload a very simple example of that? What kind of Software do you have installed on the PC?

 

Thanks, RMathews

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 4 of 7
(3,487 Views)

Hi,

 

I've LabVIEW 2010 Prof. + Vision Acquisition License on my PC (where I write the code). To check: is the problem in the source code or in the executable, I've used an evaluation version of LV2010 on another PC ... as a VI it runs without problems on the lab PC, but as an executable it runs but doesn't open the cam window 😞 (everything else is ok)

The code of the cam.VI is attached. I've used only IMAQdx VIs to obtain an image from the cam...

 

Thank you for your time,

Angel

0 Kudos
Message 5 of 7
(3,474 Views)

Hi There,

 

I think the problem is, that you will need the Vision deployment license to run it as an exe. I dont think that there is an Evalutation license for that. But you could just try it with installing the deployment license without activating it.

 

I hope this helps, RMathews

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 6 of 7
(3,461 Views)

Are you sure that the path to the VI you are trying to open a reference to is correct ? 

There are difference in the path the "Current VI's Path" constant.is giving you depending on if it is an exe or development env.

Make sure that the path is correct for the vi.

0 Kudos
Message 7 of 7
(3,453 Views)