LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
0 Kudos
Message 21 of 29
(3,420 Views)

" 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!"
0 Kudos
Message 22 of 29
(3,410 Views)


@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


0 Kudos
Message 23 of 29
(3,336 Views)
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)
Message 24 of 29
(3,323 Views)


@shoneill wrote:

Who said race conditions need not be reproducible?


Shane,

No one..  😉  That's why (certain) race conditions can / may cause unpredictable results.  😮

RayR

Message 25 of 29
(3,311 Views)
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
0 Kudos
Message 26 of 29
(3,284 Views)


@JoeLabView wrote:


@shoneill wrote:

Who said race conditions need not be reproducible?


Shane,

No one..  😉  That's why (certain) race conditions can / may cause unpredictable results.  😮

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
0 Kudos
Message 27 of 29
(3,260 Views)

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
Download All
0 Kudos
Message 28 of 29
(3,256 Views)
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
0 Kudos
Message 29 of 29
(3,237 Views)