10-23-2021 11:36 AM
Hi I am new to Labview and trying to take multiple frames with thorlab camera CS505MU. Thorlabs provide prebuild VIs for interfacing. I received an error when I was trying to use IMAQ to save the image (Error 1074396154 occured at IMAQ WriteTIFFFile). I doubt it is the image size was not right so I swapped xy resolution but it didn't solve the problem. Does anyone know what could cause the issue or where should I check? Thanks
Solved! Go to Solution.
10-23-2021 11:56 AM
As you are a New Member, you probably haven't used the Forums enough to realize that trying to diagnose "Why did this Error occur" when the Original Poster only includes a picture of a part of a VI that is part of a larger LabVIEW Project is often a "best guess".
We also don't know:
If I had to "guess", I'd guess that you are using ThorLab's Vision software, and might not have the NI Vision routines installed. Of course, we can't "see" where all the calls are in your code (because you didn't attach it so we can open it in LabVIEW and "go looking".
LabVIEW Vision is a slightly advanced topic. If you are "new to LabVIEW", you would be well-advised to find someone with 2-3 years of LabVIEW experience, especially if it involves LabVIEW Vision, to help guide you through the intricacies. Alternatively, you can use Third Party (e.g. ThorLabs) software to do all of the processing for you. Choosing to "mix and match" would be best approached with a Mentor.
Bob Schor
10-23-2021 12:07 PM - edited 10-23-2021 12:53 PM
Is what you are showing a prebuild VI from Thorlabs or something you put together yourself?
(does not look very professional with all the datatype mismatches, right-to-left wires and unneeded sequence frames)
What else have you tried for troubleshooting, e.g. writing a different format, using a different polymorphic instance, etc. Why are you transposing? Are you sure the path is well-formed (using string to path is always questionable!)
10-24-2021 08:19 AM
Hi Bob,
Sorry that I just realised only the photo was uploaded. I tried to upload the .vi file and .dll together but somehow it didn't success so I uploaded it again here. Hope it is not looking too bad. To provide more information:
The reason that I have to use it is that the other part of my experiment is also written in LabVIEW and they need to work together, so I cannot use the thorcam software to do the image acquisition.
Apologies again for not providing enough information when posting the question.
Regards,
Boya
10-24-2021 11:51 AM
In your IMAQ Create choose Grayscale (U16) image
In your IMAQ Array to Image wire the data to the U16 Image Pixels
That gives me no errors. It appears you do not have the correct data types wired.