07-14-2012 09:24 PM - edited 07-14-2012 09:25 PM
Hello Friends,
I am using Vision Acquisiiton block in subVI that is programmed for continuous acquistion. This SubVI is called by main VI multiple times. It works correctly when called for the first time but presents the error below when called for second time.
Error -1074360316 occurred at IMAQdx Get Image.vi
Possible reason(s):
NI-IMAQdx: (Hex 0xBFF69004) Invalid camera session
When I looked at the code in Vision Acquisition block, I saw "First Call" being used. It looks like reference to the camera is only setup at first call and hence this module fails when my subVI is called for second time. Any way to fix this? or Any trick to show subsequent calls to SubVI as first call?
Thanks
07-16-2012 02:46 PM
Hi,
I tried to recreate the error on my machine but was unable to. Is there anyway you can post the SubVI?
Regards,
Greg H.
07-16-2012 11:39 PM
Please look at the attached program. MainVI calls the Vision VI when Vision button is pressed. This Vision VI has the Vision Acquisition module used.
When I click on Vision Button, a new VI is launched. This new VI captures video from my usb camera and reads data from text file. It works well on the first go. As soon as the file is completed or you press the stop button in the new VI, the MainVI is launced again. Now, if you press the Vision Button and Start the new VI again, thats when I get the error I reported.
Let me know if you have any suggestions or require more information.
07-18-2012 09:16 AM
Hi,
I ran your program using a USB camera on my system and disabling the read from measurement file. I ran the main VI and selected vision. Then the vision VI started to run and I selected start. It began acquiring images until I pressed freeze. Then this VI would close and the main VI would show up and I started the process over again. I did this 5 times and received no error, I was able to sequentially call the vision VI multiple times. Can you post a screen shot of the error you are getting as well as the version of the Vision Acquisition Software you have.
Regards,
Greg H.
07-18-2012 09:57 AM
Please find the attached screenshot. August 2011 is the version of Vision Acquisition Software (From NI License Manager). I am using 64 Bit Windows 7.
07-19-2012 08:49 AM
Hi,
I am still unable to recreate the error on my machine. Can you list the exact steps you perform when this error occurs?
Regards,
Greg H.
07-19-2012 07:00 PM
Follow are the steps I follow:
1) Run MainVI
2) Press Vision
Now Another GUI comes up
3) Press Start
4) Press Freeze
5) Select the file (attached. you will need to unzip)
You will see graphs being populated. Within 2-3 seconds
6) Press Stop
The First GUI reappears
7) Press Vision
😎 Press Start
Now you should have the error I posted in my previous message.
07-23-2012 10:34 AM
Hi,
I ran through the steps several times and was still unable to see the error you were getting. What versions of the Vision Acquisition Software and LabVIEW are you using? Also, the camera you are using is a USB webcam correct?
Regards,
Greg H.
07-23-2012 11:01 PM - edited 07-23-2012 11:05 PM
From NI License Manager:
Vision Acquisition Software (August 2011)
Labview 2011
Are there any more specifications I can provide with regards to exact version I am running? If yes, please point me to appropriate place to find them.
Yes. I am using USB webcam. Should I try manually installing the webcam drivers? Win 7 detected automatically when I plugged it in.
07-25-2012 10:14 AM
Hi,
If you open Measurement & Automation Explorer there is a category on the left hand side called My System. If you expand that there is a software category. With in that there should be version numbers for NI-IMAQ, NI-IMAQdx. Could you provide these version numbers?
Regards,
Greg H.