LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two input of table

Hi,

How to make two input of table X and Y will be automatically make the table  Z is the output and it will be display in indicator C

The value of X and Y is depend on Enum A and B as shown in figure

 

ABC.png

0 Kudos
Message 1 of 19
(4,161 Views)

Divide array Y by 10 and add to array X and you've got array Z.

 

How do you want to show that in C which is a scalar indicator?

 

Controls A and B are not enums, they are just double floating point controls.

 

What is up with the rest of the controls and indicators?

0 Kudos
Message 2 of 19
(4,154 Views)

sorry for wrong enum.

how to make for example if  input control A is 6 and B is 6 then the value Z is 6.6 as shown in table. this value 6.6 will then multiple with E and D as in firgure.

0 Kudos
Message 3 of 19
(4,141 Views)

A + B/10

0 Kudos
Message 4 of 19
(4,136 Views)

farah88, what exactly are you trying to achieve? RavensFan's answer (A+B/10) is the obvious answer to your question but I doubt that is what you really want (are the values in your picture just for example? - surely both arrays are not going to be 0 to 6 or you would just have one array?)

 

Can you explain why you want to do this so we can understand exactly what it is you want?

 

Stu.

0 Kudos
Message 5 of 19
(4,122 Views)

no, its just example.

I want to make if let say the value of A is 2.2 and B is 4.5 (this both value is assume to be input by user) then the value of 7 of Z table is automatically used.

like formula below (E + D) * (table Z)

0 Kudos
Message 6 of 19
(4,107 Views)

XYZS.png

0 Kudos
Message 7 of 19
(4,105 Views)
But what if the indexes of A and B are not the same? What would determine which value in the Z array to use? Your problem is ill-defined.
0 Kudos
Message 8 of 19
(4,088 Views)

Sorry,

 

the array table above is constant. user will enter value based on table given (hardcopy)

 

the value of table Z is depend on the both value A and B of table X and Y.

 

I means A= 1        B=1.5  ~   table Z=1

                A= 1.2     B=2.5  ~   table Z=3

                A= 2        B=3.5  ~   table Z=5

                A= 2.2     B=4.5  ~   table Z=7

and so on.

0 Kudos
Message 9 of 19
(4,070 Views)

Suppose, If user is giving A=2 & B= 2.5, What is the Z value?

Munna
0 Kudos
Message 10 of 19
(4,061 Views)