06-12-2009 06:19 AM
Hi all,
At first, please look at my attachment. There is the part of my code (it is inside of a while loop) which saves a raw data from my firewire camera. I am thinking how does this saving process work? How does it save the data in each while loop's iteration time (pixels, rows and columns)? For example if I use 100x1000 8-bit image. There is also Set File Position.vi which makes next line after iteration (at least I think so?). It is important to know when I'm processing the data later with Matlab.
My second question:
If I set height = 100 and width = 1000 as parameters, image indicator from IMAQdx Grab's image out says that the image is "only" 1000x96 8-bit image. Where are "missing" 4 bits?
B R,
Jick
06-15-2009 02:20 AM
Heyy, maybe someone would know an answer to this question? 🙂
Jick
06-15-2009 02:33 AM
Hi Jick,
what is given in your "image size" (num of bytes) indicator?
Setting file position to end is ok for appending data to a file, writing binary files is just taking the byte stream given by that IMAQ function ( I don't have IMAQ installed, so cannot check what's coming out there).
06-15-2009 03:06 AM
06-15-2009 03:33 AM
06-15-2009 04:02 AM
06-15-2009 04:40 AM
06-15-2009 04:59 AM
Yes, I know that I get only 96*1000*1byte+64byte header. But my question is why I get it instead of getting 100*1000*1byte+header=100064 as set in the beginning (in front panels parameters control)? It kind of eats 4 of them?
B R,
Jick
06-15-2009 05:07 AM
06-16-2009 01:37 AM
Hi again,
Here is my whole CameraSoftware. It is a part of the bigger measurement program.
I hope you can find the solution of "lost 4 bits" 🙂
B R,
Jick