From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input value range selection (Extract portion of Signal)

Solved!
Go to solution

Hi Guys,

 

Im trying to select a value range from a signal. i can fix the starting point value which is -0.2 but i coudnt set the ending value range which is 0.2.

 

I only managed to set the length in number of sample but not in unit value. Is there any way so set the range portion from -0.2 to 0.2?

Here, i also attached the vi and data file. (Run, dont use Run Continously)

 

Yunus

Download All
Message 1 of 3
(2,631 Views)
Solution
Accepted by topic author Nusnus

Hi Nus²,

 

no need for ExpressVIs for such a simple task:

check.png

Now you can access the X data array easily and use array functions (like Threshold1DArray) to find the indexes of your desired range in the array. You will do this twice: first from the start, then from the end. With those two indices found you can easily create subsets of your array data - well, the needed function is named ArraySubset…

 

Btw. not everybody here is able to use 7zip so you better attach VIs either directly as VI or use standard ZIP format!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,575 Views)

Thank You. You really helped me here.

 

 

0 Kudos
Message 3 of 3
(2,532 Views)