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
(868 Views)
Solution
Accepted by topic author 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
(865 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
(809 Views)