LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Process 2D Array String

Solved!
Go to solution

Thank you for responding,



You have TRUE wired to the fract/exp string to number function. Change that to FALSE and see if it helps

This step did work, thank you so much.

 

 


@altenbach wrote:

 

The boolean array will be TRUE for all array elements that are in the range defined by the limits, and zero otherwise. Converting that to numbers (TRUE:1, FALSE:0). Multiplying that with your data will zero all elements that are out of range and leave the others untouched.

 



But for this step, the one that I need is, the elements inside the range will turn zero and the element outside will be untouched. But after I make the program you showed, it's the opposite.

 

Thank you,

Regards

Jenni

0 Kudos
Message 11 of 19
(825 Views)

@jennichrni wrote:

Thank you for responding,



You have TRUE wired to the fract/exp string to number function. Change that to FALSE and see if it helps

This step did work, thank you so much.

 

 


@altenbach wrote:

 

The boolean array will be TRUE for all array elements that are in the range defined by the limits, and zero otherwise. Converting that to numbers (TRUE:1, FALSE:0). Multiplying that with your data will zero all elements that are out of range and leave the others untouched.

 



But for this step, the one that I need is, the elements inside the range will turn zero and the element outside will be untouched. But after I make the program you showed, it's the opposite.

 

Thank you,

Regards

Jenni


Insert a Not function on the boolean array.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 12 of 19
(821 Views)

Thank you for your reply

Where do I have to put the not function?

I put not before Boolean to (0,1). But the result become like this

jennichrni_0-1588129500448.png

 

Regards

Jenni

Download All
0 Kudos
Message 13 of 19
(801 Views)

If you exclude the "in range" values, you need to multiply with the original data, not with the coerced values:

 

altenbach_0-1588132033215.png

 

Message 14 of 19
(793 Views)

Yes, but all of the data become same as threshold value

jennichrni_0-1588132186111.png

did I put not gate in the wrong place?

0 Kudos
Message 15 of 19
(785 Views)

Look again at my code right above. Did you multiply the raw or the coerced values with the 0,1?

(Don't use the orange output of "in range and coerce" or you won't have much left.)

 

altenbach_0-1588132359561.png

 

0 Kudos
Message 16 of 19
(782 Views)

It did works,

 

Thank you so much

 

Regards,

Jenni

0 Kudos
Message 17 of 19
(775 Views)

deleted…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 19
(759 Views)
Solution
Accepted by topic author jennichrni

Of course there are many ways to do all that....

 

altenbach_0-1588186657544.png

 

0 Kudos
Message 19 of 19
(720 Views)