LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extracting info from an array


@thomasd6 wrote:

Hello Bill,

 

also i do not want to force any of the values into range and how will boolean pass any value i want to keep into another array please read carefully as to what i am trying to do

 

Kind Regards

 

Thomas


One way you can use it is the array of booleans will have indices that corrrespond to your data.  Base your selection on the indices that are true.  See, I *did* read your post carefully.

 

On another note, anyone know of a better way to do this?  It sounds rather clunky to me, but it would work...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 11 of 17
(898 Views)

On another note, anyone know of a better way to do this?  It sounds rather clunky to me, but it would work...


You only need to ask.

1!.PNG

The False case is a pass through of the data on the shift register.   You were going on the right path.  The NaN default value is a better choice (Won't even show on a graph) and 0 is an "almost good" value.   IR&C works fine on arrays.

 


"Should be" isn't "Is" -Jay
Message 12 of 17
(887 Views)

Thanks all,

 

I managed to figure with it out i used the range and a select box that either filled the array with a zero or passed the vaule into the array.

 

thanks am going to try the way shown below thanks for the help!!

 

Kind Regards

 

Thoms

0 Kudos
Message 13 of 17
(869 Views)

Hi Thoms,

 

there's a Ramp function to calculate your frequency array...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 17
(865 Views)

ok !! where could i find that please

0 Kudos
Message 15 of 17
(860 Views)

Hi Thoms,

 

either press Ctrl-Space and search for "Ramp"

 

or

 

look into the signal generation functions palette

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(859 Views)

@GerdW wrote:

Hi Thoms,

 

there's a Ramp function to calculate your frequency array...


I have to admit - I wouldn't have thought about using the ramp function, but if you think about it, a progression of frequencies is a ramp!!!  One more thing to add to my playbook.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 17 of 17
(841 Views)