Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-IMAQ: The passed in interface or session is invalid

Solved!
Go to solution

Hello,

 

I'm trying to use a USB camera (thorlabs DCC1240c) with the "Grab and save to AVI.vi" example.

When I run the file i got "NI-IMAQ:  The passed in interface or session is invalid". 

 

I checked in NI MAX and the interface name of the camera is cam0 and that's what I entered in the "Interface name" box in the front panel.

 

What's the problem ?

 

Thanks in advance,

 

Gabriel

0 Kudos
Message 1 of 10
(9,303 Views)
Hi Gabriel_B,
-Please tell me in MAX Under which category you can see your device: NI IMAQ or NI IMAQdx?
-If it's under IMAQdx, Grab and Save to AVI.vi will give the error.
Thanks
uday
Message 2 of 10
(9,301 Views)

Hi,

it is in NI-IMAQdx Devices.

 

How can I change it then ?

 

Thanks for your help

0 Kudos
Message 3 of 10
(9,293 Views)
Solution
Accepted by topic author Gabriel_B
-Replace all IMAQ vis with IMAQdx vis.
Thanks
uday
Message 4 of 10
(9,283 Views)

Thanks a lot, it works fine now 😉

 

Have a nice day.

 

Gabriel

0 Kudos
Message 5 of 10
(9,268 Views)
Kudoes always welcomed 😛
Thanks
uday
Message 6 of 10
(9,265 Views)
But I can find out the IMAQdx AVI vis, there are IMAQ AVI2 vis in labview2015 only, thanks
0 Kudos
Message 7 of 10
(6,755 Views)

I used LabWindows/CVI and got the same error message when use a USB camera (Logi C270 HD WebCam).

I can see the camera under Devices and Interfaces as "cam0".

Function call imgInterfaceOpen ("cam0", &Iid);  will return 0xbff60015 error message.

The passed in interface or session is invalid.

0 Kudos
Message 8 of 10
(210 Views)

I can't find NI-IMAQ, NI-IMAQdx setting in MAX.

0 Kudos
Message 9 of 10
(204 Views)

I found solution here. 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kEwBSAU&l=zh-TW

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MEqSAM&l=zh-TW

NI-IMAQdx
The NI-IMAQdx driver software is needed to use third-party image acquisition devices which use the following buses and standards: 

  • Gigabit Ethernet Cameras Supporting GigE Vision
  • FireWire IEEE 1394 Cameras
  • USB 2.0 Cameras Supporting Microsoft DirectShow
  • USB 3.0 Cameras Supporting USB3 Vision

 

0 Kudos
Message 10 of 10
(198 Views)