08-29-2020 03:05 PM
hello. how send continuous images taked from usb cam connected to myrio (RT target), to Pc for processing.
08-29-2020 04:24 PM
To let the PC process the images acquired by your myRIO, it is best to configure the PC/myRIO system as a LabVIEW Real-Time Project, with the Front Panel and all of the User Interface on the PC, and the Top Level VI on the myRIO having essentially no Front Panel. When I've done this, I've used a Messaging Design (similar to the Queued Message Handler or Queued State Machine) running on both the PC Host and the myRIO Target, and have use Network Streams to pass data back and forth. You need a minimum of two Streams -- one to pass Messages from Host to Target, and one to pass Messages from Target to Host. You may also want additional Streams, such as an "Image Stream" to pass IMAQ Images from the Target to the Host (although you could also pass them one-at-a-time by making them the "payload" of a Message such as "Captured Image" from the Target to the Host.
Bob Schor
09-05-2020 02:20 AM
thank you bob.is it the same method for sending images from RT module to fpga module? do you have any examples for this task?
09-05-2020 02:24 AM
i want to process image (for fire detection) pixel by pixel, and i transform image to 2D array for this processing.but the fpga module dont accept 2D array. what i do?
09-05-2020 08:49 AM
@mozahemmohamad wrote:
i want to process image (for fire detection) pixel by pixel, and i transform image to 2D array for this processing.but the fpga module dont accept 2D array. what i do?
Do what you proposed to do in your first message -- send the data to the PC for processing. It has the Floating Point chip and can handle 2D arrays.
Bob Schor
09-06-2020 12:57 AM
cause my project is stand alone system. detect fire using image processing without pc. only myrio and camera.
09-06-2020 10:23 AM
If you cannot do it using "Native LabVIEW" in the myRIO (i.e. non-FPGA code), and cannot do it "easily" in the FPGA (without writing your own 2D Array Processing routines for the FPGA), you might need to reconsider your hardware.
Bob Schor