I'm very sorry. I didn't noticed that this thread got marked as resolved.
Thinking back to your problem with the recursive function. The right choice ot simulate your code line by line might depend on the aquisition method. I assumed you're using a line scan camera so in the runtime everything will work with one line after another. By aquiring the complete image at once it may require to split all lines.
When you use different images and you want to take one line of this frame, then it can be realised with an line selector.
I'm just a beginner myself an work with Visual Applets sometimes, so i apologise that i can't provide more help so far.
The second Question. I recommend to open a new thread so someone with more expearience will see the post. So far i haven't worked with the va Blop Analysis yet.