04-05-2011 12:40 PM
Hi Everyone,
I want to save more than one bmp image in one of my project. i am able to save one but dont getting idea to save more than one.
Can any body guide me in this problem...
Note: My project's VI is attached...
Regards,
Rizi.
04-05-2011 12:59 PM
Your save bitmap function is just using a single file path. So it is going to keep overwriting the same file. Is that the problem you are having?
If so, what you need to do is programmatically change the file path on each iteration of the loop.
04-06-2011 05:11 AM
Hello,
First of all thanxs for ur quick response, yes Ravin you are right everytime it overwrites the previous image whenever i press the freeze button. How i can make it to store 10/15 images in the same directory with different names???
Regards,
Rizi
04-06-2011 08:15 AM
Use string functions to build a new file name every iteration. Such as concatenating the iteration number to the end of your base name. Then use the functions in the File I/O palette to convert it to a file path.
04-07-2011 06:50 AM
Hello Ravens,
Thanks for ur fruitful suggestions, I have tried to implement ur suggestions in my project. they are not working as they should actually i dont want to take snaps for the fixed number of iterations. My number of snaps are depending on the current position of my stepper motor. so i have put my image capture 'Freeze image' into the event structure of current position. as my current position changes my camera takes the image for each new value of current position. i have tried to implement ur suggestion please have a look at it and guide me where i am making blunder.
Note: Snap shot for the problematic area is attached.
Regards,
Rizi
04-07-2011 09:38 AM
What error are you getting? Exactly how is it not working?
How is the event case for "Current Position" being fired? Is it a user control on the front panel? Or are you using a "Value Change (Signalling)" property node somewhere.
PS: Please use the full English word of "your" and not some text messaging shortcut.
04-07-2011 10:12 AM
Hello,
I am not getting any error but when i have merged it with my main program it is not saving any image from the camera. it is not executing the program after event structure of current position. Yes you are right i am using value change(signalling) property node in my main program.
Note: VI for my project is attached.
Regards,
Rizi
04-07-2011 12:13 PM
I don't see a Value Change (Signalling) Property Node in your program. I see a terminal which is unused to the upper left of your program and a local variable in the timeout case of your large event structure in the top half of your program. Neither of these fire a value change event.
04-07-2011 04:52 PM
Hello,
Yes, i am getting your point. Now i have added a new event for current position in event structure and also added property node for current position in that event structure. But it is not showing any effect on image capturing problem...As on front panel i can see that the value of current position is changing on the indicator when the motor is moving.What do you suggest that which startegy i should adopt to use that current position and take 20 snaps when current position moves from 0-20.
Thanks alot for providing quick responses.
Note: My updated project is attached...
04-07-2011 04:55 PM
Hello,
Yes, i am getting your point. Now i have added a new event for current position in event structure and also added property node for current position in that event structure. But it is not showing any effect on image capturing problem...As on front panel i can see that the value of current position is changing on the indicator when the motor is moving.What do you suggest that which startegy i should adopt to use that current position and take 20 snaps when current position moves from 0-20.
Thanks alot for providing quick responses.
Note: My updated project is attached...
Regards,
Rizi