FIRST Robotics Competition Blog

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Occasional Task Machine Snippet

Whit-E_Wall-E
NI Employee (retired)

When programming your robot with LabVIEW, you may have some tasks that you only want to run occasionally in Teleop. In this snippet, the accelerometer is sampled and sent to the dashboard every 5 calls of the Teleop VI by incrementing number stored in a feedback node. This can be used to log data without having to run every time a status packet is sent to the DS.

If you are looking for more ways to incorporate or add an accelerometer to your application check out our online tutorial, Robot Framework.  This tutorial will step you through adding an Accelerometer to the Periodic Tasks VI.

reduced rate execution.png

Regards,

M. Whitaker
ni.com/support