LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I manipulate a array

Hi everyone, i have a little problem here.. I'm acquiring a signal that is in one moment diferent of zero and in another zero ( like a counter), However, i'm wolud like to do is:

 

when the signal is not equal of zero, do some calculation and store the values in to a array, and in another moment , if the signal is zero, store in the same array zeros.

0 Kudos
Message 1 of 7
(2,494 Views)

anyone?

0 Kudos
Message 2 of 7
(2,473 Views)

share ur code...


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 7
(2,466 Views)

Hi renatao,

 

replace the "equal to 0" with "unequal to 0" and you're done...

 

Right now you do your calculations when the value is zero!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,465 Views)

here i doubt.. that he will ever gonna get zero.... and therefore always execute non-zero case...


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 7
(2,461 Views)

That is!

In the first moment, I'm separating the channels, and in another, i'm doing a comparison( if less then 2,5....) to separate the components in channel one...
then I will like to do the calculation, only if the value it is different of zero, and store in to a array, and if is equal to zero, store zeros in the same array.

0 Kudos
Message 6 of 7
(2,453 Views)

I think that is a easy problem to solve

0 Kudos
Message 7 of 7
(2,413 Views)