From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-17-2014 09:06 AM
When you try to pull acquistion using "IMAQdx Get Image" with option "Next" within a loop, it will timeout if a trigger have not occured. I've solved this issue using event structure (attached vi). Try to run it on you PC, it should work. If not, you ma have problem with your phisical signal. I don't think that CVS will support event structure but it might help you to start using external triggers.
06-17-2014 02:12 PM
Brad_PID wrote:
When you try to pull acquistion using "IMAQdx Get Image" with option "Next" within a loop, it will timeout if a trigger have not occured. I've solved this issue using event structure (attached vi). Try to run it on you PC, it should work. If not, you ma have problem with your phisical signal. I don't think that CVS will support event structure but it might help you to start using external triggers.
Thanks, I will try it out and let you know how it goes - really appreciate your help!
06-18-2014 06:30 PM
06-19-2014 04:16 AM
Do you want to get fixed number of frames (let say 5 frames), at a given rate (let say 30 fps), once you triggered acquisition? Do the event structure work on your CVS-1457RT? As far I know it doesn't work on real time systems but I may be wrong.
06-19-2014 04:23 AM
06-19-2014 04:43 AM
Classical approach is that you get one frame and then process it. You can enqueue image into a queue in "Event Loop" and then dequeue it in the next "Processing Loop". I don't know how about Real-TIme when you use events but this approach is one frame at unknown rate. But your case seems to be different.Do you want to acquire variable number of frames (let say 3, 5, 7) and then send it to processing loop?
06-19-2014 04:50 AM
06-19-2014 05:17 AM
It seems interesting. I don't have imidiate solution for it and I don't know wheter I will have but one more question. How do you know that you have the last frame? I mean phiscially. Does some kind of signal is generated? You could buffer frames and once you get this signal you could send it for processing. It might help if you briefely describe the process.
06-19-2014 06:08 AM
The system will inspect printed labels - and I have two physical input, one from the main system that indicates that an inspection is required, and the other is from a sensor that detects when the print is i FoV
If I take the basic case, I know that every inspection round will have 8 images - so maybe I should start with a loop that does that - Takes 8 pictures and stores them them in a buffer?
06-20-2014 07:46 AM
If you assume that you have fixed number of images, then you can use "BufferInterval" parameter to generate event once the specific number of images has been acquired. For example if you set this parameter with value 8, the event is generated once 8 images has been acquiered. If you don't know how many frame will be in one burst you have to utilize your external signal to start and stop acquisition. You have try what will work for you.