LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

increment vi

I have created a VI that has many sequences. It changes the PWM signal from 0.00 to 0.20 then to 0.4 ,0.6,0.8.1.0 and back to 0.0. Can anyone help me to reduce the sequences in this vi. I understand that I should use the increment method. Can anyone help? I have attached the vi.
0 Kudos
Message 1 of 10
(3,467 Views)

Try this one.

I use the for loop to step through the initialised array. The values in this array are the incremented values.

Hope this help.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 10
(3,463 Views)
Hi,
Check it now.
Hope this is what you need.
Paulo
0 Kudos
Message 3 of 10
(3,461 Views)
Thanks. Can you please convert it to LV7.0. I do not have LV7.1.
0 Kudos
Message 4 of 10
(3,450 Views)
0 Kudos
Message 5 of 10
(3,447 Views)
Is using   Functions>Numeric>increment a better way. If so how can functions>numeric>increment be used?
0 Kudos
Message 6 of 10
(3,424 Views)
Sorry, I don't understand what you mean...
Can you clarify?
Message 7 of 10
(3,421 Views)
I have attached the increment/decrement vi. I have seen it being used but I do not know how. It appears that the VI is cleaner.
0 Kudos
Message 8 of 10
(3,416 Views)

Those vi's increment or decrement a numeric value.

I don't see how they can clean your code more than it is.

0 Kudos
Message 9 of 10
(3,410 Views)
You need to read the on-line help for increment/decrement. They increment/decrement by 1. That's why the functions have a +1/-1 in the icon. Anything else and you need to use the Add function. Here's another way. I also cleaned up your example some. Taking a constant of 1000, dividing it by 1000, and then taking the inverse is a bit silly. I reomved all of that and replaced it with a constant 1.
Message 10 of 10
(3,399 Views)