From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

How to built a graph using only max values from DAQ?

Solved!
Go to solution

Hello,

 

I am trying to built a graph using only max values that I adquiere from my DAQ USB6001. The problem is that the values from my DAQ are not always going up, example: (0,4,8,6,5,4,9,...) and what I want to do is: (0,4,8,8,8,8,9) so I replace other values with the previous max value.

For this I tried to use shift register with 8 continuous comparison (using greater or equal), for 8 iterations it works but the max value is not saved and it changes after the 8 iterations.

How can I save the max value? So I can also compare that value with the new ones coming from DAQ?

 

AnsjANSJns87_0-1634577322416.png

I'll apreciate any feedback, thanks 😄

Pd: I know my vi is a disaster, my bad.

 

Best regards

Jorge Cabello

0 Kudos
Message 1 of 3
(864 Views)
Solution
Accepted by AnsjANSJns87

Hi Jorge,

 

why do you need so many shiftregisters?

 

Just one feedbacknode/shiftregister will do:

Best regards,
GerdW


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

Hi GerdW,

 

I used many shiftregisters because I tried to solve my problem manually.

 

Anyway, your solution works perfectly. Thanks.

 

Best regards

0 Kudos
Message 3 of 3
(805 Views)