LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb cam and myrio

hello. how send continuous images taked from usb cam connected to myrio (RT target), to Pc for processing.

0 Kudos
Message 1 of 7
(2,053 Views)

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

0 Kudos
Message 2 of 7
(2,019 Views)

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?

0 Kudos
Message 3 of 7
(1,965 Views)

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?

0 Kudos
Message 4 of 7
(1,961 Views)

@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

0 Kudos
Message 5 of 7
(1,950 Views)

cause my project is stand alone system. detect fire using image processing without pc. only myrio and camera. 

0 Kudos
Message 6 of 7
(1,934 Views)

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

0 Kudos
Message 7 of 7
(1,924 Views)