LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global and local variables

1.what is a simple application of local variable in string operation ?

 

2. what is a simple application of local variable arithjr operation

0 Kudos
Message 1 of 9
(2,024 Views)

What is a simple application of local variable in string operation ?

0 Kudos
Message 2 of 9
(2,018 Views)

Go.  Away.  Unless you have some specific questions about your last couple of posts, just go away.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 9
(1,992 Views)

@Hansel55 wrote:

1.what is a simple application of local variable in string operation ?

 

2. what is a simple application of local variable arithjr operation


 

In the subject you talk about local and global, but your questions are about locals only. Please clarify.

What is a " arithjr operation". I am not familiar with that term.

 

Local variables offer alternative access to front panel elements (control or indicator). The don't do any "operations", just contain data copies.

 

Typically you don't need them.

0 Kudos
Message 4 of 9
(1,990 Views)

@Hansel55 wrote:

1.what is a simple application of local variable in string operation ?

 

2. what is a simple application of local variable arithjr operation


Is that a homework assignment?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 9
(1,970 Views)

1.what is a simple application of local variable in string type?

 

2. what is application of local variable in  arithmetic operation ?

 

3. what is a simple application of global variable in string type?

0 Kudos
Message 6 of 9
(1,964 Views)

@Hansel55 wrote:

1.what is a simple application of local variable in string type?

 

2. what is application of local variable in  arithmetic operation ?

 

3. what is a simple application of global variable in string type?


Apparently you want a flame war so, I'll answer with appropriate examples 

  • Local variables of type string should be avoided. 
  • Local variables as arithmetic operators may be part of the pallets; pi, e, I, etc...  elsewhys,  a time offset from  UTC or TAI can be queried from some local institutions <such as Camilla Harris's next home> ... Google it,  the USNO has a purpose 
  • F*U may be a good example of a string type global variable.   Use it to censor " creative writing "

"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 9
(1,938 Views)

@Hansel55 wrote:

1.what is a simple application of local variable in string type?

 

2. what is application of local variable in  arithmetic operation ?

 

3. what is a simple application of global variable in string type?


1. Don't

2. Don't

3. Store the application version number in a Global Variable and use it to update something on all of your GUI windows so you can easily figure out what version of software is being ran.  This helps a lot when debugging applications that are development or get regular updates.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 9
(1,924 Views)

You. Need. To. Stop. Posting. The. Same. Thing. Over. And. Over.

 

As has been said, local variables represent front panel data of a specified control or indicator. They have whatever datatype the front panel object has (string, numeric, array, etc). They don't do "operations". The simplest application of a string local variable is a string terminal and it's local variable placed on the diagram. Completely meaningless!

0 Kudos
Message 9 of 9
(1,910 Views)