01-22-2014 10:52 AM
I am trying to use the Snap example project which is in Visual Studio 2008, C#. This is the sample project that came with the NI software install. When I try to capture an image from the camera, I get a "The passed in interface or session is invalid" error message. I double-checked my interface name in the NI software and it is correct. I have a Basler A601f camera connected over firewire.
Any help would be great. Thanks.
Solved! Go to Solution.
01-22-2014 12:06 PM
I have two things for you to check:
1. Can you please confirm that you are using an IMAQdx example and not an IMAQ example? Different interfaces.
2. Make sure you have closed MAX or any other software that is interacting with the camera except your current application.
Those are two things I can think of.
01-22-2014 12:54 PM
I think I'm using the IMAQ example since it is in C:\Users\Public\Documents\National Instruments\NI-IMAQ\Examples. There is an NI-IMAQdx folder but, it only has sample projects that are old .Net projects like C++. Is there anything more recent?
I tried the VB.Net Snap project in the NI-IMAQdx\examples folder but, when I ran it, I get a COM error.
01-22-2014 01:02 PM
Ah that explains it; you need to use IMAQdx to work with Firewire.
I mostly use LabVIEW to program with IMAQdx, so I am not sure what sort of examples are available. I would recommend that you install the latest version of Vision Acquisition Software to get the latest shipped examples. You can search for errors on the forums or on ni.com.
01-23-2014 04:22 PM
Yep, that got me going. I installed the latest version of the Vision Acquisition software and the example code was updated.
Thanks!