From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph to boolean array

Solved!
Go to solution

Yes, array indices are quantized to integers. You cannot have an element at index 1.5, for example.

 

It is a simple linear transformation between values and indices. Typically, that involves an offset and a spacing. (e.g. if the values range from 1000.0 to 1000.9, you would use an offset of 1000 and a spacing of 0.1. 1000->index=0, 1000.1, index=1, etc.) I have no idea what you mean by decimal places, that typically has no meaning for binary data. Does the instrument have a natural step size, for example?

From the data range and spacing, you can calculate the array size you need. If you make the spacing too fine, you'll have large gaps between points and would need to interpolate in some way to fill the gaps.

0 Kudos
Message 11 of 11
(709 Views)