LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cyclic Numerical Value

Hello,

 

I am new to LabVIEW, so there might be a supereasy way to do this, but I can't find it anywhere. I'm trying to make a number go up to 20, then down to 0, then up to 20 again and so on. So I need it to cycle. I was able to do it from 0 to 20 using the Increment function, but from 20 to 0 proves to be more difficult. I know where the problem is: there is no feedback loop in the substraction while loop, so it only does it once. However, I don't know how to implement a feedback loop there.

 

Is there a way to use variables, like in any text-based programming languages, like C? I've tried messing around with global and local variables but I can't get them to work either.

 

Please help! Thanks 🙂

0 Kudos
Message 1 of 4
(2,638 Views)
0 Kudos
Message 2 of 4
(2,623 Views)

UpDown in one loop:

check.png

 

I've tried messing around with global and local variables but I can't get them to work either.

THINK DATAFLOW! In LabVIEW the wire is the variable…

Best regards,
GerdW


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