Go to Post Indeed, the more ways you fail, the more ways you know something doesn't work.:) - Steven Sigley [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition > LabView and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2006, 17:18
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Labview CMUcam demo problem

Currently, I'm trying to get labview to work with the CMU camera. The camera is powered and our serial plug is plugged in, yet when I set the com to comport4 and press run, it does not run. I am not sure what the problem could be. I am not sure what the program demo itself is supposed to do, but I get an error stating there was a problem connecting. The error states that the error could be because of lack of power or a serial connection problem.

But I am pretty sure there is power and it is connected properly.

FYI, we are using a USB to serial converter, which works with the robot controller.

Any advice?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2006, 22:26
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
Currently, I'm trying to get labview to work with the CMU camera. The camera is powered and our serial plug is plugged in, yet when I set the com to comport4 and press run, it does not run. I am not sure what the problem could be. I am not sure what the program demo itself is supposed to do, but I get an error stating there was a problem connecting. The error states that the error could be because of lack of power or a serial connection problem.

But I am pretty sure there is power and it is connected properly.

FYI, we are using a USB to serial converter, which works with the robot controller.

Any advice?
Take a look at this post. Try the suggestions there and see if you still have the problems.

Good luck!
-Joe
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2006, 02:29
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
FYI, we are using a USB to serial converter, which works with the robot controller.
I use a USB-to-Serial converter as well to communicate with the CMUCam2, you need to make sure you've installed NI-VISA and also make sure your COM port shows up in Measurement and Automation Explorer (if you don't know what that is, you don't have NI-VISA installed).

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2006, 20:44
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
Currently, I'm trying to get labview to work with the CMU camera. The camera is powered and our serial plug is plugged in, yet when I set the com to comport4 and press run, it does not run. I am not sure what the problem could be. I am not sure what the program demo itself is supposed to do, but I get an error stating there was a problem connecting. The error states that the error could be because of lack of power or a serial connection problem.

But I am pretty sure there is power and it is connected properly.

FYI, we are using a USB to serial converter, which works with the robot controller.

Any advice?
i had a similar problem, in device settings i changed the port that the converter "was" to com1 and it worked. at least for me the gui wont see anthing above com3
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2006, 14:12
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Danny Diaz
I use a USB-to-Serial converter as well to communicate with the CMUCam2, you need to make sure you've installed NI-VISA and also make sure your COM port shows up in Measurement and Automation Explorer (if you don't know what that is, you don't have NI-VISA installed).

-Danny
Ok, we installed NI-VISA, and our port shows up in Measurement and Automation Explorer. We are still getting the same error.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2006, 15:59
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
Ok, we installed NI-VISA, and our port shows up in Measurement and Automation Explorer. We are still getting the same error.
Have you configured your baud rate for the COM port to 115200? That's a step I most often forget. Double-click on the COM port in MAX and then switch to the middle tab at the bottom of the screen (Device Settings I think) and set the Baud Rate to 115200.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2006, 16:29
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Danny Diaz
Have you configured your baud rate for the COM port to 115200? That's a step I most often forget. Double-click on the COM port in MAX and then switch to the middle tab at the bottom of the screen (Device Settings I think) and set the Baud Rate to 115200.

