07-08-2007 05:14 AM
07-08-2007 07:09 AM
07-08-2007 07:46 AM
07-08-2007 08:32 AM - edited 07-08-2007 08:32 AM
it seems one needs still more clarifications:
is the analysis of your data going to affect the system on real time, in that sense that the next frame grabbed might be changed due to some feedback?
if not, then you probably dont need real time in the proper sens of the word, and just need analysis of your image as it comes. is it just to avoid saving the image for future analysis, thus saving HD space?
for such solution, one can use a queue of arrays. the grabber loop would produce the queue, while some other loop would just consume it, and forward the info to unrelated subvis or loop. in such way, you have 2 independant threads, and the rate of consuming the data will not slow down the grabbing frame rate. of course, still assuming the consuming loop would not take forever to perform analysis on data. you might have to do some optimisation there.
if you actually need real time, then you have to hope your analysis is going to be faster than frame grabbing. check the analysis you do on each picture, and how much time it takes, using "perfomance and memory" tool, in tools->profile menu of your vi. but do remember: 1KHz frame grabbing, is only 1M times faster than your computer...this might then require a bit of optimisation.
Message Edited by Gabi1 on 07-08-2007 03:33 PM
07-08-2007 09:11 AM
07-09-2007 06:42 AM