Web Scraping

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 6 October 2012

Count to Three

Posted on 11:03 by Unknown
Just like a programmer starts off printing "HELLO WORLD" on the screen, in LabVIEW you can start off by learning to count to three. It's not easy or intuitive to find a way to count between two numbers. The key words are "Quotient & Remainder." On the Block Diagram hit CTRL and then SPACEBAR at the same time to pull up the Quick Drop dialog box. Type in Quotient & Remainder. It should find it by just typing in Quo....
Now add a While Loop around the Quotient & Remainder.

 

We will use the iteration (i) terminal from the while loop to show the current loop count. The iteration terminal starts with zero on the first sequence. We connect a wire from the iteration (i) terminal to the X input of the Quotient& Remainder.



We need to add an upper limit number to the Y input of the Quotient & Remainder.  So Right-Click your mouse over the Y input and Create a Constant.  We want this vi to count from 0 to 3.  Put a 4 in the constant box.  The output will count from 0 to 3 because the first count will be the zero and the fourth count will be the number 3.

Right-click on the upper right output connector of the Quotient & Remainder and create an Indicator.  This numeric indicator will be shown on the Front Panel.  This is where the numbers will be seen.  If you want to use this number for another operation, just add a wire and connect to another vi, or a graph, etc.

You will need to add a Stop button to the front panel for this example and wire it to the Stop if True function of the While Loop at the lower right hand corner.  Let's also slow it down a little so we can see the operation working.  Add a Wait Until Next ms Multiple icon with 500 as a constant wait time.

Hit run and watch the numeric indicator count from 0 to 3 on the Front Panel.  Hit the Stop button to end the process.

Thanks for learning how to Count To Three using LabVIEW with me.  Feel free to leave a comment.



Email ThisBlogThis!Share to XShare to Facebook
Posted in basic, count, LabVIEW, Quotient, Remainder | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Website scraping with LabVIEW
    Scrape or retrieve data from a website using LabVIEW. This is also called data harvesting or data extraction from websites. One difficulty ...
  • (no title)
    LabVIEW Web UI Builder LabVIEW Web UI Builder is a Web-Based LabVIEW programming Environment that gives you the ability to develop lightweig...
  • Is the case structure "case sensitive?"
    Here was one of those tricking CLAD questions that I've never come across until I was taking the test. The question was like this exampl...
  • LabVIEW for Amazon Associates
    LabVIEW can be used to generate links for Amazon Associates. The Concatenate Strings function can be used to combine elements of the link an...
  • (no title)
    Amazon.com Widgets
  • Top 5 Reasons LabVIEW Makes You More Productive When Using Arduino
    Top 5 Reasons LabVIEW Makes You More Productive When Using Arduino The Arduino microcontroller is a low-cost electronics prototyping platfor...
  • (no title)
    Amazon.com Widgets
  • Count to Three
    Just like a programmer starts off printing "HELLO WORLD" on the screen, in LabVIEW you can start off by learning to count to three...
  • (no title)
    I just received a wonderful device that defies logic. I now have a Kindle Keyboard 3G, Free 3G + Wi-Fi, 6" E Ink Display - includes Sp...
  • (no title)
    I just found an excellent way to invest money and receive more than a bank could ever offer as interest. Have you ever felt jealous of the c...

Categories

  • 2013
  • 3 steps to LabVIEW and Arduino
  • Amazon
  • Amazon Associates
  • Arduino
  • Arduino microcontroller LabView
  • Associates Link Creator
  • Austin
  • basic
  • count
  • dashboard
  • data socket
  • download
  • easy
  • examples
  • Free LabVIEW software
  • GUI
  • HTML scraping
  • INTRODUCTION LabVIEW
  • investing
  • LabVIEW
  • LabVIEW and Arduino
  • LabView Arduino I/O input output sketch toolkit
  • Labview student edition 2009
  • Lending Club
  • LIFA
  • link builder
  • loans
  • National Instruments
  • NI-VISA
  • NIWEEK
  • P2P Lending
  • PC
  • PCB
  • programming
  • Prosper
  • Quotient
  • Remainder
  • sequence
  • Setup Arduino Labview
  • testing
  • TestStand
  • vi's
  • Web UI Builder
  • website

Blog Archive

  • ►  2013 (8)
    • ►  November (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  July (2)
    • ►  May (1)
  • ▼  2012 (19)
    • ►  December (4)
    • ▼  October (2)
      • Count to Three
      • Amazon.com Widgets
    • ►  June (2)
    • ►  May (2)
    • ►  March (4)
    • ►  February (5)
Powered by Blogger.

About Me

Unknown
View my complete profile