Hello apurva062,
Thank you for using National Instruments discussion forums. The error you are receiving deals with incompatible data types. Most likely in the Vision Assitant script you are testing the script using a test image that is in the right format but in the LabVIEW VI you are acquiring the image in a different format (for example wrong bit depth). How are you acquiring your images in LabVIEW? Are there any other differences between Vision Assistant and LabVIEW? If you want to post the Vision Assistant script you are using I can take a look at it. Thanks and have a great day.
Regards,
Mark T
Applications Engineer
National Instruments