To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Transform from an angle into a direction.
Description
Given an anemometer that measures wind speed with direction by returning the angle of the direction with a reference point at North, this code shows how we can transform this angle into a coordenate direction.
In this code, we asume O degrees as North, and each direction has a range of 22.5 degrees. Any change in halfway between two directions, the string switches.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Open the "Transform an Angle to a Direction LV2012 - NI Verified.vi"
2. Select the angle that can be displayed by the anemometer.
3. Select the Run button.
Additional Information or References
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.