Current Position:Home > Why not using LOCALs in LOOPs ?

Why not using LOCALs in LOOPs ?

Update:11-30Source: network consolidation
Advertisement
Why avoiding LOCALs in LOOPs? (I saw some posts that suggest it).
In my case, I have one button (Stop) and I want to be able to stop the application along 3 different independent loops. How can I do it without locals ?
Thanks

The Best Answer

Advertisement
The use of a sequence you describe here is ok but I think the goal here is to initialize the local to a known state BEFORE you start reading it in the loops. After the VI has stopped there is no need to set the local false again. Cleanup is usually a waste of time since the VI is stopped anyway. Also for initializing a single local just follow the example attached...
Michael Aivaliotis
VI Shots LLC
Attachments:
Stopping_parallel_loops_with_locals.vi ‏24 KB
  • Why not using LOCALs in LOOPs ? Update:11-30

    Why avoiding LOCALs in LOOPs? (I saw some posts that suggest it). In my case, I have one button (Stop) and I want to be able to stop the application along 3 different independent loops. How can I do it without locals ? ThanksThe use of a sequence you

  • While looking for source of a download problem I noticed (using netstat -ano) that firefox was creating local, network loops. That is, on localhost source conects to dest 1 and dest 1 connects back to source. Looks like a bug to me. Any ideas? Update:11-30

    Example: Proto Local Address Foreign Address State PID TCP aragorn:2139 localhost:2140 ESTABLISHED 3868 TCP aragorn:2140 localhost:2139 ESTABLISHED 3868 PID 3868 is firefox.exe I'm using firefox 3.6.10Example: Proto Local Address Foreign Address Stat

  • Change Loops Index location Update:10-11

    At home, I keep a lot of loops on an external HD (connected to a serving computer). Now I'm traveling and don't have that volume available. I wanted to add some loops, dragged them into the Loop Browser. GB said "indexing -", and my computer tri

  • InfoSet in SAP BI 7.10 and Key figure aggregation Update:10-11

    HI SAP Gurus, I am new in SAP BI area. I have my first problem. I want to create a report for the profit of goods.  The cost of goods(cogs) are constant for each material for one month. The formula to calculate the profit of goods = sales turn over u

  • Clarification on Update Rule Enhancement Update:11-30

    Folks, Would appreciate clarification on the following scenario I have an infocube being updated with data from R/3 There are fields in that infocube which needs to be updated with data from a custom table which is maintained in BW To be specific....

  • Document Definition XPATH expressions1, 2, & 3 Update:11-30

    I want to put a semi advanced XPATH expression into my document definition. When I receive the EDI for this document, I can get a status code in 2 different segments depending on the type of status it is. I would like to use the following xpath expre

  • Sequence  name vs. sequence in EXECUTE IMMEDIATE Update:11-30

    Hello ! I don't know how to use a string in another string in PLSQL: I have to reset all the sequences starting with the last value of a similar sequence in another database with link between tables Look at first EXECUTE IMMEDIATE This works fine: cv

  • For New Guys, Simpleton pattern revisited... Update:11-30

    In the March 2004 issue of Java Patterns there is an article called "OO Patterns for Extensive Coding With OverTyping and Generic Exclamations". The article introduces the simpleton pattern, citing a similar pardigm in the C programming world. U

  • Cfoutput and Paging Update:11-30

    Hi all, I am trying to setup paging for a product catalog. I have setup startrows and maxrows in my cfoutput query and it works great, but how do I make it so it pages? (i.e. paging through with a next, back or even numbered list). I am looking for a

  • Download to Loca(Excel) Update:11-30

    Hello All, Would like to have ur view/coreections on this point - For downloading the data to the Local drive : Loop at ITAB. (i have the fields retrieved ITAB) Write:/000 ITAB-name1,        010 itab-nmae2. endloop. In here i use an another loop to w