Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

close camera session

Solved!
Go to solution

ok understood... and which vi u are using to stop the session in case of the express acq. vi?

0 Kudos
Message 11 of 14
(2,321 Views)

HI There,

 

you should check the IMAQ-Palette - there should be a close-session (or similar) vi...

 

Hope that helps,

Mona

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 12 of 14
(2,306 Views)
Solution
Accepted by topic author Norick_17

Hi Norick,

 

If you right click on the Express VI and have it convert it to normal LabVIEW code, the reason becomes visible. The behavior of the Express VI appears to only open the camera on the first time it is called. It then closes it when the Stop boolean goes high. However, there is no code to open it again. I believe the simple behavior of the express VI is designed for the simple use case where a camera is started once and only stops when you are done with it.

 

You could refactor the generated code to always open the camera if the refnum wire is not valid. Or you could just stop calling into the Express VI when your value change event occurs rather than calling into it and telling it to stop. The acquisition will continue in the background in that case.


Eric

Message 13 of 14
(2,292 Views)

Hi Eric

this is exactly the point I was looking for and now I also fully understand where the problem occurs! I was not aware that I can compile the

express vi to LabView code - which makes things easier to understand of course. Now it is not difficult to modify the code to get everything

running in the way you proposed.

 

thanks for your solution Smiley Happy!

 

regards

            Daniel

 

0 Kudos
Message 14 of 14
(2,286 Views)