Good questions. When you're running the inspection using the Run button on the bottom, it just runs the selected state and not the entire inspection. When you're using the Smart camera (or any remote target), and you run in this mode, all the processing occurs on your PC, and we remotely tell the smart camera to start acquiring. Because everything is running locally and when we get to the acquisition step we just ask for the current image, the inspection does a good job of keep up, so you don't see the frame index skipping too much.
When you press the Run button at the top, this runs the entire inspection, and it actually downloads the inspection to the target and runs everything on the target. So things run slower because:
1 - VBAI has to retrieve all the results, from the target after each step
2 - Your computer probably has more RAM and a faster processor than the smart camera
3 - There's a lot of delays so the highlighting of the steps looks good in VBAI
Because of this, the camera has more time to acquire more images before the acquisition step is run on each iteration, so you see the frame index change by more since the loop rate isn't as fast because of these delays. When you run the inspection in Inspection mode, the inspection runs more quickly because VBAI doesn't have to transfer the results after each step, and there's no highlighting of the states to slow down the inspection. The Windows VBAI just polls the target every once in awhile to get the current state, so it's not as intrusive and doesn't slow down the target as much.
Key point to remeber: Inspections run at different speeds in Configuration mode when running just the state, Configuration mode running the full state diagram, and inspection mode, so don't be surprised if you see the frame index changing by different amounts when running in these three different modes.
Hope this helps,
Brad