From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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 7
(8,443 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 7
(8,441 Views)

Hi,

it is in NI-IMAQdx Devices.

 

How can I change it then ?

 

Thanks for your help

0 Kudos
Message 3 of 7
(8,433 Views)
Solution
Accepted by topic author Gabriel_B
-Replace all IMAQ vis with IMAQdx vis.
Thanks
uday
Message 4 of 7
(8,423 Views)

Thanks a lot, it works fine now 😉

 

Have a nice day.

 

Gabriel

0 Kudos
Message 5 of 7
(8,408 Views)
Kudoes always welcomed 😛
Thanks
uday
Message 6 of 7
(8,405 Views)
But I can find out the IMAQdx AVI vis, there are IMAQ AVI2 vis in labview2015 only, thanks
0 Kudos
Message 7 of 7
(5,895 Views)