08-01-2016 12:32 PM
I have been running a machine vission program for some time now. Recently I made an executable and installer to transfer it to another PC and am having issues.
The program stalls out when trying to acquire its first image. It throws error -1074360293 at "IMAQdx Get Image2.vi". As far as I can see, nowhere in the program is this function called. The closest I can find is within the grab image VI, but that uses "IMAQdx Get Image.vi" without the 2 attached. So I don't know why it's looking for it.
Does anyone know where else this VI could be called from? To try and solve this, I even installed the same Vision programs on the new PC to bring over the same files.
Thanks
Solved! Go to Solution.
08-01-2016 12:44 PM
possible to post vi or snippet?
-Otherwise very difficult to speculate where it's being called.
-is it occuring only in exe and not in development code?
08-01-2016 12:46 PM
Due to where I work and our security policies, I can't post screenshots or code.
Yes, only with the EXE... works fine on the development PC.
I was really wondering what other vision VIs may call that Get Image2 subVI.
08-01-2016 01:02 PM - edited 08-01-2016 01:10 PM
Which version of labview vision installed in development PC and target PC?
-In your development PC, check vision and motion->NI-IMAQdx->lowlevel VIs->IMAQdx Get Image.vi is present or IMAQdx Get Image2.vi?
08-01-2016 01:15 PM
Those are the programs on the source development PC. After the EXE didn't work on the new PC, I put those programs on it to match the development one. Still no luck.
08-01-2016 02:26 PM
"IMAQdx Get Image2.vi" was added in the Feb 2015 release of Vision Acquisition. It is an update to the older "IMAQdx Get Image.vi", but we still allow you to call this older function for backwards compatibility. We also updated the Grab VI at this same time. We renamed the Grab VI to "IMAQdx Grab2.vi". If your Grab VI has a "2" in the name, it should be calling "Get Image 2".
You said you received error -1074360293. In LabVIEW, if you go to Help -> Explain Error... it says the error is "NI-IMAQdx: (Hex 0xBFF6901B) Timeout." This means that the camera did not send the program an image within the specified timeout. There are many, many causes of this error, and we need to know more about the setup in order to debug. What type of camera are you using?
08-01-2016 02:48 PM
08-01-2016 02:51 PM
Interesting... I do have a Feb 2015 disk. I wonder if that's what I need.
Understood that the timeout issue could be almost anything. The error indicator I put on my front panel happens at Get Image 2. And since I can't find that VI anywhere on the computer, I'm assuming it can't find it.
That being said, I still don't know why it's looking for Get Image 2. I'm using the older version of Grab, which uses Get Image.
I am using an older Pixelink firewire camera. Once I iron this out, I'm going to be working on upgrading that next. Thanks for the info.
08-01-2016 02:56 PM - edited 08-01-2016 02:59 PM
You won't be able to even run the VI if LabVIEW cannot find the file. But if you can run the VI, the file exists on your system somewhere.
The VI is actually inside an .llb, so a file search will not be able to find it. Here is where it is located:
C:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\vision\driver\IMAQdx.llb
The only way I can think of mixing the original and "2" versions of the VIs are if you modified the VI on multiple systems, and each system had different versions of Vision Acquisition installed. I can't think of another possiblity that would cause this.
08-02-2016 04:16 AM - edited 08-02-2016 04:21 AM
did you use ctrl+F and then search for IMAQdx Get Image2 vi in your code maybe somewhere of your code you have it but you do not know