Dear SuperFly,
I created the same script in Vision Assistant, and then created a LabVIEW VI from this script. I observed the same behavior that you did: The radius was returned in my calibrated unit in Vision Assistant, but in pixels in LabVIEW.
Take a look at the post below. It explains that this problem is a noted oversight in the Vision Assistant, and gives the solution.
Troubles when creating LabVIEW VI from Vision AssistantBest Regards,
~Nate
________________
NI Applications Engineering