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
(4,574 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
(4,540 Views)
Solution
Accepted by topic author 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
(4,535 Views)
Solution
Accepted by topic author zou

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

0 Kudos
Message 4 of 5
(4,531 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,519 Views)