08-20-2012 02:17 PM
Hello,
I have setup a GigE camera in a while loop.
The camera waits for an external TTL signal (there is a built-in hardware trigger receiver) and each time there is a TTL signal I can see the different image in the Vision-->Image Display indicator on the front end of my program.
I would like to save those images as they come from the camera (just as they are displayed on the Image Indicator) but every time I try to do this , many images are saved on disk (apparently the same one each time with different name) plus even when the TTL signal is off the images keep being saved on disk.
What I would like to do is a way to save the images that appear on the Vision-->Image DIsplay indicator in real time and stop when there is no TTL signal present.
Thanks in advance for your help,
yannis.
ps:please find attached a sample of my code
08-21-2012 08:31 AM - edited 08-21-2012 08:32 AM
Hi Yannis,
From what I understand you are having no problems with getting the different frames to appear on the "Image Out" indicator whenever you generate a TTL signal but you are having problems with saving the different images as and when they are captured.
However based on your code, you are only ever displaying one image whenever you run the application and this same image is displayed on the "Image Out" indicator of your Front Panel. This would then mean that you save the same image to file over and over again. The reasons for this behaviour are as follows:
I have attached a VI Snippet of the modified code, which you will be able to drag and drop into a blank VI:
Can I also confirm whether or not you are expecting the Y Resolution output from the IMAQ GetImage Size function to always output a value of 0? If so, there is no need for this function to be in your code and the image will be saved to file as and when it is acquired.
On a side note, if you are using error cluster wires, make sure you include an error handler within your code (normally placed at the end) so that any errors are reported once your code has finished executing.
Let me know how these steps work out for you or it you need any further help.
Thanks
08-21-2012 08:40 AM
Hello Marshall , thanks for your reply,
could you please attach a vi because i am using labview 2010 and i cannot ipmport the one you have posted here !
THanks for your help !
08-21-2012 08:49 AM - edited 08-21-2012 08:49 AM
Hi Yannis,
No worries - here is the attached modification.
Thanks
08-21-2012 08:58 AM
Hello Marsall and sorry for being so needy right now but i have spent days on this one and i am desperate!
What I am trying to do is get the camera ready (Triger on , trigger Action : Framestart (get an image on each ttl signal) ) wait in a while loop and get a picture (and save it on disk) everytime i get a TTL Rising Edge.
This should go on till i hit the stop button.
Could you please point me the correct direction ?
08-21-2012 09:07 AM - edited 08-21-2012 09:12 AM
Hi Yannis,
Apologies but the file I attached in my last post was not compatible with LabVIEW version 2010. I have attached a 2010 compatible file in this post.
Let me know how this works for you.
*EDIT*
You will also want to take the Open Camera VI outside of the While Loop.
Thanks
08-23-2012 06:10 AM
Hi Yannis
Have you had any luck with the code I provided?
Thanks