AZoptics Posted December 23, 2008 Report Share Posted December 23, 2008 Hi, I've only ben exposed to LabView for about a year now, and it's still rather new to me. I've been put in charge of re-writing a program in LabView 7.0 and I keep running into some problems with some IMAQ1394 sub vi's. The error always reads out "Invalid Session ID". Also, I traced the error back further and it says that there is an invalid file name for the camera that I'm trying to use. I've tried researching this problem, and haven't come up with many answers. The camera ID is the same in this program as in another working program on the computer. I really could use some help trying to figure out what's going on. Thanks. Quote Link to comment
Francois Normandin Posted December 23, 2008 Report Share Posted December 23, 2008 QUOTE (AZoptics @ Dec 22 2008, 12:18 PM) Hi,I've only ben exposed to LabView for about a year now, and it's still rather new to me. I've been put in charge of re-writing a program in LabView 7.0 and I keep running into some problems with some IMAQ1394 sub vi's. The error always reads out "Invalid Session ID". Also, I traced the error back further and it says that there is an invalid file name for the camera that I'm trying to use. I've tried researching this problem, and haven't come up with many answers. The camera ID is the same in this program as in another working program on the computer. I really could use some help trying to figure out what's going on. Thanks. You should post some VIs or screenshots of your work for us to help. Quote Link to comment
crelf Posted December 23, 2008 Report Share Posted December 23, 2008 Have you selected a driver to be used and initialized the camera in MAX? Quote Link to comment
AZoptics Posted December 23, 2008 Author Report Share Posted December 23, 2008 I've only ben exposed to LabView for about a year now, and it's still rather new to me. I've been put in charge of re-writing a program in LabView 7.0 and I keep running into some problems with some IMAQ1394 sub vi's. The error always reads out "Invalid Session ID". Also, I traced the error back further and it says that there is an invalid file name for the camera that I'm trying to use. I've tried researching this problem, and haven't come up with many answers. The camera ID is the same in this program as in another working program on the computer. I really could use some help trying to figure out what's going on. Thanks. Quote Link to comment
AZoptics Posted December 23, 2008 Author Report Share Posted December 23, 2008 QUOTE (crelf @ Dec 22 2008, 11:22 AM) Have you selected a driver to be used and initialized the camera in MAX? I don't know. The camera works just fine with another program on the same computer and both programs call the camera the exact same way and the camera is named the same, only difference is that one has just IMAQ sub vi's and the other has IMAQ1394 sub vi's. (I'm still trying to figure out exactly what is going on, this is my first big experience with labview other than "build a thermometer" on the tutorial) Also, when I run the program, it can't find the correct file, but the vi that I look in has no where to change the file path. (I'll try to get some screen shots up) Quote Link to comment
crelf Posted December 23, 2008 Report Share Posted December 23, 2008 QUOTE (AZoptics @ Dec 22 2008, 05:36 PM) The camera works just fine with another program on the same computer and both programs call the camera the exact same way and the camera is named the same, only difference is that one has just IMAQ sub vi's and the other has IMAQ1394 sub vi's. It sounds like the camera hasn't been configured on one of the systems. Open Max and see if you can get an image in there. Quote Link to comment
Francois Normandin Posted December 23, 2008 Report Share Posted December 23, 2008 There must be two drivers available, one for your software and the generic IEEE1394 driver... As crelf pointed out, check in MAX and change the active driver to the generic one. (From what I can remember, you might have problems with your external software once you've changed it...) Quote Link to comment
AZoptics Posted December 24, 2008 Author Report Share Posted December 24, 2008 I found MAX and found the camera in there. I can't see an image in there, however I do get images on my working program. The camera name comes up as img0 on my working problem as well as in MAX, and the camera name in the non-working program is cam0, but when I tried to change the camera name, it responded with a "bad camera file". I think I've confused myself into just playing with things and hoping they work. And I still am learning labview, so that really adds to my confusion. Anyway, the program that I am trying to amend is a stokes vector program: the goal is to be able to have a stokes vector represented by the images taken by the camera. We have a working Muler Matrix calculating program, which I am trying to amend to use the stokes math in. The stokes program has everything that I need, but the camera does not want to be recognized. Sorry if I keep asking stupid questions, I just really know very little about labview and am trying to learn!! Thanks for your help so far!! Quote Link to comment
Neville D Posted December 24, 2008 Report Share Posted December 24, 2008 Try some of the example programs. If they work, then make sure your code has similar constructs i.e open camera session, wire the camera (IMAQ session) to all other subVI's then close the camera session. When you say "working program" do you mean another LV program or some other camera manufacturers' application? Invalid session ID might occur if you are trying to use a IMAQ session value that has not been opened (or another one exists from before that has not been closed). Post some code, its hard to diagnose otherwise. See this. Neville. Quote Link to comment
crelf Posted December 25, 2008 Report Share Posted December 25, 2008 QUOTE (AZoptics @ Dec 23 2008, 04:43 PM) I found MAX and found the camera in there. I can't see an image in there, however I do get images on my working program. You say that you can see the images in one app (non-firewire), but you can't see them in your firewire app - that confuses me. Is your camera a firewire camera or not? If you can't see the images in MAX then your LabVIEW application has no chance in seeing them. QUOTE (Neville D @ Dec 23 2008, 08:20 PM) Try some of the example programs. That's a great suggestion - at least that will confirm if it's your the configuration (which I'm almost sure it is) or your software. QUOTE (Neville D @ Dec 23 2008, 08:20 PM) Post some code, its hard to diagnose otherwise. Another great suggestion :thumbup: Quote Link to comment
Francois Normandin Posted December 25, 2008 Report Share Posted December 25, 2008 QUOTE (crelf @ Dec 24 2008, 09:30 AM) at least that will confirm if it's your the configuration (which I'm almost sure it is) or your software. As do I. Check out this video to help you test your camera's configuration. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.