03-03-2015 03:50 AM
like what I said the table value is constant.
I just want to know the connection of the wires. I dont know how to connect the all three of array table. like previous question I asked its just two of array table with one input. but now I want to use two input with three table and the third table is the answer one
03-03-2015 03:55 AM
If it is constant. what is use of giving A & B values. I think One array is enough to get Z values.
03-03-2015 04:06 AM
Thank you munna232,
but is it possible to do just want array because the table I used is contains many value like below one
X Y Z
03-03-2015 05:30 AM
Lots of people seem to be trying to help, but are frustrated by a lack of understanding of exactly what you are trying to do. Your statement of the problem is very unclear, and when someone proposes a solution all you can say is 'that's no good'!! You are making it very difficult for people to help you.
What exactly are you trying to do? What is your application? What are these two inputs someone types in and what is the output for? Do they only ever type in the X and Y values in the specific pairs shown in the table (eg. 6 & 2.5 as a pair but never 6 & 1)? What do you expect to happen if they type in numbers not in the table?
I can't help thinking that if we knew what you were trying to acheive then there might be a much simpler solution - really, it shouldn't be this hard!
I asked before if you could explain why you wanted to do this because I wanted to help, and you didn't bother answering my question, and nine posts late you are still no closer to a solution. So try explaining your problem so we can underestand what you are trying to do and then I am sure you will get a simple solution.
Stu.
03-03-2015 06:59 AM
I believe that what you are looking for is a 2D lookup table. Z needs to be 2D so you can index it based on both X and Y. For demonstration:
If you are only interested in the actual values in the Z table, rather than any kind of interpolation between them (which seems to be your case), you can simply find the indices of X and Y that correspond to your input and then index Z based on them:
VI's for 2D interpolation are included in the Mathematics -> Interpolation & Extrapolation palette (not sure if this is available in base or comes with a NI math toolkit).
03-03-2015 07:11 AM
VItan wrote:
VI's for 2D interpolation are included in the Mathematics -> Interpolation & Extrapolation palette (not sure if this is available in base or comes with a NI math toolkit).
According to the help, Interpolate 2D VI requires Full Developmnet System (as of LabVIEW 2014).
03-03-2015 07:32 AM
Yeah. I think I'm going to check out of this thread. It is very irritating when a person gives an extremely simplified version of there a problem. They say it doesn't work because their real problem is much more complicated. And they keep adding new complications to their problem every time they post a new thread.
When they can't explain what it is they are really trying to do, there is no point in trying to help.
03-03-2015 07:46 AM
03-03-2015 07:56 AM
Of course, for a totally different approach, if all you want is a lookup for a finite number of specific pairs, why not just put them into a ring control so the user can select only the pair of values that are allowed. Because the ring control has an integer output you will need to set 4 digit values and divide the result by 100 to get the decimal vaues you want.
Of course this might be a sensible solution or not - I have no idea as I have not idea what you are trying to do!!