From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-09-2024 04:06 AM
I had 2D array, this array column 1 represent year. Column 2 represent profit.
How to use for loop to search input year then find profit
ex: input 2012
output 0.4
Solved! Go to Solution.
09-09-2024 04:43 AM
09-09-2024 08:09 AM
tks a lots interesting method
bcz i had three clusters need searching
two input(Stock number, year) get one output(profit)
now I'm stuck with how to use while loop to get output
09-09-2024 08:19 AM - edited 09-09-2024 08:21 AM
Hi Aaron,
@ironaaron wrote:
bcz i had three clusters need searching
@ironaaron wrote:
two input(Stock number, year) get one output(profit)
now I'm stuck with how to use while loop to get output
09-09-2024 08:28 AM
wanna searching like
when input1(stock number):2819, input2(year): 2010, then get output(profit):0.64
never searching for cluster so I'm stuck in this issue now
09-09-2024 08:52 AM - edited 09-09-2024 08:57 AM
Hi Aaron,
you still don't provide an example VI.
I still cannot edit/debug/run images with LabVIEW (see my previous message) and I don't want to recreate your array of clusters "manually"…
(Take care of my signature line.)
I can also provide images of code:
09-09-2024 09:02 AM
this my code tks your patient for wait me asking question
first time suffering cluster, so can't figure out
09-09-2024 09:54 AM
when stock:8299
year:2018
still can't recieve my ideal profit(output):2.988
please help me to debu thanks a lot
09-09-2024 10:03 AM
Hi Aaron,
@ironaaron wrote:
when stock:8299
year:2018
still can't recieve my ideal profit(output):2.988
Because you don't read the LabVIEW help for the used functions!
Please read the help for Interpolate1DArray, it mentions an important requirement for the arrangement of your data! (See the "Note!" at the end of the help article.)
Then re-arrange your data to fit this requirement…
09-09-2024 10:41 AM
ignore this crucial note, sincerely my fault
Thank you for patiently answering my questions.