ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data reading assumptions

Solved!
Go to solution

Hi All,

 

I've ran some simulations for Torque-RPM curves for a specific engine on a different piece of software, and it's given me Torque values for the corresponding RPM in intervals of 1000 RPM. (see attached) 

 

I'm now trying to figure out a way of making LabVIEW assume the values in between these intervals, as right now I have a series of IF statements saying for example:

IF input = 15000 then Torque = 52.3308... and so on. (see attached)

 

I'm aware this is by no means the best way of doing this, just looking for a way to improve it.

 

Many thanks,

Dan

Download All
0 Kudos
Message 1 of 5
(3,022 Views)
Solution
Accepted by topic author ChangoMutney

Arrays.

 

Interpolate 1D array and Threshold 1D array can help you find the values between.

Message 2 of 5
(3,010 Views)

Hi Chango,

 

what about using Interpolate1DArray (or Threshold1DArray)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 5
(3,006 Views)

Excellent, thank you very much 🙂

0 Kudos
Message 4 of 5
(2,979 Views)

Thank you! 🙂

0 Kudos
Message 5 of 5
(2,978 Views)