Jump to content

Interpolate 1D Array Always Coerces Index for Integer Arrays


mje

Recommended Posts

When using the Interpolate 1D Array with an array of integers, I can't seem to keep the index terminal from coercing:

post-11742-0-08101200-1318431352.png

The coercion persists regardless of what floating type is presented. I see this behavior if the array is any integer type.

Is this intended?

Link to comment

Oh yes, the code indeed works as expected: a value of 55.1 produces the expected output in your code of 165.3. I was only pointing out the existence of the little red coercion dot on the fractional index input. No matter which representation I choose, the value is always apparently coerced. If the coercion is real, I'm not sure what the primitive is expecting for data. Right clicking on the terminal and creating a control/constant still produces a coercion.

Link to comment

If you don't wire an input array, you can drop a constant off the index terminal which doesn't coerce. However, try changing the representation to another floating point (fixed or single) - still no coercion. Now undo and redo - coercion dot!

Report this to NI. It's a bug of some sort, but it may not have any severe consequences.

Link to comment

Sorry MJE, I misunderstood.

Indeed, now I see the problem

If you don't wire an input array, you can drop a constant off the index terminal which doesn't coerce. However, try changing the representation to another floating point (fixed or single) - still no coercion...

...now just run - coercion dot!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.