ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plus Equal in Labview?

Solved!
Go to solution

Hi, 

 

I wonder if there is a Plus Equal Funktion in Labview like I can Programm in C?

0 Kudos
Message 1 of 8
(4,067 Views)

"+=" works on variables. In LabVIEW you almost never need them. Think dataflow. Provide an example where you think you need "+=" and we can discuss that example.

 

Certified LabVIEW Architect
0 Kudos
Message 2 of 8
(4,048 Views)

@thols wrote:

In LabVIEW you almost never need them.


 

Or for C programmers: Every operation in labview works like "+=" in C.

 

From this point of view, there is a lot missing in C 😋

 

 

 

0 Kudos
Message 3 of 8
(4,043 Views)

@Martin_Henz wrote:

Or for C programmers: Every operation in labview works like "+=" in C.

 


That's a good point. Its built-in:

thols_1-1692261564264.png

 

Certified LabVIEW Architect
Message 4 of 8
(4,038 Views)

Thanks for your help. The example is attached below. 

0 Kudos
Message 5 of 8
(4,036 Views)
Solution
Accepted by topic author Spurbruenette

The question and the answer:

thols_1-1692261926057.png

Use a feedback node (or shift-register).

 

I changed the value of the constant in your example. If you want to us the constant to initialize the indexing, you can do it like described. Or just not connect it if it shall start at 0.

Certified LabVIEW Architect
Message 6 of 8
(4,023 Views)

Thats what i needed. Thanks for your quick help!

0 Kudos
Message 7 of 8
(4,019 Views)

Increment (+1) is the closest i think.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(3,990 Views)