Go to Post Its easier to solve a problem when you have a positive attitude about it. - Arefin Bari [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 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
  #2   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
  #3   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
  #4   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
  #5   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
  #6   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
  #7   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
  #8   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
  #9   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
  #10   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
  #11   Spotlight this post!  
Unread 20-01-2006, 18:34
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

Ah hah! It works! thanks so much!
Reply With Quote
  #12   Spotlight this post!  
Unread 20-01-2006, 19:39
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
Ah hah! It works! thanks so much!
Woo hoo. Sounds like I need to create an FAQ on the CMUCam2 applications... I'll post a link to them once they're created.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
Reply With Quote
  #13   Spotlight this post!  
Unread 21-01-2006, 13:50
MasterZeus MasterZeus is offline
Registered User
#0211 (MAK)
 
Join Date: Jan 2003
Location: Rochester, NY
Posts: 15
MasterZeus is on a distinguished road
Re: Labview CMUcam demo problem

Thanks so much guys. I have the exact same issue and have been pulling my hair out all day trying to get it to work!
__________________
Thanks,
Chad

MAK Team 211
Marshall And Kodak, Rochester NY
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 07:31.

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