Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Kodak Megaplus 1.6i

I'm currently using the Kodak MEGAPLUS 1.6i camera and trying to get it to take photos in a LabVIEW vi, display them on the front panel, and save the image as a png file.  However, when I run my vi, sometimes the image will be taken and saved properly, but sometimes the camera does not take the picture and instead gives me the following error:

----------

Error -1074397150 occurred at IMAQ Snap.vi

 

Possible reason(s):

NI-IMAQ:  A timeout error occurred while waiting for the specified event.  If waiting for an image, verify that all video data is acquired within the timeout period.  If waiting for a signal, verify that the signal assertion occurs within the timeout period.

---------

 

I have the vi run in a for loop based on how many pictures I want to take, and sometimes the camera will work perfectly (I have seen it take up to 100 pictures without a problem), sometimes it will give me an error often (every few pictures) and sometimes it will give me the error on every iteration of the loop.  I used measurement and automation to take pictures as well, and it gives me the same problem, but on exactly every other attempt at taking a snapshot.  However, if I press the snap button and then change a setting, the camera shutter makes the sound of it opening/closing and will let me take another snapshot with no problems.  I can continue the snap -> change settings -> snap -> change settings method indefinitely, but if I try to do two snaps in a row, it gives me the exact same timeout error message.  I'm using MAX version 4.6.1 and LabVIEW 2009 and a picture of the vi that I'm using (which is being called as a sub-vi) is attached below.  Thank you in advance for any help.

 

-Chris

0 Kudos
Message 1 of 3
(3,461 Views)

My first thought is problematic cable when it comes to time out errors. Can you change the cable and recheck?

Message 2 of 3
(3,450 Views)

I don't have another cable to try, but I did find out something else that is interesting.  I'm using the vi to take x number of pictures and label them as date-time-picture#.  However, if I get rid of the convert number to decimal string function, the vi does not give me any timeout errors.  Since I still needed the ability to take multiple photos and document which photo I am taking, I tried replacing the decimal string function with the convert number to hexadecimal string function.  Oddly enough, changing the function to hexadecimal works, and if the vi messes up again, I change it back to decimal string and it works again.  Any thoughts as to why this might be?

0 Kudos
Message 3 of 3
(3,425 Views)