LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Rectangle into String

Solved!
Go to solution

Hi. How could I convert 'Rectangle' into String so as to be able to write into a spreadsheet?

0 Kudos
Message 1 of 6
(3,686 Views)

Care to explain?  What does the data look like for the Rectangle?  What would you like to see in your spreadsheet?  Please provide an example showing your input data and what you expect as an output.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(3,670 Views)

How about opening a string constant and typing "Rectangle" inside it?  Is this what you mean?  Otherwise, I don't understand the question ...

 

BS

0 Kudos
Message 3 of 6
(3,631 Views)

The word 'Rectangle' is already a string. No conversion needed.

 

"Spreadsheet" implies multiple values with specially defined row and column delimiters. You only have one string value, so what is the point of saving it as a spreadsheet?

 

Do you have a list of numeric edge coordinates that you want to save as a spreadsheet?

Do you have a 2D array representing a bitmap image of a rectagle?

Do you want to add string column headers to an existing spreadsheet?

 

Please clarify your question.

Message 4 of 6
(3,617 Views)

Hi All. A noob here.. The Rectangle is a cluster as (I understood it to be). Unbundled it by name (Left, Right, Top, Bottom, Rotation), then converted to fractional string and built array and wrote it into spreadsheet.

 

Thanks.

0 Kudos
Message 5 of 6
(3,549 Views)
Solution
Accepted by topic author BodkinArrow

If all elements of the cluster are of the same datatype, all you would need to do is use "cluster to array" and "write to spreadsheet file".

Keep it simple! 😄

Message 6 of 6
(3,532 Views)