Go to Post Robotics for me though really is hard to beat. Though tiring and exhausting, the memories you build are priceless. - ShadowKnight [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2006, 21:26
ajsetter's Avatar
ajsetter ajsetter is offline
Registered User
AKA: Andrew Setter
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Oct 2005
Rookie Year: 2004
Location: Indianapolis
Posts: 12
ajsetter is an unknown quantity at this point
Labview problems and code problems

One of the first issues we tried to solve once we got the parts were to find out exactly what color the green light is in rgb values, reading through the workbook, we're supposed to use labview 8 student edition with the "cmucam2 demo.llb application." We have labview 8 installed from the kit, but myabe its just me, but i can't find the cmucam2 demo application anywhere on the cd's. Can someone point me in the right direction here?

Another thing related to the code, we've successfully downloaded the 2006 default rc code to the RC from the innovation first website and everything worked fine. I then downloading the frc_camera_s and frc_serial_ports zip files from kevin's site. Upon inspection of the readme's and the contents of the zip files, i assumed that i can open the mcw files titled "camera" or "serialports" in mblab and compile and that would work, am i correct? i tried doing it that way with the "camera" mcw file but once downloaded to the rc, the terminal kept displaying "Searching..." over and over again. after that, we followed the camera readme file and did the instructions in there with changing the files around the compiled and downloaded that result and it seems to be working fine, but we can't get the camera to respond to any commands (by calling functions in camera.c). can someone please direct me on what exactly to do with the code just to get the camera working, after its working, i can get it from there (i hope).

Thanks
  #2   Spotlight this post!  
Unread 11-01-2006, 21:30
Mr.Fahrenheit's Avatar
Mr.Fahrenheit Mr.Fahrenheit is offline
The "Other" Guy
AKA: Mike
FRC #0033 (Killer Bees)
Team Role: Student
 
Join Date: Oct 2005
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 17
Mr.Fahrenheit is an unknown quantity at this point
Send a message via AIM to Mr.Fahrenheit
Re: Labview problems and code problems

Were having the same problems when it comes to the tracking of the object while using the RC. We ran a diagnostic on the thing and it came up with no signal being sent so i have no clue what is wrong with ours... just thought you might feel better that your not the only one with this problem
__________________
Mike Kaurich
  #3   Spotlight this post!  
Unread 11-01-2006, 21:34
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,006
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Labview problems and code problems

Quote:
Originally Posted by ajsetter
One of the first issues we tried to solve once we got the parts were to find out exactly what color the green light is in rgb values, reading through the workbook, we're supposed to use labview 8 student edition with the "cmucam2 demo.llb application." We have labview 8 installed from the kit, but myabe its just me, but i can't find the cmucam2 demo application anywhere on the cd's. Can someone point me in the right direction here?
Sure, have a look here it explains it all.

Don
__________________

I am N2IRZ - What's your callsign?
  #4   Spotlight this post!  
Unread 11-01-2006, 21:48
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Labview problems and code problems

Quote:
Originally Posted by ajsetter
One of the first issues we tried to solve once we got the parts were to find out exactly what color the green light is in rgb values, reading through the workbook, we're supposed to use labview 8 student edition with the "cmucam2 demo.llb application." We have labview 8 installed from the kit, but myabe its just me, but i can't find the cmucam2 demo application anywhere on the cd's. Can someone point me in the right direction here?
You should be able to use the default color values in camera.h with the green target.

Quote:
Originally Posted by ajsetter
Another thing related to the code, we've successfully downloaded the 2006 default rc code to the RC from the innovation first website and everything worked fine. I then downloading the frc_camera_s and frc_serial_ports zip files from kevin's site. Upon inspection of the readme's and the contents of the zip files, i assumed that i can open the mcw files titled "camera" or "serialports" in mblab and compile and that would work, am i correct? i tried doing it that way with the "camera" mcw file but once downloaded to the rc, the terminal kept displaying "Searching..." over and over again. after that, we followed the camera readme file and did the instructions in there with changing the files around the compiled and downloaded that result and it seems to be working fine, but we can't get the camera to respond to any commands (by calling functions in camera.c). can someone please direct me on what exactly to do with the code just to get the camera working, after its working, i can get it from there (i hope).
The camera code should work out-of-the-box. Unzip frc_camera.zip and load camera.hex into the RC and you should be good to go. What exactly are you trying to accomplish when you were trying to send commands to the camera?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 11-01-2006, 22:47
ajsetter's Avatar
ajsetter ajsetter is offline
Registered User
AKA: Andrew Setter
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Oct 2005
Rookie Year: 2004
Location: Indianapolis
Posts: 12
ajsetter is an unknown quantity at this point
Re: Labview problems and code problems

by "send commands" i meant that calling the Track_color() function, thats all. The thing was i would call it with a green value, and the camera didnt even look like it was responding. I think i'll try the camera.hex now and retry everything. a question: once i load camera.hex to the RC, and i then want to go and write my own code, do i just use the camera.mcw file and edit the files in frc_camera?

Thank you all for the help
  #6   Spotlight this post!  
Unread 11-01-2006, 22:52
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Labview problems and code problems

Quote:
Originally Posted by ajsetter
by "send commands" i meant that calling the Track_color() function, thats all. The thing was i would call it with a green value, and the camera didnt even look like it was responding. I think i'll try the camera.hex now and retry everything. a question: once i load camera.hex to the RC, and i then want to go and write my own code, do i just use the camera.mcw file and edit the files in frc_camera?

Thank you all for the help
In order to get the camera tracking, you don't need to send a Track_color() command, the code as is when unarchived, can be downloaded to the robot and will track the target. The tracking function is in Track_servo() in the tracking.c file and the definitions of the pwms to drive the camera servos are in tracking.h. (When connecting the camera, make sure that the jumper for power to the servos is on external power, since in Kevin's code you are powering the servos through the RC rather than the camera.
__________________
  #7   Spotlight this post!  
Unread 12-01-2006, 15:54
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Labview problems

I have Labview and camera up fine, but can't get the Labview application to allow me to slect a COM port. It just gives me the option to refresh when I press drop down menu. What can I do?
  #8   Spotlight this post!  
Unread 12-01-2006, 16:42
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Labview problems

Quote:
Originally Posted by Ryan O
I have Labview and camera up fine, but can't get the Labview application to allow me to slect a COM port. It just gives me the option to refresh when I press drop down menu. What can I do?
I'd ask this question in the LabVIEW forum.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 12-01-2006, 17:09
ldeffenb ldeffenb is offline
Registered User
AKA: Lynn Deffenbaugh (Mr)
None #0386 (Team Voltage 386)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Florida
Posts: 75
ldeffenb has a spectacular aura aboutldeffenb has a spectacular aura aboutldeffenb has a spectacular aura about
Send a message via ICQ to ldeffenb Send a message via AIM to ldeffenb Send a message via Yahoo to ldeffenb
Re: Labview problems

Quote:
Originally Posted by Ryan O
I have Labview and camera up fine, but can't get the Labview application to allow me to slect a COM port. It just gives me the option to refresh when I press drop down menu. What can I do?
If you check in the directory with LABView's camera application, there's a PDF file that tells you where to get another layer for LABView that then allows you to configure the COMM port. Brace yourself for another 100+Mbyte download and you need to register at their web site to get it. But otherwise, it is free.

Lynn (D) - Team Voltage 386

PS. Hopefully we'll see something tonight. Last night we had LABView up, but on a machine without a serial port and we couldn't locate functioning drivers for our USB->RS-232 adapter!
  #10   Spotlight this post!  
Unread 12-01-2006, 19:31
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Labview problems

Thanks. Once I got my dad to look at it he figured out how to change the caption in the selection box to fix the problem. Once I get the info from him I'll post it in case anyone else runs into the same problem.
  #11   Spotlight this post!  
Unread 13-01-2006, 16:55
cmurdoch cmurdoch is offline
Registered User
AKA: Caroline Murdoch
FRC #1208 (Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: O'Fallon, IL
Posts: 17
cmurdoch is on a distinguished road
Re: Labview problems and code problems

I've tried everything I can think of, but I still can't find the CMUCam2 demo.llb file. Maybe I'm missing something really obvious here, but I'd really appreciate some help. I've tried the link in one of the other labview forums but my browser couldn't open the link. I've been wrestling with this camera all week and haven't been able to do anything but frame captures with it. I know the code is supposed to work and have it scan for the default color but so far I haven't had any luck. PLEASE HELP!!!

~Caroline Murdoch
  #12   Spotlight this post!  
Unread 13-01-2006, 17:39
cmurdoch cmurdoch is offline
Registered User
AKA: Caroline Murdoch
FRC #1208 (Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: O'Fallon, IL
Posts: 17
cmurdoch is on a distinguished road
Re: Labview problems and code problems

Ok I finally got the camera working. The code works flawlessly. Apparently this whole time the radios on the RC and Operator Interface haven't been communicating and all I needed was a tether cable. But I still can't find the CMUcam2 demo.llb. I'm slightly less panicked but I would still appreciate help locating the application.

Thanks
  #13   Spotlight this post!  
Unread 13-01-2006, 23:16
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: Labview problems and code problems

Quote:
Originally Posted by cmurdoch
Ok I finally got the camera working. The code works flawlessly. Apparently this whole time the radios on the RC and Operator Interface haven't been communicating and all I needed was a tether cable. But I still can't find the CMUcam2 demo.llb. I'm slightly less panicked but I would still appreciate help locating the application.

Thanks

http://www.chiefdelphi.com/forums/sh...ad.php?t=41214

Enjoy
__________________
My Blog!
  #14   Spotlight this post!  
Unread 14-01-2006, 18:03
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Labview problems

Ok, here's how you select COM ports before executing if you're having the same problem I did: In the label in the drop down box, there are some letters, a number (1 by default), the two colons and more letters. By changing the number you can change which COM port it looks in w/o a the drop down menu.
  #15   Spotlight this post!  
Unread 14-01-2006, 18:06
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Labview problems and code problems

I'm not sure if I need the Labview drivers for the camera. the disk got scracthed and I can't install the them. Do I need them? If I do, where can I get them? Any help would be great. Thanks for the help with the COM ports, by the way. I was able to get them working using your tips.
Closed Thread


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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Code problems doyler Programming 14 15-02-2005 16:23
Wierd gyro code problems...pls help Salik Syed Programming 4 14-03-2004 01:29
IR reflective (tape) sensor code problems Argoth Programming 8 07-02-2004 21:32


All times are GMT -5. The time now is 12:52.

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