08-26-2009 04:02 PM
Hello:
I'm facing an error I can't explain. I have configured an Smart Camera NI 1742, to do some tests. The camera is configured in MAX. In MAX I can do some image snaps and image grabs with no problem, I can do the same in Vision Assistant. However, in LabVIEW I can't even start an IMAQ session.
When I try to open a session with the IMAQ Init Vi, I always get an error, that says "NI IMAQ: The passed in sesssion or interface is invalid". I don't understand why this happens. I've done some research and I've found that this error shows when the indicated interface doesn't exist or the device is unplugged. But I have checked, and rechecked, and as you can see in the previous image, the interface exists and of course the smart camera is plugged and working. No error status shows in the status led. I tried with the VI generated with Vision Assistant but had no luck, in LabVIEW always the error shows.
I have LabVIEW 8.6, Vision Assistant 8.6, NI-IMAQ 4.3, MAX 4.6.1
Any idea why this error is happening?, I have tried, but I can't figure out why!
I really really appreciate any help. I'm a bit desperate.
Thanks in advance.
Robst.
Robst - CLD |
Using LabVIEW since version 7.0 |
Solved! Go to Solution.
08-26-2009 04:38 PM
Hi,
Just to make sure, are you running LabVIEW RT? and if you are, are you running your VI on My Computer or did you create a project and added your Smart Camera target, and the VI under that Target?
If you're running your VI on your local machine, the error message makes sense as there is no img0 interface in your computer.
-Christophe
08-26-2009 10:36 PM
Hello ChristopheC:
Yes, you were right, I did it all so quickly that I forgot to check the basics. I feel a bit embarrased...won't happen again. Now everything is running smoothly.
Thank you so much.
Robst.
Robst - CLD |
Using LabVIEW since version 7.0 |
08-26-2009 10:38 PM
Can't believe it!, I marked my reply as a solution, instead of yours...I really need some rest, quickly! ... anyway, I hope some kudos and my grattitude are enough for you
Robst.
Robst - CLD |
Using LabVIEW since version 7.0 |
08-26-2009 10:40 PM
Just found out a way to unmark a previous solution and mark a new one...now the correct message is marked as a solution...now I'm leaving, need to disconnect for a while, seriously...
Robst - CLD |
Using LabVIEW since version 7.0 |
03-31-2010 12:28 AM
03-31-2010 12:50 AM
03-31-2010 04:32 AM - edited 03-31-2010 04:36 AM
my camera is a USB camera,not a smart camera.and in MAX,it's under the item of my system/NI-IMAQdx devices.then,what should i do?thank you
03-31-2010 04:36 AM
tuming wrote:my camera is a USB camera,not a smart camera.so what should i do?thank you
Then why did you post in an unrelated thread? Start a new one explaining the problem. Post a screenshot if possible.
12-27-2012 07:34 PM - edited 12-27-2012 07:35 PM
hi tuming,
I'm having the same problem as you, have you got any solutions?
Thanks.
Hyanna