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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Saving Image in Loop

Oops! Sorry, I got sidetracked. I've got a Thorlabs camera here now so I'll check some things and post back in an hour or two. Send me a PM if I forget!


GCentral
0 Kudos
Message 11 of 12
(462 Views)

Ok, so I originally had similar errors to what you described when I tried to run the example code.

I think the crucial step may in fact be in the installation process (but perhaps not, so read on if you already did this).

 

I installed the 64-bit version of the driver/software system from the larger installer (not the zip of the SDK).

Then, the examples worked correctly for me.

Previously, I got errors about a missing dll, presumably because the DLL path is only given by name, and so must be in the search path (and for the SDK download, it is not!)

You could work around this by copying the necessary DLL locally, probably. A help page describing the search path can be found here: How LabVIEW Locates .NET Assemblies. In particular, I expect perhaps the installer places them in the global cache, and simply downloading them does not.

 

That aside, here is my modified version of your VI, backsaved to 2015, which correctly generated 100 pictures for me. They ran very quickly, so actually the images are more or less all the same, but anyway...

You'll need to modify the saving code to provide a valid path (I removed some parts before uploading).

S_BD.png

I used the auto-cleanup, so the wires aren't perfect and it's very wide, but anyway...

Check that I didn't miss any Close References, I might not be closing them all.

 


GCentral
0 Kudos
Message 12 of 12
(448 Views)