Solution
Before writing the Vision Assistant script, you need to select a target for generating the code. You will find this target options in a window pop-up when you are starting Vision Assistant. By default, the target is always set to C language.
Once you have selected the LabVIEW as the target, you can verify this by checking the window title.