04-20-2009 06:26 AM
Hi again
Ok I found it, sorry.
How can I adjust this code so that I can save pictures while I'm running the program? So if I click that button 5 times, it creates 5 different pictures.
Thanks
04-20-2009 06:36 AM - edited 04-20-2009 06:37 AM
Hi you can learn a lot by studying the NI standard report VIs. Take a dive into the code for the VIs I have marked with red circle. Just remember to use the "save as" option then saving so you do not overwrite the original.

04-20-2009 08:02 AM
986521345 wrote:Hi again
Ok I found it, sorry.
How can I adjust this code so that I can save pictures while I'm running the program? So if I click that button 5 times, it creates 5 different pictures.
Thanks
This has already been answered several times. Use a shift register to keep track of a counter. Each time you click the button increment the count. Append the count to your filename.
04-20-2009 08:54 AM
Hi,
you should really take advice! (Like smercurio: the answer has been given before...)
The time format you use only includes hours and minutes, but no seconds or parts of seconds. Include them and you will have no problems... (Hint: use the format string I gave in one of my earlier posts!)
04-20-2009 08:58 AM
GerdW wrote:but no seconds or parts of seconds. Include them and you will have no problems... (Hint: use the format string I gave in one of my earlier posts!)
Indeed. With seconds included as part of the filename you won't even need to use a counter, as it's unlikely you will be pressing the button multiple times each second (unless you imagine yourself waiting for an elevator and the button is already lit). ![]()