-Danny
We already have, we have followed all of the instructions in the manual (unless there is some special manual we don't know about).
Reply With Quote
  #8   Spotlight this post!  
Unread 16-01-2006, 18:37
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
We already have, we have followed all of the instructions in the manual (unless there is some special manual we don't know about).
Hmmm, if you're absolutely sure you've configured the COM port correctly, you've made sure the Camera app has the correct COM information (reported by MAX), you have NI-VISA installed, you have a completely charged backup battery plugged in, the camera is ON (there are green lights illuminated on the camera), the serial cable is firmly connected to the camera, and you can still not get the camera to connect then I don't know what to say.

Have you tried to use the camera with the IFI controller, or used the camera in any way thus far? Who knows, maybe you've got a bum camera? (just guessing)

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2006, 03:44
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
We already have, we have followed all of the instructions in the manual (unless there is some special manual we don't know about).
When you get the error, an error cluster should appear on the upper right in the application. What is the error code and error message?

Are you able to communicate with the camera using hyper-terminal?

-Joe
Reply With Quote
  #10   Spotlight this post!  
Unread 17-01-2006, 17:36
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Labview CMUcam demo problem

The error code is 5101. The source is "timeout during query."

We can program the camera with IFI loader, and we can use Kevin Watson's CMUcam code with it.
Reply With Quote
  #11   Spotlight this post!  
Unread 17-01-2006, 20:57
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
The error code is 5101. The source is "timeout during query."

We can program the camera with IFI loader, and we can use Kevin Watson's CMUcam code with it.
Hmmm.. I've never seen that error and it's not a defined error in LabVIEW. Can you give any more description about your setup?

Try testing the LabVIEW dashboard application. That will allow you to test the serial port on your computer.

-Joe
Reply With Quote
  #12   Spotlight this post!  
Unread 18-01-2006, 19:25
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Labview CMUcam demo problem

Ok, we downloaded the new code updated yesterday, and we're getting a new error:

code: d-1073807339

Source: VISA Read in query for result from serial port.vi->CMUcam2.vi->CMUcam2 GUI.vi


What is the LabVIEW dashboard application?

Last edited by Windward : 18-01-2006 at 19:28.
Reply With Quote
  #13   Spotlight this post!  
Unread 18-01-2006, 21:30
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
Ok, we downloaded the new code updated yesterday, and we're getting a new error:

code: d-1073807339

Source: VISA Read in query for result from serial port.vi->CMUcam2.vi->CMUcam2 GUI.vi
That error indicates that the camera can not talk to the computer. This could be because the serial cable is bad, the power to the camera is bad, the camera is plugged into the RC and the computer, etc. It also tells you that VISA is installed and that it was able to open the port. It could still be that you are not choosing the correct speed settings or not the correct port.

Quote:
Originally Posted by Windward
What is the LabVIEW dashboard application?
The dash board is linked from this post. The direct link is here (only good till Friday).

Any more symptoms?
-Joe
Reply With Quote
  #14   Spotlight this post!  
Unread 19-01-2006, 17:59
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Joe Hershberger
the camera is plugged into the RC and the computer, etc.
What does that mean? Are we not supposed to have the camera plugged into both at the same time?


We tried the dashboard application and it worked fine.

EDIT: We also went here http://www.chiefdelphi.com/forums/sh...ad.php?t=42043 and tried all of Danny Diaz's instructions for the VISA test panel.

with the serial cable plugged into the program port on the RC, we got "IFI>\x00Searching...\r\n" for the buffer, 19 for the return count, and the return status was "xBFFF006B".

with the cable plugged into the camera, we got "CMUcam2 v1.01 c7\r" for the buffer, 18 for the return count, and "xBFFF0015" for the return status.


EDIT AGAIN: We also tried plugging the serial cable into the programming port, but we once again got error 5101, "timeout during query". Our camera seems to work fine (it tracks and can find the green light at a limited range), we just need to use labview to calibrate it better.

Last edited by Windward : 19-01-2006 at 19:08.
Reply With Quote
  #15   Spotlight this post!  
Unread 19-01-2006, 20:32
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Labview CMUcam demo problem

Quote:
Originally Posted by Windward
What does that mean? Are we not supposed to have the camera plugged into both at the same time?
Bingo. The CMUCam2 cannot output from both serial ports at once, seems like if the TTL ouput is plugged in it uses that instead of the db9 serial port. Hence, unplug from the RC and that has been found to allow it to communicate via LabVIEW.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
National Instruments LabVIEW and Data Acquisition Forum Danny Diaz National Instruments LabVIEW and Data Acquisition 1 16-01-2006 13:20
LabVIEW - CMUcam finds target but cant track bear24rw Programming 6 13-01-2006 21:43
Problem installing Labview Joohoo LabView and Data Acquisition 3 08-01-2006 10:51
Victor problem Andy Baker Electrical 15 24-06-2003 09:49


All times are GMT -5. The time now is 01:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi