Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to determine if a IMAQdx camera session is still valid or not ?

Solved!
Go to solution

If it's valid, IMAQdx Open Camera.vi will return an error.

If it's not valid, IMAQdx Close Camera.vi will return an error.  And IMAQdx Close Camera.vi is very slow when the camera session is not valid.

 

George Zou
0 Kudos
Message 1 of 5
(5,039 Views)

What do you mean by "not valid"? Do you mean already closed or the camera has been removed but your session is still open?

0 Kudos
Message 2 of 5
(5,005 Views)
Solution
Accepted by zou

I mean IMAQdx Open Camera.vi haven't been called yet, or IMAQdx Close Camera.vi has been called.

 

Although there is no property node for that purpose, other properties, such as camera vendor name, are acceptable workarounds.

 

 

George Zou
0 Kudos
Message 3 of 5
(5,000 Views)
Solution
Accepted by zou

For that scenario, the "Not a refnum" primitive should work, I believe.

0 Kudos
Message 4 of 5
(4,996 Views)

Interesting.

The camera session is "cam0" when prob before and after call IMAQdx Open Camera.vi.

No change, not empty.

That deceaves me.

 

 

 

George Zou
0 Kudos
Message 5 of 5
(4,984 Views)