ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
07-22-2009 03:01 PM
I have a code that can save images however, there is a need for user input when it comes to saving the images.
I also attached the code.
07-23-2009 12:58 AM
Hi Theydon,
remove the dialog and build your path (including filename) inside your loop and connect it directly to your save function.
Mike
07-23-2009 08:00 AM
07-23-2009 12:49 PM
Hi Theydon,
Make sure that you are sending it a .TIFF file extension, and that you have permission to access the file. To double check the file path that you are actually sending to the WriteTIFFile.vi, right click on the file path wire that is going into that VI and select "Create>Indicator". If this does not work, then please post your code with the modifications that you have made so others can take a look at it.
Cheers,
07-24-2009 02:36 PM
I have the automatic saving under wraps however, the naming remains an issue. Any insight as to how I can sequentially name the images I capture?
Thanks to MikeS81 and Marti C for your help thus far (sorry for my poor manners).\
I attached the updated file.
07-27-2009 08:58 AM
Hi Theydon,
From the looks of your code, it looks like you already are. The iteration number to a string inserted into a file path should be giving you sequential files ("Sample1, Sample2", etc.). Are you not seeing this behavior?
Cheers,
07-27-2009 10:47 AM
I understand the naming conventions now. Two more pressing issues have arisen.
When 10+ photos are taken, the naming skips the numbers 8 and 9 for instance, photos would be named #6, #7, #10, #11..., #16, #17, #20, #21 etc.
Any idea why?
~also~
Is there any way for me to increase the amount of photos taken per second or am I limited to the timing of the for loop?
Thanks again for all of your responses.
07-28-2009 09:23 AM
Hi Theydon,
The number of photos is going to be set by how often you are calling that IMAQdx Snap. This right now is going to be limited by the prep time between shots. If you make it so the loop will run more than once a second, you will get more photos.
Secondly, why do you have that while loop around the write to file? You don't actually need it, and this is probably what is causing the files to skipover those files. If you would still like to decide whether or not to save the image, you could use a case structure instead of this while loop.
Cheers,