05-04-2017 08:23 AM
To get Help on NI Vision from within LabVIEW, go to Help, NI Vision for LabVIEW Help, and look at entries in the Contents Tab (where you will find NI Vision Concepts Help), or use the Index or Search facilities. There is also Help entries for NI-IMAQ Reference and NI-IMAQdx Reference.
Bob Schor
05-04-2017 10:31 AM
Hi all
Thanks for your inputs. I cleaned up my program and in INIT state , i opend my camera and closed it in END state. ( just once) I was able to save quite a good amount of time by that. Some of my test steps worked well with Camera session which was initialised in the INIT state. But some teststeps which included TEXT recognition didnt work. It gave me an error message: Error -1074396154 occurred at IMAQ OCR Read Text. But when i run that test step directly using Open, snap and close function, it works without any problem.
05-04-2017 05:00 PM
The Error Message you posted suggests that "the image is not large enough for the operation".
Here is a suggestion -- write the smallest program that you can which exhibits this behavior. I suggest the following states -- one to initialize things, one to acquire images, one to analyze (a few) things, and one to close. You should be able to create a small enough VI that you can post the entire VI (and all the sub-VIs it needs so that we can try it, too), as well as post the data that you are feeding it. A trick that lets you get around the "three files" restriction is to put things in a Folder, compress the Folder, and attach the .ZIP file.
Actually, if you create a simple, small VI and try it yourself, you may find the problem yourself, as well. If not, show us the code and let us try.
Bob Schor
05-05-2017 12:41 AM
05-08-2017 03:33 AM
Hi all
@ Bob:sorry for the late response. Here is a small version of what i am doing.
I was able to eliminate the IMAQ error message by setting the image size for the created memory resoucre, befor processing.
@ uday: attached is only a small version. The first two tests( tex recognition & Histogram) are being repeated in other tests ( like test 7, 9 etc) By using the IMAQ set Image size function. i dont get the the error message anymore.
Yes, test are sequentially executed.
Previously, I checked the image before and after with a probe. all was good. Error was always at the text recog test. I also tried disabling test 1 for text recog and checked another text reco test( e.g test4). I had the same error.