03-05-2016 12:57 PM
Solved! Go to Solution.
03-07-2016 02:39 PM
I would recommend using Network-Published Shared Variables or Network Streams.
You can read about both in the cRIO developer's guide: http://www.ni.com/pdf/products/us/fullcriodevguide.pdf
There are also examples for both in the LabVIEW Example Finder.
03-29-2016 02:02 AM
Hi,
I would recommend you to connect both the camera in myrio and transfer the image through Wifi so that you need to connect your camera or the myrio to your PC all the time. if you do in this manner then you can make it into a stand alone project.
hope this helps you....
kudos are welcome
03-29-2016 03:48 AM
To elaborate on what the others have said:
- You can connect certain USB cameras directly to the myRIO, you may be able to use a USB hub and connect both cameras to the USB port on the myRIO and use the NI Vision toolkit to do your acquisition and image processing. It's not something I've ever done so I'm not sure if the myRIO is sufficiently powerful or not...but you could try it. If you went this route, you'd be able to run your image processing and servo control without a connection to the computer (or only to view the images/control the pan/tilt servo) by creating and deploying a Real Time Executable (rtexe) to your myRIO.
- If you want to connect the cameras to your PC, you could then run your image processing (i.e. the CPU intensive stuff) on the computer, and have it send the required information to the code running on your myRIO (for controlling the servos). You can use any sort of network communication for this - Network Streams (for losslessly streaming data), Network Variables (for reading the latest value), or you could do something with TCP/IP or UDP.
It doesn't matter if your myRIO is connected via USB (which is basically a usb to ethernet adapter) or WiFi - the process is exactly the same.
The cRIO developer's guide is an excellent resource for learning how to communicate between a Host PC and RT target (like the myRIO).
03-29-2016 11:51 AM
Thank you everyone for the idea and help. I learned how to do network stream with network-published variables. Took some time getting used to it, but I got it down. Sadly, I can't do Wifi since my school has restrictions with their Wifi (really unnecessary and really inconvenient).