Use the MGI Library: http://sine.ni.com/nips/cds/view/p/lang/hu/nid/209753
MGI Position to Array Index
This uses VI Scripting, but Master Bounds Rect Property available in Run-Time Engine: http://zone.ni.com/reference/en-XX/help/371361P-01/lvscript/gobject_master_bounds_rect/