10-14-2014 04:28 AM
10-24-2014 07:26 AM
Hello BlueCheese,
Apologies for the late responce, for some reason i did not get an notification any more or i missed it. Anyways i tryed using the "get image data" and i got the same error in the same cases again, i have always gotten it at the configure aquisition. this time i repoduced the error by having the lens cap on it. When ever its on it will give me the error on start up. if i remove the cap and retry it works.
Regards,
Jeroen
10-24-2014 10:51 AM
Can you put a breakpoint after the configure succeeds, then put the lens cap on, and get the array contents from that point?
10-27-2014 04:35 AM
Hey there,
I made the attached vi and ran it. What i did notice strait away was that the size of the aray decreses by alot after i put the cap on. is this the info you meant? the arrays ar roughtly 30.000 point to 55.000
Regards,
Jeroen
10-27-2014 10:49 AM
@JeroenP wrote:
Hey there,
I made the attached vi and ran it. What i did notice strait away was that the size of the aray decreses by alot after i put the cap on. is this the info you meant? the arrays ar roughtly 30.000 point to 55.000
Regards,
Jeroen
Hi Jeroen,
The decreased size makes sense because the data is JPEG-encoded and thus the size is typically proportional to the image complexity. Needless to say, a black image (such as when the lens cap is on) compresses very well.
Would you do me a favor and add a "Write To Binary File" in your VI and re-post these files as JPG files (just save the binary content under a JPG extension)? Your attached file as ASCII arrays would take me a bit of effort to convert back to binary manually.
Eric
10-28-2014 03:56 AM
Hey there,
used the same program with a write to binary file, when prompted i saved them with .jpg as addtion. Im not sure that makes the files jpeg tho, for extra measure i attatced a vi which converts the string data to 1d array again, might need to type cast it but its the raw data.
Regards,
Jeroen
10-28-2014 03:56 AM
Ps it is saved in LabVIEW 2014 let me know if you need it in a different version
10-28-2014 05:14 AM
Hello JeroenP,
I cannot open the VI (still stuck on 2013 SP1 on this pc).
However, the saved file does not seem to be a JPEG.
Can you use a VI like "IMAQ Write File 2" to save to JPEG?
10-28-2014 05:26 AM
Hey,
That was what i already suspected. here is the raw data in 2013 LabVIEW, i can use the VI to save if you still need it after this.
Regards,
Jeroen