LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI of the Day (8/19/09)

Oh that's not wha NI teach in their training.  Sounds like race conditions to me.  What's the definition then?

 

Cheers.

0 Kudos
Message 11 of 14
(728 Views)

battler. wrote:

Oh that's not wha NI teach in their training.  Sounds like race conditions to me.  What's the definition then?

 

Cheers.


 

I will not ask where you took that course. If you took it from one of the instructors I work with, you would have been told... 

 

A Race Condition is any circumstance where two entities attempt to define a single value without proper sequencing. A common construct in LV that leads to a Race Condition is two or more loops writting to the same local. The term can also extend beyond teh diagram to registers in a PLC etc.

  

 

Wiki has an entry on this topic if you want to read the generally accepted definition for this term ("I get all of my mis-information from the internet.") Smiley Tongue

 

 

RE: 0 ms wait.

 

It is LV short hand for "its OK to check if someone else want the CPU once every cycle". It is how LV VI play nice together.

 

Ben

Message Edited by Ben on 08-20-2009 08:23 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 12 of 14
(707 Views)

Darin - What AnalogKid said.  I use Wait all the time to allow my GPIB instruments time to do whatever before going on to the next step.  I actually made a small VI with just Error In/Out and a Wait (with time to wait as an input).  I know there are operation complete and status things I could do instead, but for me it is simpler just to Wait instead of checking the GPIB constantly.

 

Regards,

 

Michael Tracy

Synergy Microwave

 

0 Kudos
Message 13 of 14
(688 Views)

Hi Mike (and AK2DM), Great example, I have used my personal Visa VIs (which include my own wait subVI similar to the OpenG version) for so long that I forgot what was under the hood.  Just promise me that you don't use the stacked sequence to put the wait between the write and read.Smiley Wink

 

Thanks for chiming in!

 

 

0 Kudos
Message 14 of 14
(677 Views)