Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   LabView/C++ equally capable? (http://www.chiefdelphi.com/forums/showthread.php?t=78239)

Greg McKaskle 12-09-2009 16:06

Re: LabView/C++ equally capable?
 
I'll see if I can find the test code. It was basically pointing the camera at the cRIO LEDs, the ones near the power and ethernet plugs. There is an RT function for controlling the LED, and I figured it was close to instantaneous compared to the camera, so I turned it off, and started the camera to acquiring.

At some point, I'd turn the LED on, record the time on the cRIO, then loop inspecting images until one showed up with the LED lit. To detect the LED being lit, I use the regular Camera Get which uncompresses the image, then I measured the intensity of a pixel over the LED. A that point, turn the LED back off, wait for things to settle, and do it over again. I decided to wait a random amount with the LED off. This gave me a pretty good statistical picture of the latency. It shows the minimum, the typical and the maximum time you could expect for a given camera setup.

Greg McKaskle

sami9145 14-09-2009 20:54

Re: LabView/C++ equally capable?
 
you know you can use Java right?

EricH 14-09-2009 21:19

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by sami9145 (Post 874104)
you know you can use Java right?

Last year, you couldn't. The only data we have is from last year (other than beta test data from this year). Therefore, we have to make this comparison until such time as Java camera code becomes available through some means.

sami9145 14-09-2009 22:09

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by EricH (Post 874108)
Last year, you couldn't. The only data we have is from last year (other than beta test data from this year). Therefore, we have to make this comparison until such time as Java camera code becomes available through some means.

that makes sense. we have no data from last year cuz all our programers graduated and didnt bother passing on their knowlege. so we gotta start from scratch. and we only know how to text program not visual so my team is gunna use java

Alan Anderson 15-09-2009 10:53

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by sami9145 (Post 874112)
...all our programers graduated and didnt bother passing on their knowlege. so we gotta start from scratch. and we only know how to text program not visual so my team is gunna use java

If you're starting from scratch, don't dismiss LabVIEW out of hand. For someone new to programming for FRC robots, I think it's a whole lot faster to learn.

EricH 15-09-2009 11:06

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by Alan Anderson (Post 874164)
If you're starting from scratch, don't dismiss LabVIEW out of hand. For someone new to programming for FRC robots, I think it's a whole lot faster to learn.

On the other hand, if they already know Java, it might be a whole lot faster to learn how to adapt it to robot programming. Ditto for C++.

EricVanWyk 15-09-2009 11:21

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by sami9145 (Post 874112)
that makes sense. we have no data from last year cuz all our programers graduated and didnt bother passing on their knowlege. so we gotta start from scratch. and we only know how to text program not visual so my team is gunna use java

Not knowing how to do something is a poor excuse for not doing it. Give it a shot before you dismiss it. You might like it, you might hate it, but you'll be better off for having tried it.

sami9145 15-09-2009 14:05

Re: LabView/C++ equally capable?
 
weve been trying to figure it out but we havent figured it out. we can make the computer make a random noise but thats about it.
were just gunna stick with robotc and labview.

rsisk 15-09-2009 16:36

Re: LabView/C++ equally capable?
 
Quote:

Another issue is the resolution. Each resolution change is a 4x pixels difference. 640x480 images are nearly 1MB bit and take 100ms simply to decompress. All processing will be about four times as expensive as the 320x240. The 320x240 images take about 22ms to decode, and this was the size I used for the examples. This was really just a built in performance handicap, and it is about 4x slower than the 160x120 image. The small image takes 8ms to decode and the processing will similarly be about four times faster.
At what point does a decreased resolution become unusable? Obviously a 1 pixel resolution will not do much good, but decreasing from 604x480 to 160x120 seems like a significant improvement.

Greg McKaskle 26-09-2009 18:54

Re: LabView/C++ equally capable?
 
The Axis 206 camera supports three resolutions. These three steps will be the best improvements overall. To get other sizes, you'll end up decimating or subsetting one of the larger sizes. This is still often worth it.

As for when resolution cuts are no longer worth it, in the real world, the nice cameras have an amazing flexibility with resolution, even to the point of having an image one pixel tall and X pixels wide. This may be useful when material is moving on a conveyer beneath the camera and you really only have time to process the new material.

Greg McKaskle

sami9145 10-10-2009 11:49

Re: LabView/C++ equally capable?
 
oy... some of the sample programs for RobotC (specifically the servo testbed thing) arent working!!!! we have everything hooked up right but its not cooperating. do we need servos for the robot or can we go without them?

Alan Anderson 10-10-2009 17:54

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by sami9145 (Post 877747)
oy... some of the sample programs for RobotC (specifically the servo testbed thing) arent working!!!! we have everything hooked up right but its not cooperating. do we need servos for the robot or can we go without them?

We'll need a lot more detail before trying to help. You say they "aren't working" -- what are you expecting them to do, and what are they doing instead? Instead of saying "hooked up right", can you tell us more precisely how everything is hooked up? What does "not cooperating" mean?

If you're trying to run a program to test servos, I'd imagine that servos would be an important part of the setup.

sami9145 17-10-2009 00:45

Re: LabView/C++ equally capable?
 
we were using a testbed set up thing (i dont have the papers with me to say what exactly it is) to help us learn how to start wiring servos and motors. the one with only the motor worked fine with the sample program provided. when we connected the servo (exactly as the instructions said) it didnt want to run and said there was an error.
any suggestions?

Alan Anderson 17-10-2009 23:26

Re: LabView/C++ equally capable?
 
Quote:

Originally Posted by sami9145 (Post 878592)
...it didnt want to run and said there was an error.
any suggestions?

I suggest you write down the error and tell us what it was. It's likely to help us help you.

sami9145 18-10-2009 14:50

Re: LabView/C++ equally capable?
 
I cant find out which error it is until school tomorrow. I dont have the robot at home with me although the software is on my laptop.
I will find out ASAP tho


All times are GMT -5. The time now is 20:35.

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