Yes, you can use LabVIEW to create your GCODE file.
There is not native feature to do that, so you have to code yourself.
You can use the IMAQ functions to measure the distances in the image, and then create the command with those values.
A simple command tutorial for GCODE is available here.
Good luck in your project.
Guilherme Correa