LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CALCULATION WITHIN AN ARRAY

Solved!
Go to solution

I have a 1D array. It is filled with approx 200 values in SGL. I have to modify all the data. When the value is negative I have to turn it possitive (1st step). Second step. All values < 1*10-6 must be set to this value (1*10-6). What is the best way/easeast to do this??

 

Best regards,

 

Rens

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

Hi Rens,

the attached image shows one possibility.

 

Mike

Message 2 of 4
(2,677 Views)

Or this:

 

Maximum.png


___________________
Try to take over the world!
Message 3 of 4
(2,656 Views)
Solution
Accepted by RvG

Hi RvG,

 

The 'Absolute' function will make your whole array positive. You can then compare this array with your value, setting to the value if below:

 

Make array positive and compare snippet.png

 

 

EDIT: Or just do it TST's way as its better 🙂

 

Rgs,

 

Lucither

Message Edited by Lucither on 05-05-2010 08:40 AM
------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 4 of 4
(2,647 Views)