cancel
Showing results for 
Search instead for 
Did you mean: 

What is difference between local variable and property node ?

jwdz
Active Participant

Re: What is difference between local variable and property node ?

chris
 good ,thank you!
five stars.
" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
chrisger
Active Participant

Re: What is difference between local variable and property node ?

" What's the thought process behind your rule-of thumb?"

well, i think all has been said...

cause i'm using lots of references (access is deeply nested inside the hierachy) i'm using a naming convention for controls that allows me to find the purpose of a control by its label. these labels are for sure not suitable for the common user of the app, so for the GUI i'm using the captions. i'm writing the code (and so the labels) in english while the GUI is in german (or any other language).

btw.: jwdz, has your question been answered?:-)

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
zskillz
Member

Re: What is difference between local variable and property node ?



@chilly charly wrote:
- Open the diagram of the race condition.vi before running it and try to predict what will be the values of the two counters after the third run.

Hi Chilly, I looked at the 'race condition.vi' and I have a comment.  Perhaps I'm a bit confused, but I don't think that's a demonstration of race conditions.  I think that it is a demonstration of how/when locals are written to and read from.  That code produces the same result every time, and it's just a bad way to code it, but I don't think it's a race condition.

your thoughts?
-z


shoneill
Active Participant

Re: What is difference between local variable and property node ?

Now I have no formal prigramming training, but for me

"I think that it is a demonstration of how/when locals are written to and read from."

fits my description of a race condition......

Who said race conditions need not be reproducible?

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Ray.R
Knight of NI

Re: What is difference between local variable and property node ?



@shoneill wrote:

Who said race conditions need not be reproducible?


Shane,

No one..  Smiley Wink  That's why (certain) race conditions can / may cause unpredictable results.  Smiley Surprised

RayR

Ben
Knight of NI Knight of NI
Knight of NI

Re: What is difference between local variable and property node ?

JLV wrote "That's why (certain) race conditions can / may cause unpredictable results. "
 
I agree!
 
I often review code developed by LV novices. As soon as I hear "sometimes", "occasionally", "not always" I go looking for race conditions which or almost always solved with a proper action engine.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
zskillz
Member

Re: What is difference between local variable and property node ?



@JoeLabView wrote:


@shoneill wrote:

Who said race conditions need not be reproducible?


Shane,

No one..  Smiley Wink  That's why (certain) race conditions can / may cause unpredictable results.  Smiley Surprised

RayR



My response is based on this definition of a race condition:
http://searchstorage.techtarget.com/sDefinition/0,,sid5_gci871100,00.html
and though it's not worth arguing about, I still think that this gives predictable/reproducable results every time and is not a good example of a race condition.

anyway - it's not a good way to do something, but maybe I need to broaden my definition of "race condition"
=)
-z
Ben
Knight of NI Knight of NI
Knight of NI

Re: What is difference between local variable and property node ?

Message contains an image Message contains an attachment

Hi -z,

I agree that CC example was predicable. Here is an other example that I believe is predicatably-unpredicable.  Smiley Wink

Ben

Message Edited by Ben on 11-18-2006 02:17 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
zskillz
Member

Re: What is difference between local variable and property node ?

Smiley Very Happy
Smiley Very HappySmiley Very HappySmiley Very Happy

haha-- nice one Ben!  That is just ridiculous to even look at! BUT - that is a great example of a race condition!

-Z