It is easy to display the ball X and Y position and velocity since VP and VPX does have some built in functions.
The easiest way is to display that position and velocity when the ball goes over a trigger or hit a target is to display it to the debug window. But first you need to do a few things, and it has to do with your second question.
First, to run VPX in a window, you need to go to the Menu Preferences > Vide/Graphics Options and remove the "Force exclusive FullScreen Mode" and second you need to choose another resolution for your window from the ones displayed (see picture below):
[attachment=32999:Capture.PNG]
Now you have VPX running in a window. Press ESC to make the window toolbar appear and you can move the window around. Pressing ESC several times will let toggle the toolbar on and off.
Now to show the X and Y coordinates and velocity:
VP and VPX has a built in function which return those values when the ball hits a trigger or a target (a wall may also return those values).
This will be the easiest way to do it, as a real time will produce too much data.
So place some triggers around your table where you want to check the ball speed and coordinates. Place as many triggers you want.
Add an entry in the script for each trigger, for example trigger001 will be like this:
Sub trigger001_hit
debug.print activeball.X
debug.print activeball.Y
debug.print activeball.velX
debug.print activeball.velY
debug.print " "
End Sub
Do the same for all the other triggers.
Then run the table and press the key D to open the debug window (or press ESC and choose the debug window from the menu)
When the ball passes over one of the triggers you'll see the data on the debug window.
Negative X values means the ball is moving left, and
negative Y values means the ball is moving upwards.
There are many other ways to do that, but this I feel it is the easiest way.