LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array

Solved!
Go to solution

Hi all: 

 

I need a help for one of my project: 

 

There are two inputs I have: 

 

1st input is any array of elements example [1 2 3 4 ]

2nd input is a reference element : 10 

My expected output is another array with the below mentioned operation.

 

my expected output is that, I need to subtract the 1st element of the array with the reference element : i.e. 10-1=9 .

 

Therefore 9 becomes the 1st element of my output array.

 

The second element of my output array is the 1st element of the output array (i.e.9) subtracted by the 2nd element of the input array(i.e.2). This result gives the 2nd element of the output array(9-2=7).. .

 

so on i need to populate the rest of the output array in a similar way and final output being :[9 7 4 0]

 

Thank a lott for the help 

0 Kudos
Message 1 of 4
(1,265 Views)

What have you learned about LabVIEW?  Do you know what a Case Structure is, and what it does?  Do you know what a While Loop is, and what it does?  Do you know what a For Loop is, and what it does?  Do you understand the difference and similarity of While and For loops?

 

Have you learned about "wires" what what they carry?  Have you learned about the significance of the color of a wire?  How about its "thickness", or whether it has a "pattern" to it?  What does a wire's appearance tell you?  [Remember that LabVIEW is a graphical language, and "appearances" have significance].

 

What happens when a Wire is dragged over the edge of a Structure (like a Case, or a While, or a For)?  Does it make any difference what kind of Structure it is?  Do you know what a "tunnel" is, or what a Shift Register is?

 

If any of these terms are unfamiliar or unclear, go find someone (your teacher, a friendly Engineering Student or a LabVIEW Guru) and learn.

 

Then you should be able to very quickly write down the solution to this simple problem.

 

Bob Schor

0 Kudos
Message 2 of 4
(1,246 Views)

Thank you for the suggestion but I have good idea with most of the terminology and to use a software you don't have to be expert in it. With baisc information its easy to work on any tool. 

 

ITs a big project where such array operation is unfortunately needed and looking forward for the suggestion on the answer and not any other suggestion. 

 

Thank you 

Please do not waste your valuable time in case you don't want to help. 

 

 

0 Kudos
Message 3 of 4
(1,228 Views)
Solution
Accepted by topic author workon

This seems to be the same as already discussed here. Maybe you want to discuss with your coworkers or classmates before starting all these separate threads.

0 Kudos
Message 4 of 4
(1,221 Views)