LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Variable increment question



altenbach wrote:
 (it is probably set to "switch when pressed" (like a door bell) or "switch until relased")
Sorry, I accidentally mixed things up when I added the illustrative description. Correct is of course:
 
... (it is probably set to "switch when pressed" (like a light switch door bell) or "switch until relased" (like a door bell) )  ...
😄
0 Kudos
Message 11 of 13
(1,358 Views)

Thanks, it helped a lot, and I learned a lot from it!

 

Another newbie.

0 Kudos
Message 12 of 13
(1,090 Views)

@labtech5555 wrote:
 

Hi Guys,

I am used to line by line C programming which of course uses variables to control things.Changing to labview

is totally differant thinking as event driven, but i'm still thinking about variables which are nomally easy to control and declare in C programming..

 


In LabVIEW, the wire is the variable!

The Local variable is actually an unlucky name for a new datacopy. in C it'd be something like:

int X1 = 0

int X2 = X1 (Local variable)

int X3 = X1 (Local 2) and so on.

As Local variable in LV can only be created on front panel objects, you're using the front panel as data storage, which ofc is bad. I've never heard of a C program creating System numerics to store the loop counter and then reading from that control. 🙂

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 13 of 13
(1,073 Views)