05-05-2017 07:20 AM
Hi Peter,
I am currently working on setup a microscope with ORCA Flash4, and have met issues on images storage. May I have your code for grasping and storing images. Many thanks, it may helps me a lot.
05-08-2017 09:18 AM - edited 05-08-2017 09:22 AM
Hey Hao,
If Peter isn't able to get back to you with his code, maybe consider opening a new forum post so that we can work through your issue.
As for your questions, I would consider looking at this example and this forum post to help clarify the process of storing images after grabbing them. Let us know specifically what issues you are running into as well! Seeing code helps!
http://forums.ni.com/t5/Example-Programs/IMAQdx-Grab-and-Save-Individual-Files/ta-p/3516946
IMAQdx Grab images using buffer in memory
https://forums.ni.com/t5/Machine-Vision/IMAQdx-Grab-images-using-buffer-in-memory/td-p/2563009
Hope thsese help!
Ben (Bear) Johnson
Applications Engineer
05-08-2017 12:33 PM
Hi Peter,
I would think that Bruce Amon suggestion of writing multiple images into single file is a very good suggestion.
I am actually doing similar solution in my code.
I was developing application with NI R&D. R&D suggested to use the concept that I call "MegaImageFile". This will speed up your disk saving time. I am not sure exactly by how much. Never really try to estimate the exact timing.
The issue comes from window file handling. It is difficult for windows to handle many small image file. This issue is even stronger on RT system (originally I was developing on RT system).
What my code is doing is to create a very large image buffer that is suitable for 100 images (my images are small). When a new image is coming from the camera / processing I copy the small image into the large image.
When large image is full I save the large image to file (I use PNG file), clear the large image, reset the counter and fill up the large image again.
Sorry that I didn't really estimate the speed. It is sufficient for my processing. So I can't give you numbers on the speed limit. I worked with technic with images of 640x50 16bit at 700 FPS and had no problem on LabVIEW RT.
If you want to try I can give more details
05-11-2017 05:28 PM
Hi Peter,
Does this work for you? Do you need example?