I am a beginner in Labview and need help with multi-device synchronization.

I am using a VI I found in order to continuously acquire and write voltage.  The next phase is to somehow synchronize this with a linear platform and am wondering if there are any tutorials on how to do this out there, or if anyone could give just general advice.  I'm not necessarily asking for explicit details on the code but rather where I would be able to improve my skills in a way that would help with this project.  Thank you in advance.

Hi riraheta,
Are you using daq? Can you tell me more about this linear platform which you want to synchronize? What operation do you plan to synchronize?
There are some examples online which has to do in synchronizing devices, depends on what you're planning to synchronize. The following are the few I have found.
Links (Presuming that you're using DAQ devices):
Synchronize Continuous Acquisition of Multiple Analog Devices (login required)
https://decibel.ni.com/content/docs/DOC-12182
Easily Synchronize Your Measurements in LabVIEW 2010
http://www.ni.com/white-paper/11549/en/
Application Design Patterns: Producer/Consumer
http://www.ni.com/white-paper/3023/en/
Application Design Patterns: Master/Slave
http://www.ni.com/white-paper/3022/en/
Timing and Synchronization Features of NI-DAQmx
http://www.ni.com/white-paper/4322/en/
Or you can search it from your NI Example Finder (Open LabVIEW >> Help >> Find Examples... >> Type in the keyword of your interests)
Hope it helps
Warmest regards,
Lennard.C
Learning new things everyday...

Similar Messages

  • Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?

    Hi 
    Project Server 2013: I am using Project Server Permission Mode and need help with permission assignments?
    How can I change Permissions for the individual users to see specific projects or all projects in project center and to see specific quick launch items?
    For Example: if i have 4 users, A, B, C and D. what i want is:
    User A can see everything and act as a project manager or Admin.
    User B can view all projects in project centre but can change the schedule or resource assignment etc.
    User C can only act as approver of projects and can view all projects in project centre.
    User D can only view specific projects for which permissions are given.
    can i have some expert help in sorting and understanding permission modes... as i was playing with project server mode permissions and can't figure out how to apply the above scenario to set of my user.
    Thanks in Advance
    Cheers
    AJ
    Ajay Kumar

    Hi Ajay,
    Please refer to this link for detailed explanations about PS2013 security model. 
    http://technet.microsoft.com/en-us/library/cc197638(v=office.15).aspx
    Actually, it will take a couple of days to explain in detail the security model that is a fundamental and tricky aspect of every PS implementation. But basically, you NEVER set permissions for a single user. You have groups in which your insert users. Groups
    define "what users can do". Then you associate groups to a corresponding category. Categories define "what user can see". Thus the association of a group with a category will set "what the user can do on the objects he can see". Then, for more advanced security
    level, you can use the RBS that will consist in "branches" in which you'll insert users. Based on those branches, you'll customize categories to fine-tune what user can see (for projects and resources) depending on the RBS branch and level.
    I'd advice you to start "playing" in a test environment with the default categories/groups that might probably cover your need.
    Concerning your 4 users:
    user A : add him to the "administrator" group. Be careful that you're mentionning either project manager or administrator, which are 2 groups/categories with totally different permissions level.
    user B : basically can see everything and change everything? it could be in the project manager group, assuming that there are no project visibility restrictions on the category via the RBS.
    user C : waht do you mean by "approver"? Workflow approvals? Then it will be the portfolio manager group. Task update or timesheet approval? Then it is another long topic: please refer in the documentation to the "status manager" and "timesheet manager"
    concepts. There are not related to the security model. In a few words, the status manager is the owner of the project plan, is defined for each task and approves tasks updates. The timesheet manager is an attribute defined for each resource in its parameters
    and approves resource timesheet.
    user D : you have to define which permission level must be given to this user. Basically it could be a team member that will see only projects he's in the project team. Note that team member cannot interact with the project plan in another way than submitting
    timesheets and/or tasks updates which must be approved.
    Once more, those are large and complex subjects that require a deep dive into your business model and tons of tests in a test environment.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Urgent: im new and need help with this task!

    I need help with converting the pseudo code to java code, Any help will b greatly appreciated!
    // Declare a variable of type int, called "choice".
    // Generate a random number between 0 inclusive and 7
    // exclusive, and store that number into the variable
    // "choice". (How do you generate a random number? Use the
    // nextInt(int) method inside the random object, which takes
    // a single int parameter. You can read about this method
    // here:
    // http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html
    // If "choice" is equal to 0, then create and return a new
    // IBlock object, passing "game" as the parameter to IBlock's
    // constructor.
    // Otherwise, if "choice" is equal to 1, then create and
    // return a new TBlock object, passing "game" as the
    // parameter.
    // Otherwise, if "choice" is equal to 2, then create and
    // return a new OBlock object, passing "game" as the
    // parameter.
    // Otherwise, .... etc ....
    // (please continue to do this for all of the 7 kinds of block
    // that can be created)

    import java.util.*;
    public class Echo{
         public static void main(String[] args)     {
              //System.out.println("enter ur choice");
    Random r=new Random();
    int choice=r.nextInt(6);
         switch(choice)
         case 0:
              IBlock object0=new IBlock("games");
              break;
         case 1:
              TBlock object1=new TBlock("games");
              break;
         case 2:
              OBlock object2=new OBlock("games");
              break;
         case 3:
              LBlock object3=new LBlock("games");
              break;
         case 4:
              JBlock object4=new JBlock("games");
              break;
         case 5:
              SBlock object5=new SBlock("games");
              break;
         case 6:
              ZBlock object6=new ZBlock("games");
              break;
    class TBlock
         TBlock(String s)
              System.out.print("TBlock called"+"\n value passed is "+s);
    class IBlock
         IBlock(String s)
              System.out.print("IBlock called"+"\n value passed is "+s);
    class JBlock
         JBlock(String s)
              System.out.print("JBlock called"+"\n value passed is "+s);
    class OBlock
         OBlock(String s)
              System.out.print("OBlock called"+"\n value passed is "+s);
    class LBlock
         LBlock(String s)
              System.out.print("LBlock called"+"\n value passed is "+s);
    class SBlock
         SBlock(String s)
              System.out.print("SBlock called"+"\n value passed is "+s);
    class ZBlock
         ZBlock(String s)
              System.out.print("ZBlock called"+"\n value passed is "+s);
    }

  • New and need help with keithley 2700 GPIB threw labview 2010

    Hello everyone,
    I have the drivers for the keithley 2700 dmm and its ok with labview idntifying the device.
    but when im trying to run the "Keithley 27XX Single Measurement.vi" and take a single resistance measurment
    I always get this error, (pic related)
    can anyone help please?
    btw, where can i start learn from zero how to program in labview in GPIB protocol (not visa) ?
    thanks alot.
    E.
    Attachments:
    Error.jpg ‏500 KB

    Zerez,
    Definately search the forums as I found another forum wher they tried troubleshooting a 2700 that was locking up. Unfortunately a resolution wasn't determined. 
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/keithley-2700-7700-4-wire-Measurement-GPIB/td...
    Can you use max to request values from the device? Using visa test panels. It should reply to the identification command if it is functioning properly.
    Kyle Hartley
    RIO Product Support Engineer
    National Instruments

  • Going to Australia and need help with Power converters

    Facts:
    US uses 110v on 60hz
    Australia 220v on 50hz
    Making sure I understood that correctly.  Devices I plan on bringing that will use power are PS3 Slim, MacBook Pro 2008 model, and WD 1TB External HDD.  My DS, and Cell are charging via USB to save trouble of other cables.
    Ideas I've had or thought of:
    1.  Get a power converter for a US Powerstrip, and then plug in my US items into the strip and then the strip into an AUS Converter into Australian outlet.  Not sure if this fixes the voltage/frequency change.
    2.  Get power converters for all my devices.  But, not sure if my devices needs ways of lowering the voltage/increasing frequency or something to help with the adjustment.
    3.  Buy a universal powerstrip, which is extremely costly and I wouldn't be able to have here in time (I leave Thursday).  Unless Best Buy carrys one.  

    godzillafan868 wrote:
    Facts:
    US uses 110v on 60hz
    Australia 220v on 50hz
    Making sure I understood that correctly.  Devices I plan on bringing that will use power are PS3 Slim, MacBook Pro 2008 model, and WD 1TB External HDD.  My DS, and Cell are charging via USB to save trouble of other cables.
    Ideas I've had or thought of:
    1.  Get a power converter for a US Powerstrip, and then plug in my US items into the strip and then the strip into an AUS Converter into Australian outlet.  Not sure if this fixes the voltage/frequency change.
    2.  Get power converters for all my devices.  But, not sure if my devices needs ways of lowering the voltage/increasing frequency or something to help with the adjustment.
    3.  Buy a universal powerstrip, which is extremely costly and I wouldn't be able to have here in time (I leave Thursday).  Unless Best Buy carrys one.  
    Check the specs on input voltage/frequency of your power supplies.
    Many laptop power supplies are "universal/global" and are specced something like 80-265 volts AC 50/60 Hz, but not all.  These will just need a connector adapter.
    Unsure about the PS3 Slim - if it isn't universal it could be difficult as you'll need a 110/220 transformer, one big enough (power-handling wise) for the PS3 will be very bulky.
    For the external WD HDD, if it doesn't have a universal supply, you're probably best off just finding a new wallwart for it that is capable of running on 220/50.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • Just Switched To  Mac's and Need Help With A Few Issues!

    Hi All,
    I finally did it and switched to a Mac!! Never thought it would happen as I always felt guilty about the cost but after 5 laptops crashing on me - well, I just could not take it anymore! I managed to get a fairly good deal on a 15" Macbook Pro - 2.2/120GB version. I still don't know much about the mac way but am trying to learn so any help would be appreciated!
    1). Is there any kind of video tutorial (preferably free!) that I can use that will help me learn the Ma OS X? I have Tiger 10.4.11 on my MBP (Did you hear that - MY MBP!!!)
    2). AOL Assured me that they fully support Mac before I purchased (only 5 times!) but after I had bought it - they then told me that they do not! I got the AOL disk for Mac but it kind of ***** - features are missing etc. Does anyone in the UK run their Mac's with AOL and does it run as per normal? Any advice with AOL & Mac?
    3). AOL also told me - hey, no probs - of course you can transfer all your old emails, favourites folders, personal filing cabinet from a PC to a Mac - but then, after I bought it - the so called dedicated Mac Experts at AOL tell me that simply is not possible - What advice can anyone give me who has switched from PC to Mac with AOL and who needed to transfer all their stuff over? AOL tells you totally different things depending on who you talk to and even from what their web page state! I am really fed up with them!
    4). If I am ever successful in getting all my many years worth of data from AOL on a PC to a Mac, I am really intent of changing ISP's - what are the best ones for Mac that offer good Mac support, good deals and no charges for telephone support?
    5). I was initially happy with Tiger as again, AOL assured me they supported it but not Leopard (even their website says so) and as I stupidly thought that it must be true (we are talking AOL here!). Now I know that they don't support anything Mac, I am contemplating moving to Leopard - I am a little cautious as I heard there were/are many bugs and unhappy leopard experiences - have the majority of these been solved yet and is it advisable to change to Leopard or should I wait until an updated version comes out?
    6). My MBP was originally bought in the US but is registered to my name in the UK. it has 6 months Apple warranty left and I wish to buy Applecare. Apple says it 'recommends' buying Applecare in the country at which the item is registered (not bought, as I understand it). Does that mean, if I buy Applecare in the USA, Apple UK will still accept it and service my MBP as they would do any other or will I have to have the hassle of sending the thing to the USA if it needs attention? Applecare USA T&C's state only for the 50 States & Canada and Applecare UK state only for the UK & EU. Both however state international servicing?! I am a bit confused on this one. I travel a lot and need to know, that any Applecare I buy will not then be limited to just the places they state in the T&C's. As It reads to me, Applecare purchased in the USA/Canada will not cover the UK/Europe/ROTW and vice versa. Is this true or am I missing something or just plain thick?
    5). I really wish to upgrade the 120GB HDD. My understanding is that it must be done by either Apple (who charge really silly money) or if correct, at an "Authorized Apple Service Provider" who of course will be much cheaper. If true, does this mean at ANY authorized apple service provider on the planet or just ones in which the item is registered? If I do the upgrade with a service provider, will Apple then also service the new HDD if something goes wrong as per normal anywhere in the world or will they then say, sorry, will not service the new HDD and you have to go back to the place where you had it installed, even though it was one of their authorized service centers? (that would really suck)!
    6). The spelling and dictionary (and a few other things) are set to US English - how can I set to UK English? I have tried but to no avail so far.
    7) What and how should I set the Firewall settings so I will not get attacks by any form of malware? (I do not know much about this area and what the implications mean)!
    Well, that's it so far - please bear my ignorance, I am so new to Mac's and hope this to be one of the smarter decisions I have made in life! Already I have strange sensation that I never had with all those years of Microsoft & PC's - I kinda feel reassured, safe, that if I have problems, they will get sorted, My life will now be easier and not having to worry so much about crashes, viruses, trojans etc, gives me a sense of liberation and contentment almost - very strange feeling but a **** good one! (if only the women in my life were like that)!
    Thank You All From A PC to Mac Switcher (and NO! I do not feel guilty or scared anymore)!
    SuaveBhav!

    I can help you with your questions about AppleCare, and can also reassure you that both the macbook pro and Leopard will be worth your investment and the time you are putting into figuring out how to get your data across. I switched from windows when I bought my macbook a year and a half ago and would not use any other system now. The other day I completed the transition by erasing parallels and Windows from my system entirely.
    As for AppleCare, you can get warranty care anywhere in the world, no matter where you buy your AppleCare. Mine was bought and is registered in the US, I live in Slovakia, and have had it serviced several times in Austria and Slovakia under the warranty without any problems at all. There are differences, however, in exactly what the warranty covers from place to place, in accordance with the law in each place that AppleCare is issued. Even though I live in the EU, my agreement with Apple is an American one, and the American guarantees hold. If EU law would demand that Apple fix more things, for instance, than American law does, I could not get those things repaired under my agreement, and vice versa.
    Basically, though, I understand my agreement with AppleCare to be that they will fix all problems/damage that are not my fault free of charge for two years after my initial one-year warranty runs out, and that is good enough for me.

  • Just coming from Win and need Help with bootcamp/parallels+general osx stuf

    Well I absolutely love my Mac. I'm just having some problems affording it financially, but when I compare this new MacBook Pro to other like computers, there's a very very small difference in the hardware, and Im usually building laptops that are similiar to this for around 2k anyways. So I'm not 100% sure if I'll keep this or not, and maybe settle for cheaper PC that's under 1.5k (because Apple charges you a 10% open box fee) and buy a mac when I'm in a better position, or just keep this and see what I can do.
    But a few of the things that are making me miss a PC might push me toward a cheaper PC. And so maybe someone here can help me out before I make a decision.
    First off, is there anything that's the equivalent to a disk defragmentor for OSX?
    Second, is the graphics card really powerful in this Macbook 15 inch 2.4 ghz (the newest one)
    Im also having a problem with this keyboard and my favorite game. Basically I need to hold down certain keys (control, alt, shift and space) in order to use skills. But for some reason when I hold down any of these buttons, it only reads it once. So I have to push it every time I'd say, want to heal myself or hit a monster... and that might not seem like a lot but if you play a game for 1 hour + (I'd usually play around 4 hours) it's going to absolutely kill my fingers and make playing the game take a lot longer.
    Now I'm using parallels (the only way to play my game) and whenever I try to install a new KB, because I've found out that the way a KB is wired will determine whether or not you can spam a key or not (Like a cheap USB one wont work, but a more expensive logitech one allows you to) but it either
    1) Crashes Parallels and my Win VM
    or
    2) It sets up whatever kb I use to be used with Mac OSX's drivers which means no matter what the KB is, ctrl alt space and shift cant be spammed.
    I'm also unable to use FRAPS, a PC video capturing program used for games while running parallels. My FPS constantly dips to 0 which lags me in the game, and I can't find a good recording program thats OSX side and that works while Parallels is running (I emailed parallels about what vid they used in their demo but no response)
    Now if use bootcamp, will I have nothing to worry about? Will all of the hardware act like it should act natively on a PC? As in will my nVidia graphics card act like it normally would on a PC instead of it being some kind of virtualized hardware or something like on parallels?
    Thanks for the help guys... 2 weeks to decide on whether or not I keep th is laptop....
    Wii code: 2053-8430-7334-7335
    MGO Name: Crim, [BBB]Crim, Pacifist, Kaze, oSoiFong, A NOOB.

    The graphics card is a higher performance GPU than the X1600 in the previous MBP models. As for "really powerful" you don't provide any basis for comparison. Visit the ATI site to find out the specifications for the model.
    Well I understand that much. I just mean as far as a graphics card in general goes, is it strong enough to support a variety of games (both PC and Mac)? This is my first computer without a crappy intergrated graphics card which could barely handle games from the late 1990s.
    As for keyboard shortcuts I'm not sure if you're referring a Mac or a PC game. However, this reference may help. If the game is a Mac version you'll need to contact the game's developer about any problems with how to use the game on a Mac. If you read the Parallels documentation it will explain how to generate any special keyboard characters when in Windows.
    Umm it's not that. Like I first figured out this problem with all electronics in general when I was a kid playing with one of those press and speak books. What I found out was that, let's pretend there were 3 buttons. One was cow going moo, one was a cat meowing and one was a dog barking. If you held down the Cow button and pressed the Cat button, the cow would still Moo. If you held down the Cow and press the dog button, the cow would still moo. However if you pressed and held the cat button, then pressed the cow button the cat would stop meowing, and the moo would override it.
    That same principle applies to keyboards from what I've seen. I know there are some keyboards where I can use the control button and the alt button at the same time, and some keyboard I can't use. I can't blame the game, because there ARE keyboards that work the way I want it to. And I'm not talking about keyboard shortcuts. Pressing Control+Alt isn't a shortcut in a game, just two different commands. Like one is jump, one is attack. In the game you can Jump and Attack with some keyboards, some keyboards only let you jump or attack.
    Another example is if I put my jump key on the letter "a" and if I hold a, I jump over and over until I let go. but if I put jump to my space bar, I jump once then stop. For some reason it won't repeat keys while in a game. Same goes for other buttons, ctrl, shift, and alt.
    Does that make things a little more clear?
    but what I'm going to do is try my mac keyboard on a PC and see if it has the same limitations.
    If Parallels is crashing either you have a faulty installation, your OS X installation is corrupted, or you have not allocated sufficient RAM for the VM. You need at least 2 GBs of installed RAM to use virtualization software and should allocate at least 384 MBs or RAM to Windows XP and 512 MBs to Vista. If you have only 1 GB of RAM installed your system won't be very stable when you try to run Parallels with Windows on 384 or 512 MBs of RAM.
    I have the newest 15 inch which has gigs. And I've tried setting Parallels to both 1 and 512 (windows xp) and I worded the problem wrong. Parallels doesnt crash, parallels runs fine. What happens is Windows XP gets the blue screen of death whenever I try to install a usb device. Since I can't find a logitech keyboard that has drivers/software for a mac, I tried using a Windows one and tried installing it on my XP... and thats when I got the BSOD
    Parallels uses all the native Mac hardware via the virtualization software. No special Mac drivers are required nor special Windows drivers.
    If you cannot run a Windows program in Parallels it's not a problem with OS X. Complain to Parallels.
    It's not that a program isn't running. It's running fine, it's just my FPS gets really low. What I'm trying to figure out is if my graphics card isn't good enough in general, or if it's not good enough to handle parallels and osx and a game with a video capture all at once.
    Boot Camp runs Windows natively on the hardware just as if you were using any other dedicated Windows hardware. "Will I have nothing to worry about?" I don't know. Boot Camp provides the necessary Windows drivers for all currently produced Intel Macs. You can install Windows XP with Service Pak 2 or Vista. Read the Boot Camp documentation to find out more.
    Well I meant will I have nothing to worry about as in, will my graphics card be as effective on my bootcamped win XP as it would be if it was a native XP laptop, or will it be slightly less effective since it was based for a mac intel computer... does that make sense or do I need to reword it?

  • I am Creating a Kickstarter fund raising campaign video and need help with how to do it?

    I need help in putting together a 2-3 minute video for my Kickstarter fund raising campaign titled 1 YEAR, 10,000 PIECES, 1 ARTIST Live Streaming 24/7.  I only have images and voice to work with no video camera and I need as simple iMovie tutorial as possible since I have a brain injury disability, which means it takes me about 4 times longer then a person with an un-injured brain to put together something like this.
    Thanks for the help!
    Kris

    There are good video Tutorials for iMovie here (iMovie 09) http://www.apple.com/findouthow/movies/
    and here (iMovie 08) http://www.apple.com/findouthow/movies/imovie08.html.
    Also here is a good written Tutorial. http://www.kenstone.net/fcp_homepage/imovie_09_stone.html
    See especially this section of the Tutorial on adding Photos. http://www.kenstone.net/fcp_homepage/imovie_09_stone.html#photos
    Good luck.

  • I have a hp a6814y computer and need help with a graphics card

    okay i wanna upgrade my hp with an actual graphics card, so i can play games without it lagging. i mainly play rts games, like command and conquer generals, etc and about to get company of heros. now i need to know what kind of card i can put in this computer. i would like to put this one in 
    http://www.newegg.com/Product/Product.aspx?Item=N82E16814102824
    i hear people say the min is 300watts and some say 450watts. but then idk, if this card can hook up to my power supplie.
    i just need help getting a very good card for this computer without updating the power supplie

    Hi,
    Check with Athena as they maintain a PC Cross Reference list and see if the power supply that you have selected is compatible with your PC.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • New here and need help with design

    Hello all, I am working on my son's first birthday thank you cards.  I need help removing the line in between the blue and green background.  Thanks. Stacey

    You also have a narrow black line on the lower left side.
    Increase the the magnification to 500% and select the black and the white lines with the Magic Wand (Continuous checked).  Feather by one pixel.  Sample the green right under the white line, make it the Foreground Color and fill the selection with it.
    Juergen

  • New to Blackberry and need help with calendar

    Hi all,
    Just got my very first BB and could do with some help with my laptop and calendar (don't know if what I want is possible or available, so sorry it its not )
    I got my BB for my personel use and want to be able to sync it with a calendar on my laptop.  I don't have microsoft outlook, so I was wondering if anyone knew of a application or download I can get that will give me a calendar on my Laptop that I can sync with my BB.
    Many thanks
    Abi
    Solved!
    Go to Solution.

    Abi, welcome to the Forums.
    Google Calendar sync is a perfect option.
    http://www.google.com/mobile/blackberry/sync.html
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I am a rookie and need help with max and min values

    Hello all, i am into this intro to java class. my assignment is to write a program that prompts the user for two integers and then prints the sum, difference, average, product , distance (absolute value of the difference) Maximum(largest of the two) and Minimum(smallest fo the two) here is my code so far
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.lang.Math;
    public class Sample4
       public static void main(String[] args) throws IOException
          try // attempt the following
    {           // create the stream to read from
    InputStreamReader istream = new InputStreamReader(System.in);   // create a buffer to hold the stream
    BufferedReader console = new BufferedReader(istream);           // prompt the user
          System.out.println("Enter a number please");              // get input as a string
          String input = console.readLine();                        // convert to an integer
          int num1 = Integer.parseInt(input);
          System.out.println("Enter a number please");              // get input as a string
          String input2 = console.readLine();                       // convert to an integer
          int num2 = Integer.parseInt(input2);
          int sum = num1 + num2;                                    // get the sum of the two inputs
          int difference = num1 - num2;                             // get the difference of the two inputs
          int product = num1 * num2;                                // get the product of the two inputs
          int average = sum / 2;                                    // get the average of the two inputs
          int abs = Math.abs(difference);                           // get the absolute value of the two inputs
              // new section
                 // display the number
          System.out.println("The total sum = " + sum);
          System.out.println("The total difference = " + difference);
           System.out.println("The total product = " + product);
           System.out.println("The total average = " + average);
           System.out.println("The total absolute value = " + abs);
    } // if something breaks, catch the exception
    catch (IOException e)
       System.out.println(e); // displays the exception
       System.exit(1);  // quits the program
    }what will be the right syntax or code to find the MAX and MIN values of two numbers a User Inputs, hope someone can help with this. thank you for your help.

    Thanks alot man, sheesh i do not know why my book
    doesnt give me all the static methods. but i do really
    appreciate your help. peaceA complete list of the java.lang.Math methods can be found at http://java.sun.com/j2se/1.4/docs/api/java/lang/Math.html
    btw,
    max(a, b) == (a > b) ? a : b
    min(a, b) == (a < b) ? a : b

  • Help Am New To Apples And Need HELP With Wireless Conenction Imac Mini

    Hi
    First time here, i think i am running myself in circles here reading hundreds od different threads and pdf's.
    What i want to do is share my broadband connection with the Imac intel dual core (Wifes), My PC and an XBOX 360. Have the pc and the xbox already connected to the router which is a belkin wirelss pre-n router. the Pc is connected by cable to back of router port 1, the xbox 360 is wireless to the router.
    What i want to know is do i need to get anything else for the imac to connect it to the router as it says it has airport extreme wireless networking.
    My way of looking at it is that i neeed nothing else and it should just see a wirelless network from the router and connect to that, is that right?
    If i am way off do i need something else to plug into the router to make the apple go wireless.
    I haven't trierd it yet as we only just got it (the mac) and like to be in charge of all the facts first before setting networks up
    MAny thanks for looking and thanks in advance of any help

    My way of looking at it is that i neeed nothing else
    and it should just see a wirelless network from the
    router and connect to that, is that right?
    Yes.

  • Major Problem Here! I have no idea what to do and need help with OSX

    Hello all, thanks for viewing my topic.
    First of all, I have OSX 10.2.8
    I just got a christmas gift - an Ipod Nano
    I went into my Itunes only to find out that I need Itunes 7.0, but when I went to download it from the site, after running the install, it said I needed OSX 10.3.4
    So, I looked over and over for 10.3.4 only finding I needed 10.3 to run that
    So basically, i'm stuck here. Can I not use my Christmas gift? What do I have to do to get either the newest version of OSX to work with Itunes, or get my new Ipod 4G nano to work with my Itunes. Either solution would be great.
    Thanks

    Welcome To Discussions CJAAA!
    Some additional information.
    Mac OS X Versions 10.1, 10.2, 10.3, and 10.4, are complete system upgrades that must be purchased.
    The point upgrades, such as 10.1.x to 10.1.5 (Final) 10.2.x to 10.2.8 (Final), 10.3.x to 10.3.9 (Final), and 10.4.x to 10.4.8 (Pending), can be downloaded for free.
    Tiger is available for purchase at The Apple Store (U.S.).
    Panther, is no longer available directly from the Apple Online Store, as Tiger 10.4.x is the most up to date OS.
    If you know what to look for, a Full Retail Version, of the Panther Install CDs, or a Full Retail Version, of the Tiger Install DVD, can also be purchased rather inexpensively, at some online Apple retailers, Amazon, eBay, AppleRescue, FastMac, etc.
    Be sure not to purchase grey, upgrade or machine specific CDs or DVDs.
    Panther is only on CDs, not DVDs.
    The discs must look exactly like the images in the above links.
    Additional info in these links.
    Using OS X Install CDs/DVDs On Multiple Macs
    What's A Computer Specific Mac OS X Release
    Software Update, Upgrade: What's The Difference?
    Once Panther 10.3.x is installed, you can use the 10.3.9 Combo Update, to upgrade to the final version.
    If your Mac meets the System Requirements for Tiger, you could also consider installing that.
    And then use the PPC 10.4.8 Combo Update, to upgrade to the current version.
    Panther System Requirements
    Additional Panther System Requirements
    Tiger System Requirements
    Additionally,
    "Tiger ships on a DVD, but if your Mac doesn’t have a built-in DVD-ROM player, you’ll need CD media. When you buy Mac OS X Tiger, you qualify to purchase Tiger CDs for only $9.95."
    Download The Order Form Here. Media Exchange Program
    Orders must be mailed by March 19, 2007
    AppleRescue, also sells a Tiger installation set on CD
    Shop Carefully, Examine All Documentation, And Good Luck!
    ali b

  • Need help with multiple devices and apple id

    Between my husband and myself, we have two Iphones, two Ipads, and one Imac.  I back all of them up on my Imac using ONE iTunes account....we prefer not use Icloud, and I think that helps keep the information on each device relatively separate from each other...no overlaps with contacts and calendars.  We have one APPLE id and password, that we use for Itunes and the App Store.   We just got the Iphone 6 for my husband, and it keeps asking him to enter his Icloud PW.(his recognized user name is his PRIMARY email address)...which presumably he does not have, nor does he need (or maybe he does I need some real guidance on that).  To keep this from making him crazy can I just delete his Icloud account, which again presumably, was created automatically with the new Iphone 6 set up??
    Similarly, I need to use FIND my Phone (etc), and HIS devices are not in MY listed devices....is this because he NEEDS his own APPLE ID, or is there a way to add his devices to my list of devices within the APP....I thought because we share the Itunes account they should all be in MY devices.
    Can someone help me make sense of this?
    THANKS!!

    Hello melissaben6250,
    Thank you for using Apple Support Communities. 
    I understand that you are not seeing your husbands new iPhone 6 in your Find My iPhone app. First, while you may "prefer not use iCloud", you are using it, at least in regards to Find My iPhone for your existing devices.
    Now, for your husband's phone and Find My iPhone. It sounds like during the setup of his phone, he logged in to his Apple ID and even possibly created another iCloud account. In order to see his phone on your existing Find My iPhone, it will have to log in to the iCloud account where the other devices are signed in. Take a look at this article on troubleshooting Find My iPhone, especially the first section on the device not appearing.
    iCloud: Troubleshooting Find My iPhone, iPad, iPod touch, or Mac - Apple Support
    Cheers,
    Jeff D. 

Maybe you are looking for