ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(10,979 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
(10,977 Views)

Hi,

it is in NI-IMAQdx Devices.

 

How can I change it then ?

 

Thanks for your help

0 Kudos
Message 3 of 10
(10,969 Views)
Solution
Accepted by Gabriel_B
-Replace all IMAQ vis with IMAQdx vis.
Thanks
uday
Message 4 of 10
(10,959 Views)

Thanks a lot, it works fine now 😉

 

Have a nice day.

 

Gabriel

0 Kudos
Message 5 of 10
(10,944 Views)
Kudoes always welcomed 😛
Thanks
uday
Message 6 of 10
(10,941 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
(8,431 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
(1,886 Views)

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

0 Kudos
Message 9 of 10
(1,880 Views)

I found solution here. 

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

https://www.ni.com/en/support/documentation/compatibility/25/ni-vision-driver-and-vision-acquisition...

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
(1,874 Views)