![]() |
Re: Is the crio powerful enough?
Quote:
|
Re: Is the crio powerful enough?
Quote:
It also provides the system watchdog. Most FPGAs are programmed over JTAG, they only need power (some need 3.3v for IO as well as 1.75v for the main processor) and a clock to be programmed. Keep in mind that some of them are volatile, they lose their program upon power down, so those ones need an external flash memory in order to function properly each time it is powered up. As far as capturing / processing goes, the FPGA could do both (if you use one that has enough NAND (or NOR) gates). If to be used for capturing, then it would have to be a "middle man" between the camera and the cRIO. This would allow all of the processing to be done without putting ANY load on the cRIO. It would appear be something like a CMUCam to the cRIO. The CMUCam would give the RC a very limited set of data (but the data was useful). It gave the centroid's (Center of mass) coordinates, 2 coordinates (a box where the green target was found), and servo control commands to keep the target centered. Quote:
Each camera would have its own IP address (unless your processing FPGA is what is ultimately communicating to the cRIO, in which case no cameras would show up, the only data transferred would be in your own custom protocol and with your own data.) and thus would show up as 2 cameras. |
Re: Is the crio powerful enough?
Quote:
|
Re: Is the crio powerful enough?
Quote:
Many of the ways an FPGA can be used are the definition of "processing" digitized data; and the inevitable consequence of that, is that an FPGA is (among other things) a type of "processor". FPGA's certainly are not one of the typical CISC/RISC Central Processing Units usually found at the heart of a desktop computer or of many embedded computing products; but "processor" is certainly one of the ways they can be configured and used. Blake |
Re: Is the crio powerful enough?
Quote:
It can go fast, the board that I have clocks it at 100mhz (and it can go faster). Acquiring images will take up some resources on the FPGA, but if you are already making your own board (Most FPGAs are ball grid array ics) you could include an ARM (or something similar) processor to grab the image from the camera. Programming FPGAs is different then a CPU. Everything is in parallel. For example something simple that can provide weird results is: Code:
int a = 2, b = 3;"A : 3" "B : 3" However, if executed on an FPGA: "A : 3" "B : 2" Since you are the one who is programming the FPGA, you could have it interface to the cRIO in any way that you want. The cRIO has ethernet, serial, SPI, I2C, analog in (this would require digital potentiometers and be slow), and digital IO. |
Re: Is the crio powerful enough?
Quote:
|
Re: Is the crio powerful enough?
Quote:
|
Re: Is the crio powerful enough?
Quote:
-Joe |
Re: Is the crio powerful enough?
Yeah, I wasn't sure how to do that in a way that would prevent it from being preprocessed by the compiler. A million elements probably does count as a huge array.
My assumption was that by generating the array beforehand the FOR loop would simply replace each element in the array as it went through, eliminating the overhead of *creating* an array. |
Re: Is the crio powerful enough?
Quote:
![]() What do they mean by "scanning" here? Is that constantly switching between channels? |
Re: Is the crio powerful enough?
Quote:
Perhaps you can run another test that computes y=sin(sin(x)) and subtract the timing results from the test you already ran. Then that will leave you with only the difference between calling sin twice compared to once for each call of the loop, and all of the loop structure and the array handling will be canceled out. -Joe |
Re: Is the crio powerful enough?
Quote:
Scanning refers to sampling more than one channel (i.e. muxing between channels). The overall max module sample rate is unaffected by the number of channels scanned, but the rate per channel is divided by the number of channels. This means if you can reliably distinguish 8-bits, then the data transfer rate through analog input is 500 kBytes per second. That's one of the faster options. -Joe |
Re: Is the crio powerful enough?
Quote:
It would be slower then any of the other methods of digital communication, as the FPGA (or other processor) has to communicate with the potentiometer and then the pot has to change its value which takes time. It would also only be a one way communication method. |
Re: Is the crio powerful enough?
Ok this FGPA stuff seems very complicated, I think I would get caught up on trying to figure out the FGPA it self instead of the actual problem, I think I would want to pursue an alternative. I think the shop has a CMUcam or two laying around, I think I would want to experiment with those, is there isn't pick up 2 cheap web cam and try using a PC to do it.
|
| All times are GMT -5. The time now is 23:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi