Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't duplicate "grab and select interface" example

I want to use a series of booleans to switch between cameras (Boolean 1 selects cam1 and so on) so as to display a live image. I'm working off the "grab & select interface" example but my program throws an error and I don't understand why. Here's what's going on:

 

In the example, the first vi inside the While Loop is IMAQdx Close Camera. The "Session In" is fed from a shift register. That makes sense - when switching between cameras it's necessary to first close the open camera, but how does this work the first time the vi runs, i.e. when no camera has been run?

 

The reason I'm asking is that I've copied this approach and get the error "Invalid Camera Session." Why doesn't the example get this error? What am I doing differently?

 

BTW, I'm running LV 8.2

 

Thanks in advance for your ideas and suggestions.

0 Kudos
Message 1 of 4
(3,283 Views)

Could you post your code?

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 4
(3,268 Views)

Joe, here's what I have - attached.

 

 

 

0 Kudos
Message 3 of 4
(3,259 Views)

Here is a vi snippnet of a modifed version of the code that I got working

IMAQdx Grab andSelect Interface.png

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 4 of 4
(3,228 Views)