Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Transferring Data on a Single Target (Robotics Module)

LabVIEW 2013 Robotics Module Help

Edition Date: June 2013

Part Number: 372983D-01

»View Product Info

Use the Queue Operations functions to communicate between processes in a robotics application when transferring data on a single target. Processes that communicate using Queue Operations functions can run in parallel while also running at different rates.

Note  
  • Use the RT FIFO functions instead of queues to transfer data on a single target in RT and FPGA applications that must maintain determinism.
  • Use user events instead of queues to broadcast data to multiple processes on a single target.

The following figure shows an example of a robotics application that uses queues.

The following events occur in the previous figure.

The obstacle detection process acquires data at a rate of 200 times per second and stores those data points in a queue.
Because the path planning process is computationally intensive, it runs approximately two times per second and waits until the queue obtains 100 data points.
When the queue contains 100 data points, the path planning process calculates a path for the robot.
Note  Because these processes run in parallel, they do not block each other. The obstacle detection process can continue to add data points to the queue even as the path planning process calculates a path.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit