01-08-2013 03:42 AM
i have applied an equation to column values of a text file, thr is two columns; for each 10 values i should get an output value, so a total of 5 values + 5 values for each of the two columns with 50 values.
my vi doesnt wrk properly, the values are not coorect, and i get only 5 values instead of 10 (5 for each of the 2 columns with 50 values)
i hv attached my vi, pls help.
Solved! Go to Solution.
01-08-2013 03:49 AM
Hi
attached is the working code
01-08-2013 04:13 AM
really thanks for the help, but please review this code tht i have attached.
The earlier code is not working here. What should i do.
I have attached both vi and data file.
01-08-2013 07:38 AM
01-08-2013 07:55 AM - edited 01-08-2013 07:57 AM
i made a slight change, deleted the "transpose array" function. Now am geeting the 18 values each for each of the 2 rows, but the values are wrong.[showing NaN].
formula is correct.
I couldnt find where is the fault.
01-08-2013 08:20 AM
Of course you are getting NaN in there. You are divided by 0. Hint: The first 10 elements going in are all 0.
01-08-2013 08:44 AM
thnaks for the reply and help, i did it i feel, pls check.
01-08-2013 11:19 AM
That looks like a very logical fix. In general, be weary about doing equality checks with doubles. But you should be fine here since we only care about 0.
01-08-2013 07:48 PM
🙂 thankyou