<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Variable and nested loops in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2797440#M820889</link>
    <description>&lt;P&gt;The simpler task as a comparison is to code your text code into LabVIEW.&amp;nbsp; This took me about 10 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates a tab delimited text file that can be opened in Excel.&lt;/P&gt;</description>
    <pubDate>Sat, 29 Mar 2014 00:05:57 GMT</pubDate>
    <dc:creator>RavensFan</dc:creator>
    <dc:date>2014-03-29T00:05:57Z</dc:date>
    <item>
      <title>Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788272#M819219</link>
      <description>&lt;P&gt;Hi, I'm a relatively new to LV programming, so be gentle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a nutshell, I'm running nested loops that cycles test equipment on and off. The parameters for each loop are input on the front panel by the user. For instance, power supply on time, how often to read in data, power supply off time, and number of on/off cycles. This is a typical task customers ask me to do. Therefore, I decided to make a generic as possible&amp;nbsp;executable vi instead of writing code (in which what I'm asking is trivial), that my technicians can easily use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to put a down-counter in this vi, even a course one. I'll take the on time plus the off time times the number of cycles and display this on the front panel. For some reason I can't figure out a simple&amp;nbsp;way such that after the last cycle completes the display reads zero before the program ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, the total time equals 60 minutes and there are 10 minute cycle. I run the program and&amp;nbsp;&amp;nbsp;the display reads 60&amp;nbsp;during the first cycle, after the first cycle is complete and as the second cycle starts&amp;nbsp;the display&amp;nbsp;changes to 50, and so forth until&amp;nbsp;the last cycle where it reads&amp;nbsp;10. Then the program ends and the display reads&amp;nbsp;10. How do I get one last tick out of this so it reads 0 and displays 0&amp;nbsp;before the&amp;nbsp;program ends?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 18:34:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788272#M819219</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-21T18:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788334#M819234</link>
      <description>&lt;P&gt;You'll need to post some code if you want help.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:15:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788334#M819234</guid>
      <dc:creator>aputman</dc:creator>
      <dc:date>2014-03-21T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788350#M819239</link>
      <description>&lt;P&gt;Wire a zero to a local variable of that indicator so that it will run when the while loop ends.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:34:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788350#M819239</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-03-21T19:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788372#M819244</link>
      <description>&lt;P&gt;A local variable,,,, Exactly what I needed. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:52:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788372#M819244</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-21T19:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788378#M819246</link>
      <description>&lt;P&gt;....ugh....who needs code anyways.&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:56:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2788378#M819246</guid>
      <dc:creator>aputman</dc:creator>
      <dc:date>2014-03-21T19:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791420#M819826</link>
      <description>&lt;P&gt;Thanks for the help. The local variable worked great.&amp;nbsp;Now I have a&amp;nbsp;couple of&amp;nbsp;follow up questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I'm trying to figure out how to make a real time timer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using my scenario from above, I'm turning on my power supply for a user set amount of time using a While Loop with a Time Delay in it. I chose this because it allows me to set the length of time the power supply is on and how often during the time it's on&amp;nbsp;I read back data from it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is if I add a countdown timer it will only update on the panel by the time I have set to read the data back. For example, the power supply on time is set for 1 minute and the readback time is set for two seconds. Therefore, my countdown timer counts down in two second intervals. I tried building a timer by adding another loop within my main loop. However, while it will countdown by the second, which was good, the timing ends being significantly off when it pauses to read the power supply data in. In my saved data&amp;nbsp;file which has an actual time stamp, the interval between reads&amp;nbsp;is ~3 seconds instead of ~2 using the Time Delay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Is there a way to make a loop/sequence&amp;nbsp;independent running timer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Is there a way to make an indicator global such that I can write to it in one loop (or sequence) in real time&amp;nbsp;and then when I go to the next loop or sequence keep writing to it in real time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:28:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791420#M819826</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-25T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791806#M819893</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A separate loop can contain the timer.&amp;nbsp; I would use a notifier to send a message to the loop as to whether you need to start or stop, or reset the timer.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:14:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791806#M819893</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-03-25T18:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791850#M819899</link>
      <description>&lt;P&gt;Hi RavensFan,Thanks!, but&amp;nbsp;I'm not sure how that answered my question? &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'd like to know is&amp;nbsp;if you can define a global variable that can be written to a single indicator? Therefore, if I have a sequence or a loop I can keep writing to the same indicator with data generated in each loop? To help clarify with an example,&amp;nbsp;lets assume I have a Flat Sequence Structure. The first sequence the user controlled&amp;nbsp;counter counts to 5 and is displayed in an indicator on the front panel. We then go to the second sequence, this 5 is passed along and is now added to the user controlled timer in that sequence which lets say is 10. Now the indicator counts up to 15. Repeat this one more time with a user input time of 7 seconds&amp;nbsp;and the indicator&amp;nbsp;counts up to&amp;nbsp;22 seconds&amp;nbsp;and the program stops. Threre are 3 inputs, a time for each sequence, and one indicator, on the front panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I was writing this in code and had three consecutive loops performing 3 different tests consecutively &amp;nbsp;(I write programs for ATE's), I would define the Time from my example above&amp;nbsp;as a global variable and write it to an output during each loop. Within LV I do not see an easy way to do this. &amp;nbsp;(PS: Time may not be the best example, but it hopefully it gets the point across).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:46:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791850#M819899</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-25T18:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791890#M819905</link>
      <description>&lt;P&gt;If you have a separate loop that is keeping track of time, then use a notifier to pass data to that loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also use a local variable of an indicator to update the indicator from different locations.&amp;nbsp; You just have to worry about&amp;nbsp; whether you'd have "race conditions".&amp;nbsp; If you had consecutive loops so that they were fighting at the same time to write to the same indicator, you should be fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to comment further without seeing some code that would implement it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I never use global variables.&amp;nbsp; Global variables are actually a storage location that can be accessed from multiple VI's, but you would still have the possibility of race conditons if they were used improperly.&amp;nbsp; They dont' have any direct connection to any indicator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would tend to use an &lt;FONT color="#888888"&gt;&lt;A href="https://ni.lithium.com/ni/board/message?board.id=170&amp;amp;message.id=240328" target="_blank"&gt;Action Engine&lt;/A&gt;&amp;nbsp;&lt;FONT color="#000000"&gt;if I ever needed something where a global variable might be used.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 19:35:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2791890#M819905</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-03-25T19:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2795198#M820470</link>
      <description>&lt;P&gt;Hi RavenFan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the slow reply and thanks for your support. I pretty much had tried everything you suggested prior to posting. I was hoping for a more eloquent&amp;nbsp;solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After getting through writing the VI I was working on I keep wondering why there isn't a scripting language associated with LV that I can use? For instance, I'm looking at how many functions I have in my VI (14&amp;nbsp;functions!) in order to create an output file with a header&amp;nbsp;and that formats and appends the data after each data collection operation (electrical tests in my case). I have an ATE that runs on VB that honestly, this is trivial to do in and literally takes a few lines of code (openspreadsheet (done once and then updates live afterwards), writedata Row Col, savespreadsheet - that simple) I collect data for each test I'm performing and then call a function to write it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also curious why there isn't more deterministic timing ability&amp;nbsp;along with&amp;nbsp;the ability to add a countup, countdown, or current time indicator to the front panel that runs independent of everything else in the program. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are features like I just mentioned please guide me towards them!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 14:33:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2795198#M820470</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-27T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2795410#M820504</link>
      <description>&lt;P&gt;I would not consider 14 functions a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anything you can do with text-based code probably takes more lines of code then it does in LabVIEW.&amp;nbsp; If your text-based version of the code is as simple as you say, then the LabVIEW code should not be as complicated as you say.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything you are looking to do in LabVIEW can be done.&amp;nbsp; I have a lot of text programming experience, and I would prefer to do just about any of it LabVIEW.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you haven't taken any courses and tutorials, then do it.&lt;/P&gt;
&lt;P&gt;If you have any questions about how to do stuff in LabVIEW, show what you've done and people on the forums will try to help.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 16:00:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2795410#M820504</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-03-27T16:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2796852#M820769</link>
      <description>&lt;P&gt;I attached my VI. Please be gentle as it was a learning experience where I started simple and kept adding functionality. I would probably do a few things different...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code I'm refering to isn't writing from 100% scratch. It was&amp;nbsp;specifically written for a small ATE that besides it's own functionality allows use of other instruments through a GPIB. &amp;nbsp;Like LV, there's a lot of background functionality built into it. However, this looks simpler to me than my 14 functions&amp;nbsp;and easier to follow (granted I'm used to it). While I'm new to LV, I do feel a simple built in scripting language like this&amp;nbsp;would be awesome. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SprdSht.OpenNewSpreadSheet MainWindow, False&lt;BR /&gt;'create header&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetTextRC 1, 1, "Test Program Name: " + prog_name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetTextRC 2, 1, Tester&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetTextRC 3, 2, "Voltage"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetTextRC 3, 3, "Current"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetTextRC 3, 4, "Ohms"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetTextRC 3, 1, "Date"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;SprdSht.SaveSpreadSheet&amp;nbsp; 'brings up windows save dialog for user to save file&lt;BR /&gt;.&lt;BR /&gt;for x = 1 to Z&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;wait T&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;NI_GPIB.ibwrt Dev1%,"READ?"&lt;/P&gt;
&lt;P&gt;Data&amp;nbsp;= NI_GPIB.ibrd(Dev1%)&lt;BR /&gt;.&lt;BR /&gt;OutputData ("RESULT", Vout, Iout, Ohm, irow, icol)&lt;BR /&gt;next x&lt;/P&gt;
&lt;P&gt;Function OutputData (sname As String, Vout, Iout, Ohm, irow, icol)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;If sname = "RESULT" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetNumberRC irow, icol+1, Vout&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetNumberRC irow, icol+2, Iout&lt;BR /&gt;&amp;nbsp;&amp;nbsp;SprdSht.SetNumberRC irow, icol+3, Ohm&lt;BR /&gt;&amp;nbsp;&amp;nbsp;End If&lt;/P&gt;
&lt;P&gt;&amp;nbsp;SprdSht.SetTextRC irow, icol+4, Now 'current date and time to spreadsheet&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;SprdSht.SaveSpreadSheet 'saves under saved name &lt;BR /&gt;&amp;nbsp;irow = irow + 1&lt;BR /&gt;&amp;nbsp;End Function&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:17:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2796852#M820769</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-28T15:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2797392#M820872</link>
      <description>&lt;P&gt;I'm going to take on the challenge of cleaning up this VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are several Rube Goldbergs in it.&amp;nbsp; And other odd things&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, there is no need for a while loop where there is terminal + 1 (note there is an increment function that adds 1 to a number without needing to ADD a 1 constant) then stops the loop when 1 is &amp;lt;= that value.&amp;nbsp; i starts as 0, add 1, you now have 1.&amp;nbsp; Guess what 1 equals 1 so it stops after 1 iteration.&amp;nbsp; Always, without fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that instead of comparing to greater than a zero constant, you can use the &amp;gt;0 function in the boolean pallete.&amp;nbsp; Still one function, but you've eliminated the constant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is generally a&amp;nbsp;bad idea to use the Stop sign function.&amp;nbsp; It is the same as just hitting the Abort function.&amp;nbsp; Any shutdown code such as closing a port will never get to run.&amp;nbsp; With a proper architecture, you shouldn't need it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sequence structures usually aren't needed (especially ones that have frames where just wires run through it.&amp;nbsp; I think yours can be eliminated entirely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arrange your VI so that wires don't need to run backwards.&amp;nbsp; It makes it harder to visualize the order of execution.&amp;nbsp; The Clean Up Diagram button is a good start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I''m trying to be gentle.&amp;nbsp; Just pointing out some facts.&amp;nbsp; I'll post a cleaned up version after I work on it a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I agree that your VI is a lot more complicated than the text code you posted, but I also think you are doing a lot more actions in the VI.&amp;nbsp; I don't see anywhere nearly as much GPIB writing and text string structuring for those writes in the text code that you are doing in the LabVIEW code, so you really can't compare the two programs.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 22:44:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2797392#M820872</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-03-28T22:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2797440#M820889</link>
      <description>&lt;P&gt;The simpler task as a comparison is to code your text code into LabVIEW.&amp;nbsp; This took me about 10 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates a tab delimited text file that can be opened in Excel.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Mar 2014 00:05:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2797440#M820889</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-03-29T00:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable and nested loops</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2798688#M821163</link>
      <description>&lt;P&gt;Hi&amp;nbsp; RavensFan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!!! &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really didn't want to use the Stops. Those are kind of a test engineering-ism where you want to immediately stop on a failure to prevent (further)&amp;nbsp;damage. I was very careful in when and how they operate such that everything is in a safe state. One of the Stops stops the program before it even really starts. It's basically checking to see if the user input makes sense and therefore allows the programming timing to work properly. I'm sure there's a better way to get to this&amp;nbsp;in this&amp;nbsp;case. I just haven't found it yet. The other case&amp;nbsp;I do want&amp;nbsp;the power supply&amp;nbsp;to shut down immediately to prevent damage to my device, which it does. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do realize I overengineered it. As I mentioned, I started out just trying to make the supply wiggle and went from there. The add 1 etc&amp;nbsp;was a cut and paste and never changed. I'm sure there's few other functions besides the &amp;lt;0 that will help me simplify that I haven't found yet. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In regards to the sequence structure with the error lines running to them (I may have overcomplicated it!), I could not get the functionality in them to work as I intended otherwise. Those also bothered me. But it worked. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate the file you uploaded. I will study it well. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 14:28:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Variable-and-nested-loops/m-p/2798688#M821163</guid>
      <dc:creator>Mike_505</dc:creator>
      <dc:date>2014-03-31T14:28:58Z</dc:date>
    </item>
  </channel>
</rss>

