# High Throughput Rectangular to Polar (Clock-Driven Logic)

Converts rectangular coordinates to polar coordinates. This node returns the phase of the polar coordinates in pi radians, which use fewer FPGA resources than radians. To convert the phase into radians, divide the value by pi.

## x

X value of the rectangular coordinates.

This input supports only scalar values of the fixed-point data type.

Note

If you wire an unsigned value to this terminal that has a word length of 64 bits, LabVIEW coerces the word length to be 63 bits and displays a coercion dot on the wire.

x and y Coercion

If you wire fixed-point data types with different configurations to the inputs, this node uses a shared, signed fixed-point data type to represent the value of both inputs internally. The maximum word length of this internal data type is 64 bits. If the configurations of the inputs result in an internal word length greater than 64 bits, this node rounds off the fractional bits of one input to achieve an internal word length of 64 bits, resulting in a loss of precision. This node rounds off the input that has the most fractional bits.

## y

Y value of the rectangular coordinates.

This input supports only scalar values of the fixed-point data type.

Note

If you wire an unsigned value to this terminal that has a word length of 64 bits, LabVIEW coerces the word length to be 63 bits and displays a coercion dot on the wire.

x and y Coercion

If you wire fixed-point data types with different configurations to the inputs, this node uses a shared, signed fixed-point data type to represent the value of both inputs internally. The maximum word length of this internal data type is 64 bits. If the configurations of the inputs result in an internal word length greater than 64 bits, this node rounds off the fractional bits of one input to achieve an internal word length of 64 bits, resulting in a loss of precision. This node rounds off the input that has the most fractional bits.

## input valid

Boolean value that specifies whether the next data point is valid and can be processed.

Wire output valid of an upstream node to this input to transfer data from the upstream node to this node.

 True The data point is valid and can be processed. False The data point is not valid.

Boolean value that specifies whether downstream nodes are ready for this node to return a new value.

Use Feedback Node to wire this input to the ready for input input of a downstream node. If this input is False during a given cycle, output valid returns False during that cycle.

 True The downstream node is ready for the next data element. False The downstream node is not ready for the next data element.

Default: False

Magnitude.

## phase

Phase in pi radians, which use fewer FPGA resources than radians. To convert this value into radians, divide phase by pi.

## output valid

Boolean value that indicates whether this node computes a result that downstream nodes can use.

Wire this output to the input valid input of a downstream node to transfer data from the node to the downstream node.

 True Downstream nodes can use the result this node computes. False This node returns an undefined value that downstream nodes cannot use. Note   This node may return different undefined values when executed in simulation mode versus when executed on hardware.

Boolean value that indicates whether this node is ready to accept new input data.

Use Feedback Node to wire this output to the ready for output output of an upstream node.

 True The node is ready to accept new input data. False The node is not ready to accept new input data.
Note

If this output returns False during a given cycle, this node discards any data that other nodes send to this node during the following cycle. This node discards the data even if input valid is True during the following cycle.

## Input Coercion

If you wire a fixed-point data type to only x or y, this node coerces the unwired input to match the configuration of the wired terminal.

Tip

To create a second fixed-point data type with the same configuration as the wired input, right-click the unwired input and select Create»Control or Create»Constant.

Where This Node Can Run:

Desktop OS: none

FPGA: All devices

Web Server: Not supported in VIs that run in a web application