Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch between Cam ID and (LabVIEW session)?

Solved!
Go to solution

Hi

I am using a USB Cam under LabView. Therefore I have to implement some Low Level functions which comes along in a dll from the supplier. On the other hand I have to use the NI-Imagdx function for identifiaction. So far each part does work without problem while the supplier of the cam uses a Camera ID (integer value) for accessing the cam, Labview uses sessions to connect the cam.

 

Question:

- I need both parts for the low level functions AND the LV-fucntions in one vi. How can I connect the cam when the dll's uses a Cam ID and the NI-Imaqdx uses sessions? How can I "convert" or bring both code parts together?

 

 

thanks in advance

 

 

0 Kudos
Message 1 of 3
(3,178 Views)
Solution
Accepted by Norick_17

Hi,

 

The short answer is: You can't.

 

Unless the IDS drivers allowed they camera to be opened simultaneously with their own SDK as well as via DirectShow (which IMAQdx is using here) then both cannot access the same device at once.

 

Eric

0 Kudos
Message 2 of 3
(3,170 Views)

You can have a user input 'control' in front panel and select the camera ID every time it is connected to any USB port. If you hard code your USB port ID or camera ID, It will not run on other PC's.....

0 Kudos
Message 3 of 3
(3,162 Views)