<?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 Roulette Program - Shift Register Question in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370088#M737726</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am fairly new to LabView, but had a question on how to set up my shift registers. For an in class assignment we are to create a game to familiarize ourselves with LabView. I chose to design a roulette program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having some trouble in keeping&amp;nbsp; track of the money total. An image of what I have is shown below (so far just betting on the color red, I have not added betting on numbers, betting on black, or betting on green just yet). The problem I am having is the user can make their way from the initial while loop where they choose color or number, then choose red, make it inside the second case loop where either red or black is chosen (&amp;gt;.5 or &amp;lt;= .5), and then the system decides if the user wins or loses in the final&amp;nbsp;case. The system then repeats itself over and over. Is there&amp;nbsp; function I can use to update the total each time the system makes it through the loop once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The shift register never seems to update. I'm guessing that is due to the fact that it will update once whent he whie loop is finished. Since this is an infinite while loop that will not work for this case. Is there any other way to take the buy in value, and add or subtract the winnings each time the loop repeats itself on an indicator?&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;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/1ec670cc2ba91a7ab9a2429450065e0245803b74/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31303334303669463237304130393734314231303136392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Roulette Program.jpg" title="Roulette Program.jpg" align="center" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2013 19:49:47 GMT</pubDate>
    <dc:creator>Kapell10</dc:creator>
    <dc:date>2013-03-29T19:49:47Z</dc:date>
    <item>
      <title>Roulette Program - Shift Register Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370088#M737726</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am fairly new to LabView, but had a question on how to set up my shift registers. For an in class assignment we are to create a game to familiarize ourselves with LabView. I chose to design a roulette program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having some trouble in keeping&amp;nbsp; track of the money total. An image of what I have is shown below (so far just betting on the color red, I have not added betting on numbers, betting on black, or betting on green just yet). The problem I am having is the user can make their way from the initial while loop where they choose color or number, then choose red, make it inside the second case loop where either red or black is chosen (&amp;gt;.5 or &amp;lt;= .5), and then the system decides if the user wins or loses in the final&amp;nbsp;case. The system then repeats itself over and over. Is there&amp;nbsp; function I can use to update the total each time the system makes it through the loop once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The shift register never seems to update. I'm guessing that is due to the fact that it will update once whent he whie loop is finished. Since this is an infinite while loop that will not work for this case. Is there any other way to take the buy in value, and add or subtract the winnings each time the loop repeats itself on an indicator?&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;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/1ec670cc2ba91a7ab9a2429450065e0245803b74/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31303334303669463237304130393734314231303136392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Roulette Program.jpg" title="Roulette Program.jpg" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 19:49:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370088#M737726</guid>
      <dc:creator>Kapell10</dc:creator>
      <dc:date>2013-03-29T19:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Roulette Program - Shift Register Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370114#M737731</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/256720"&gt;@Kapell10&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am fairly new to LabView, but had a question on how to set up my shift registers. For an in class assignment we are to create a game to familiarize ourselves with LabView. I chose to design a roulette program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having some trouble in keeping&amp;nbsp; track of the money total. An image of what I have is shown below (so far just betting on the color red, I have not added betting on numbers, betting on black, or betting on green just yet). The problem I am having is the user can make their way from the initial while loop where they choose color or number, then choose red, make it inside the second case loop where either red or black is chosen (&amp;gt;.5 or &amp;lt;= .5), and then the system decides if the user wins or loses in the final&amp;nbsp;case. The system then repeats itself over and over. Is there&amp;nbsp; function I can use to update the total each time the system makes it through the loop once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The shift register never seems to update. I'm guessing that is due to the fact that it will update once whent he whie loop is finished. Since this is an infinite while loop that will not work for this case. Is there any other way to take the buy in value, and add or subtract the winnings each time the loop repeats itself on an indicator?&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;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/1ec670cc2ba91a7ab9a2429450065e0245803b74/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31303334303669463237304130393734314231303136392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Roulette Program.jpg" title="Roulette Program.jpg" align="center" /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's a pretty neat concept to get yourself going in LabVIEW!&amp;nbsp; You are absolutely correct in using the shift register to bring your total around to the beginning, and also right on in initializing it with your buyin value.&amp;nbsp; Now what you need to do is run a wire from the left shift reister all the way to the point of where you figure out how much you've won or lost, add the win/loss to the total, and that is your new total which gets wired to the right shift register.&amp;nbsp; Not a bad start!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 20:09:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370114#M737731</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2013-03-29T20:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Roulette Program - Shift Register Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370180#M737749</link>
      <description>&lt;P&gt;did something like it in core 2 class....added grafics to a&amp;nbsp;gauge&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;IMG title="Mike's Roulette_FP.png" border="0" alt="Mike's Roulette_FP.png" align="center" src="https://ip1.i.lithium.com/64aa249f46b9930686f4da25f2702dc9089c0632/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31303334313269323938353343333746333145383545432f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" /&gt;&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 21:32:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/2370180#M737749</guid>
      <dc:creator>apok</dc:creator>
      <dc:date>2013-03-29T21:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Roulette Program - Shift Register Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/3077631#M879120</link>
      <description>&lt;P&gt;I need the vi plz&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 13:22:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/3077631#M879120</guid>
      <dc:creator>vendetta7825</dc:creator>
      <dc:date>2015-01-20T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Roulette Program - Shift Register Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/3077686#M879135</link>
      <description>&lt;P&gt;It's pretty simple and the post is rather old.&amp;nbsp; You'll spend less time recreating the VI than you will waiting for someone to come back and give it to you (assuming they remember where they saved it)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll also note it wasn't working in this thread.&amp;nbsp; Why not debug your own code based on their idea than try to debug theirs?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:16:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Roulette-Program-Shift-Register-Question/m-p/3077686#M879135</guid>
      <dc:creator>natasftw</dc:creator>
      <dc:date>2015-01-20T14:16:14Z</dc:date>
    </item>
  </channel>
</rss>

