LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

signal filter

Solved!
Go to solution

Is there a way to only get selected values from a signal? I am inputting data from a DAQ and would like to export each value only as i changes in the for loop. Right now, when I export the data there are many repeats of values. 

 

Thanks,

VL

0 Kudos
Message 1 of 7
(3,082 Views)

Hi vrock,

 

yes, there's a way!

You know LabVIEW is a programming language? So you can program a small filter routine that will only pass values that changed compared to their predecessor...

Btw. that's a nice way to learn LabVIEW 🙂

Best regards,
GerdW


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

Thanks so much for your response! What block would I use to create a filter routine? Sorry, I'm knew to labview...

 

-VL

0 Kudos
Message 3 of 7
(3,075 Views)
Solution
Accepted by vrock

Hi vrock,

 

for the beginning I would use a FOR loop, a shift register, a Case structure with a BuildArray node inside...

Best regards,
GerdW


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

How would I save a preceding value to use in the Case structure?

0 Kudos
Message 5 of 7
(3,069 Views)

Hi vrock,

 

I already advised to learn LabVIEW (NI offers free online courses!) and I already named shift registers...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,062 Views)

Hi vrock,

 

A shift register actually passes the last data (right side of loop) it received to the beginning of the loop (left side of loop). If you are familiar with text-based languages it is similar to an x = x + y instruction. www.ni.com/support has some good resources if you are new to LabVIEW and I would definitely recommend some online training course, as GerdW mentioned.

Tannerite
National Instruments
Message 7 of 7
(3,040 Views)