キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

IMAQ init error

Hi - I am getting the "requested image acquisition device is already in use" error when I run IMAQ init, but only in one part of my code.  Attached is a screenshot of where.  The weird thing is, I can reboot the PC and start up my app and make this call first before anythiing else, and I still get the error, yet, if I go to the diag part of my code whete I acquire images the same way, I can init and close the session at will.  You can see that the offending code is very simple and should not behave this way.  I am under the gun to get this out and I'm out of ideas.  Is there a way to reset the acq device until it's available?  Anything else I can do??? thx
0 件の賞賛
メッセージ1/17
5,498件の閲覧回数
You have to close Max while u r running your vi.You can simultaneously run max and this vi.R u doing this?
メッセージ2/17
5,484件の閲覧回数
no - nothing else is open - like I said, the same call in another part of the code works and is identical
0 件の賞賛
メッセージ3/17
5,474件の閲覧回数
Please check the attachment.


メッセージ4/17
5,470件の閲覧回数
In addition are you closing each session properly.If you are using the close vi outside the loop then it means u r opening the session many times and not closing it and in the mean time u request another session open which will pop up the error.Hope it helps
0 件の賞賛
メッセージ5/17
5,468件の閲覧回数

"The weird thing is, I can reboot the PC and start up my app and make this call first before anything else, and I still get the error"

 

 

 

0 件の賞賛
メッセージ6/17
5,463件の閲覧回数




Have you gone through the text that i have written?
メッセージ7/17
5,456件の閲覧回数
Try using a simple NI example (HL Grab.vi) and see if the problem still occurs.  If it runs fine, then it's definitely an error in your code.
 
Bruce
0 件の賞賛
メッセージ8/17
5,453件の閲覧回数

First of all, thanks for replying! 

 

If I put a breakpoint on the IMAQ init - it fails the FIRST time through the loop.  Yes, it is a while loop, but it is part of a queue so the loop will not execute again until that case is complete and you will see that I do terminate the session before exiting the case.  The grab setup is outside of the inner loop.  I am trying to say that I am positive the init is not being called anywhere else and the very FIRST time it is called it errors out. 

0 件の賞賛
メッセージ9/17
5,451件の閲覧回数

I am trying to say that I am positive the init is not being called anywhere else and the very FIRST time it is called it errors out.


Sounds very strange to me.Will  check to see  what the problem can be.In the mean time If you are out of the problem ,Please share as to what was creating this mess
メッセージ10/17
5,446件の閲覧回数