LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thorlabs DCC USB camera error .NET 1172

Hello,

I've got a Thorlabs CCD1645 USB camera, and I can't get any of the example VIs to run.

I am getting the general 1172 .NET error, even for the most basic 'Initialise Camera' VI.

I have no experience with .NET unfortunately.

I have tried reinstalling the Thorlabs camera software and LabVIEW drivers.

When I open the VIs there are some warnings about file locations (please see attached).

 

Thanks for any help!

Graham

Download All
0 Kudos
Message 1 of 7
(5,322 Views)

I think it is something to do with a different DLL assembly being loaded into LabVIEW?

0 Kudos
Message 2 of 7
(5,312 Views)

Hi graham,

Unfortunately error 1172 is a very generic error saying that there was trouble with a dll.

I have also had some problems with the Thorlabs cameras. I think the issue may arise from different bitness. For instance, if you install the 64-bit version of Thorcam and you are using 32-bit LabVIEW. One of my colleagues said that uninstalling Thorcam actually allowed him to get it to work in LabVIEW, but I have not looked into that very much. My only advice is that if you are using 32-bit LabVIEW, I would make sure that you are using the 32-bit dll as well.

 

I think Thorcam should install a dll here:

"C:\Program Files (x86)\Thorlabs\Scientific Imaging\DCx Camera Support\OtherDrivers\LabVIEW"

 

Hopefully those use the 32-bit dll since they are in the Program Files (x86) folder.

0 Kudos
Message 3 of 7
(5,288 Views)

Thanks for your reply.

Unfortunately I can't install Thorcam 32-bit because I don't have a x86 processor. At least Thorcam v.3.0 complains, but I will now try using v.2.9.

I guess I can always change to LabView 64-bit but I'm worried that will cause even more problems with other device drivers...

0 Kudos
Message 4 of 7
(5,266 Views)

Unfortunately Thorcam v.2.9 also won't let me install because of my processor 😞

I thought 64-bit was supposed to be backwards compatible with 32-bit?

Might need to switch to 64-bit LabView now, unless there is any other thing I can try? Can I manually tell LabView to get a different DLL?

0 Kudos
Message 5 of 7
(5,262 Views)

Installing LabVIEW 64-bit has fixed the problem now.

0 Kudos
Message 6 of 7
(5,256 Views)

I see, this is an issue with the ThorCam software that it has such a messy installation. While I'm glad you got it to work with 64-bit LV, it should not be necessary just to interface with a camera. If you keep digging around in the ThorCam installation folders I think you will eventually find some VIs that work with 32-bit LV, but everything has the same name and the folder structure is very poorly laid out.

0 Kudos
Message 7 of 7
(5,254 Views)