How do you string integers together?

I have the task of creating a program that will give you the resistance in ohms based on the color bands on the resistor. (This is a problem for a Labview course I am taking)
I know this program could be done a lot more efficiently but I am still a beginner. My real question is kinda hard to explain and probably has a very easy solution. I have 3 case structures all are controlled by string controls. The resistance should appear in an indicator based on the color band colors. If there is a wrong color or mistyped color a led lights up. My question is How do you put the first 2 color bands together without using a mathematical function. For example if you have blue-grey-red your resistance is 6800 so the blue is 6 the grey is 8 and the red is x100.  How do you get the 6 and the 8 together to make 68? I am also going to upload what I have so far so you can see how elementary this really is.
I have worked on it for 2 days now and cant get it right!!
Attachments:
Resistor calculator.vi ‏19 KB

Multiply 6 times 10 and add 8!  Then multiply by the mutliplier.
You may want to turn your string controls into Enums that way the colors can be selectable from a list and you won't have to worry about someone misspelling a word.
(Gray vs. Grey could be a source of problem.)  Another possibility would be a text ring control so that you can get the value stored with the color name as well.
Another cool thing you can do is use color boxes to recreate the actual color pattern on the display.
Message Edited by Ravens Fan on 02-20-2008 07:27 PM

Similar Messages

  • ..how do you group fields together in xml into one field? (sql:- address_line1||', '||address_line2||', '|| )

    afternoon Gurus.
    I take it by the errror messages produced I'm not able to do this..
    select ....
    address_line1||', '|| address_line2||', '|| address_line3||', '|| city|| Supplier_Address
    from...
    ..in my XML Publisher xsl Data Template file..
    Caused by: org.xml.sax.SAXParseException: <Line 13, Column 20>: XML-20201: (Fatal Error) Expected name instead of |.
    So how can I acheive putting several fields into one like you can in SQL?
    THanksForLooking..
    Al

    Untested, but try the following:
    SELECT DISTINCT
           fnd.CREATION_DATE
          ,fnd.user_name
          ,fnd.start_date
          ,per2.last_updated_by
          ,per2.last_update_date
          ,per2.employee_number
          ,per2.EMAIL_ADDRESS
          ,per2.full_name
          ,fnd.LAST_LOGON_DATE
    FROM fnd_user fnd
    where fnd.End_Date is null
    left outer join per_people_f per2 on (     fnd.employee_id              = per2.person_id
                                           and SUBSTR(per2.LAST_NAME, 2, 6) not like 'some characters'
                                           and per2.EMAIL_ADDRESS           LIKE '%priddle%' )
    ORDER BY 2 ASC;Investigate multiple outer joins using the LEFT OUTER JOIN syntax
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/queries006.htm#SQLRF52354

  • How do you group icons together

    Brand new to Mac systems.  Can someone tell me if it's possible to group icons together.  Ex: put all games in 1 folder. Thanks.

    Touch and hold one of the apps and they should start shaking. Then drag one of them over the top of another and a folder should get created with those two apps in. You can then drag more apps over and into it, or create more folders in the same way (but you can't create folders within folders); press the home button when you've finished so as to stop the shaking. Some people find it easier to do when connected to iTunes using the device's apps tab it's easier to move things around via your computer, and changes don't get committed until you sync them onto the iPad.
    There is more info in the manual (chapter 3) which can be downloaded from here http://support.apple.com/manuals/iPad.

  • Why has iTunes seperated a album which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Why has iTunes seperated a album into indevidual songs, which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Steve MacGuire a.k.a. turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message/9910895)
    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.  If they are not a multiple CD set you still need to make sure the disc number fields are set correctly or all empty.

  • How do you copy an entire string of a text message?

    How do you copy and paste and tire string of a text message from the iPhone five?

    Press and hold on a message, tap More > Select the messages you want > Tap the arrow > copy everything out of the new message that appears

  • Iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?

    iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?
    Not sure if this is a game or app or not...it shows nothing about it and explains nothing about it...but it is there on the demo video on the apple website for the add to upgrade to ios 5...it shows the user dragging threads and the little icon monster at the bottom of the screen catches them

    Yea thats a game called "Cut the Rope" and it can be found in the App Store for $0.99 or you can buy the Lite version for free.

  • How do you get your album's songs to stay together when you put them on your ipod/iphone, when some songs have a ft. artist?

    How do you get your album's songs to stay together when you put them on your ipod/iphone, when some songs have a ft. artist?
    Even when I try to change the featured artist in my I tunes, it won't stay with my other songs, and I want to be able to listen to my album in the order of the songs that the album has it.

    The iTunes/iPod software isn't set up to let you sync songs from more than one libray, but if you manually manage the iPod you can add tracks from multiple computers without removing the existing content. Personnaly I think syncing with a library is a much better way to manage your iPod, so I'd suggest you just copy the stuff you bought at work onto a memory stick, then take it home and import it into your iTunes library there.
    tt2

  • How can you get 2 videos to play simutenously together?

    How can you get 2 videos to play simutenously together so both are playing side by side on screen at the same time? 

    Welcome to the forum.
    As Steve observes, what you are talking about is called "PiP," or Picture in Picture.
    He has given you the basics of creating a "split-screen" PiP, and that should be exactly what you wish to do.
    For more detail, plus more ways to do PiP, I strongly recommend his book, Cool Tricks & Hot Tips for Adobe Premiere Elements 11, from Muvipix. He has an entire chapter (Chapter 10) on PiP, and many of its uses, with detailed instructions on the settings to accomplish it. Just that one chapter is worth the price of the book.
    Good luck, and happy editing,
    Hunt

  • How do you strip out certain groups of characters from a String variable

    for exapmle...
    String date = "11-Feb-2005";
    String day;
    String month;
    String year;
    how would you strip out '11' from date to assign it to 'day', and 'Feb' to assign it to 'month' and '2005' to assign it to 'year'.
    in my program the variable 'date' will always be in the format of:
    ist two digits are numbers followed by '-'
    then three digits (letters) followed by '-'
    then four digits that are numbers.
    i think it has something got to do with charAt or something, im not sure how to do it.
    any ideas?

    yea i tried the first method and it works fine.
    thanks very much.
    also... i tried the other one and it outputs... 11 1 2005
    which means it works but you see i wanted to put the date in the format of...
    Calendar date = new GregorianCalendar(2005, Calendar.FEBRUARY, 11); so i can compare it to another Calender object to see which one is earlier.
    that is why i am doing it like this...
    Calendar date = new GregorianCalendar(+ year + ", Calendar." + month + ", " + day);
    for example...
    Calendar xmas = new GregorianCalendar(1998, Calendar.DECEMBER, 25);
    Calendar newyears = new GregorianCalendar(1999, Calendar.JANUARY, 1);
    // Determine which is earlier
    boolean b = xmas.after(newyears); // false
    b = xmas.before(newyears); // true
    anyways i am just curious.

  • How do you download albums to i tunes that are compilations and keep them together as a album

    how do you download albums to i tunes that are compilations and keep them together as an album i have several discs that have downloaded singley the i tunes is a mess

    Steve MacGuire aka turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message.jspa?messageID=9910895)
    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.

  • How do you turn a List into a String?

    Hi,
    Have a simple question for all of you out there, hope you can help:
    How do you turn a list of words into a string?
    For example:
    List matchList = new ArrayList();
    matchList.add(word 1);
    matchList.add(word 2);
    matchList.add(word 3);
    String s = matchList(all of the words)How is this possible?

    but how would i go about doing that? Thats what i am
    askingIf you don't know how to iterate over a list, see this tutorial: http://java.sun.com/docs/books/tutorial/collections/If you don't know how to use StringBuffer, it should be somewhere in one of the links under Resources for Beginners at http://www.thejword.com/3.html#beginner_resources

  • How do you turn a string into an integer?

    how do you turn a string into an integer?
    for ex, if i wanted to turn the string "5" into the integer 5, how would i do that?

    String stringNumber="5";
    try{
    int number=Integer.parseInt(stringNumber);
    }catch(NumberFormatException e){
    System.out.println("The string "+stringNumber+" must be a number!");
    }

  • Please Help - How do you access/read an element in array of strings

    Hi,
    I want to load up some VI's into subpanels and I have created a for next loop.  Outside the loop is my files and a build array function.  How do you read the first element of the string array?
    I have been programming in Agilent VEE Pro for several years and I am only just learning LabVIEW.  It seems very different!  In VEE, you could use a formula to pass the first element of an array. eg. Array[Element No]
    TIA

    Hi,
    Well, I did try this but I get this error message:
    You have connected a scalar (non-array) data type to an array of the same data type. This type conflict may be resolved by building the scalar type into an array. Check for a tunnel on a loop that has indexing incorrectly disabled.
    The type of the source is string.
    The type of the sink is 1-D array of
    double [64-bit real (~15 digit precision)].
    Attachments:
    MyCode.vi ‏8 KB

  • How do you join together two iCloud accounts?

    How do you join together two iCloud accounts of mine?

    You would need to export the data from one account, using the respective apps, sign out of it, sign into the other, and import the data.
    Alternately, you can setup the other account as a secondary icloud account in sys prefs >> internet accounts.  A secondary account is limited compared to the main one, though.
    Actual merging the Apple ID/icloud accounts, as stated, is not possible.

  • Using Aperture2 and Ilife together: how do you do it?

    I recently purchased Aperture 2 and have been getting my feet wet with it. I like it a lot and love how it integrates with iPhoto.
    My question for those who use both is: how do you import?
    do you import into aperture first? iphoto first?
    How do you move your photos around?
    what is the best way to use both of them
    Thanks

    I would definitely migrate to using Aperture for 99% of what you do with your images. In fact, I'd migrate everything you might've had in iPhoto over to Aperture to simplify things.
    There are only a few things that iPhoto does that I can't do with Aperture--cards, calendars... Other than these few things, there aren't very many reasons to use iPhoto.
    Now for the rest of your iLife apps... They're completely integrated with Aperture through the media browser. Okay, there aren't some one click capabilities you use with iPhoto. I don't think that's much of a problem in my workflow.
    Cheers

Maybe you are looking for