Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Labview problems and code problems (http://www.chiefdelphi.com/forums/showthread.php?t=41641)

ajsetter 11-01-2006 21:26

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

Mr.Fahrenheit 11-01-2006 21:30

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

DonRotolo 11-01-2006 21:34

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

Kevin Watson 11-01-2006 21:48

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

ajsetter 11-01-2006 22:47

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

DanDon 11-01-2006 22:52

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.

Ryan O 12-01-2006 15:54

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?

Kevin Watson 12-01-2006 16:42

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

ldeffenb 12-01-2006 17:09

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! :(

Ryan O 12-01-2006 19:31

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.

cmurdoch 13-01-2006 16:55

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

cmurdoch 13-01-2006 17:39

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

X-Istence 13-01-2006 23:16

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 :D

Ryan O 14-01-2006 18:03

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.

Ryan O 14-01-2006 18:06

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.


All times are GMT -5. The time now is 11:06.

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