Could someone please provide your feedback on if I programmed to wedging corectly RTSI cable?

Hello world

I tried to get the AIs on Dev0 and Dev1 synchronized using the RTSI cable that has been configured in MAX... Is the code to synchronize signals on both devices below? Or do I still have a digital triggering?

I was using a digital triggering with a flat sequence etc. According to the Labview example (labels remaining in the code, that is why the master and slave), but I could not Dev0:ao0 write when "waveform" has been selected in the source of synchronization by channel AO... I kept getting an error indicating that the refclocksoruce was already in use (or something to that effect)...

Any comments would be greatly appreciated.

Kind regards

Jack

Hi Jack,

Yes, the trigger routing you do is correct.  In fact, it fixes the problem with your first VI attached.  In this case the destination terminal exported (Dev3 / / RTSI0) were not the source of the Terminal from the second task (Dev4 / / RTSI0).  If you make these the same (it is-to-say/Dev4/RTSI0), you should get the desired result.

Regarding examples of synchronization that you posted, without a trigger to start the tasks will be simply to share a sample clock, but not a common starting point.  In most sync if you want to share the sample clock and a good start trigger.

Tags: NI Software

Similar Questions

  • Lost-Hi could someone please tell me where I can find my 25 digit product key

    Hi could someone please tell me where I can find my key thanx, 25-digit product.

    Hello Samuelballantyne,

    If your copy of Windows came pre-installed on your PC then you should be able to locate the product key 25 letter on the bottom of your laptop or on the back or the side if it's a desktop computer.

    If, however, you bought a copy the retail Windows; in other words you bought the OS yourself in a box from a retailer will the product key on the box or the sleeve of the DVD opertaing system.

    I hope that the product key will be in one of these two places. However, another option, assuming you still have the operating system installed on your PC, is to download a third application of the called party Magic Jelly Bean Keyfinder http://www.magicaljellybean.com/keyfinder/ download this application and then run it on your PC it will then show you the product key number.

    In addition, when you write the number make you that read correctly as a B can easily be confused with a 8. If you writeie down the wrong number, then you will not be able to install the operating system properly.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    Thank you for your comments... I guess it is the restoration of the system for me!

  • Could someone please check my code is correct and clean

    Hello

    I bought a template and it handled for my site, could someone please check my code to make sure I have it correct. Because what I do here I will duplicate for the rest of the page.

    < class li =' same illustration portfolio-entry ">"

    < img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" width = "220" height = "240" alt = 'Britten Motorcycle Illustration' >

    < div class = "entry-inch standard" > < a class = "thumblink" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" >

    < img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" alt = "Britten Motorcycle Illustration" class = "portfolio category" > < span class = 'extra' > < / span > < /a > < / div >

    < div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >

    < a class = "more-link" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" > < span > </span > < /a > < /li > Design view

    This line, I don't want the text to a link anywhere:

    < div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >

    Web site: www.lorraines.co.nz

    Thanks in advance

    You can check your code with the following online tools:

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

  • Could someone please help me with a problem I'm having with my update s/ie window?

    I was trying to find a way to get help with my concern about internet/window update of. 99% of the time when I'm in train to get updated window or check the mails on yahoo and a few other sites, my page is immediately closed. I tried to delete the cookies and files and restarted and system restore and reset my IE as well. Nothing works, and I know that I need some updates (would be nice to be able to check my email yahoo also).

    This is what happens in detail:

    I type in the Web site window update and as soon as he gets it closes immediately. When I type in the website of yahoo and then click check mail it closes immediately. There were a few other sites, but these are the 2 most important for me. I have no error code and no warning, just boom that it is gone and everytime I try to bring everything back up, it closes. I did everything I could and I am at a loss.

    Could someone please help me if I can get things and finally be happy and not so stressed. This happened for some time now. I tried to contact technical support, but I can't ever get a straight when clicking we answer contact as normal websites don't. So I try here.

    Please help me solve this problem... also I "think" I have IE 8? could be 7, but I think that 8. I can't because it messes up my computer.

    Thanks, I look forward to talk to someone soon then.

    Catt

    You probably have a nasty malware infection.

    In case you are unable to solve this problem with the suggestions of others, I think you should choose interactive free aid to this page:
  • Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Even assuming that we could achieve these programmers they don't make decisions like that, do marketing.

  • Could you please tell me the name of the program that plays the files (mp3) begins with V and resembles a cone orange and white?

    Could you please tell me the name of the program that plays the files (mp3) begins with V and resembles a cone orange & white?

    VLC.

    http://www.videolan.org/VLC/

  • could you please provide me with any identifier community messaging

    Hello

    Why are things so bad for this forum, adding screenshot or attachment in your forum.
    Worst things in Microsoft
    1. when I'm typing this message in the microsoft forum there is no symbol of attachment. How to reach screenshots.
    2. According to my application works in all browsers but IE does not.
    Error: -.
    Internet Explorer cannot display this webpage
    What you can try:
    It seems you're connected to the Internet, but you might want to try to reconnect to the Internet.
    Retype the address.
    Return to the previous page.
    The most likely causes:

    • You are not connected to the Internet.
    • The Web site encounters problems.
    • There could be a typing error in the address.
    More information
    Could you please let me know how to solve this problem in Internet Explorer, only IE browser request to all my clients.  It is very urgent please help me
    Kind regards
    Gerard.
     

    To post photos in your question, copy them a location online not your PC [as it does not work].  You cannot add attachments to messages here.

    You can use Skydrive to this & many other sites out there that allow you to download images.

    If you use Skydrive so here is a procedure that works:

    1 size of the original image within 546 large, saying about 400 pixels.

    2 go to www.skydrive.com [& identify yourself if necessary]

    3. Select the folder you want to place the files

    4 download the image [clear the default resize setting to avoid confusion later.

    5 look at the file in any view you should be.  There is a view [thumbnails or details] control near the top right corner.

    6 click it in the folder list, and then it appears on the screen

    7 click View original [on the right side of the window]

    8. right click on the image, select copy

    9 go to the post MSAnswers & press Ctrl + v

    10 then back to Skydrive and then delete the file while in the folder view and wait fact appear in the [lower right corner of the window of Skydrive] dialog box

    - - - - - - - - -

    I don't know what you mean by 'community messaging id.  In any case, nobody here access to provide anything but advice.  It is a mutual aid-to-peer forum where users ask questions & users answer questions.  This is not supported in Ms.

    - - - - - - -

    With respect to the main part of your question, search this forum "Internet Explorer cannot display the webpage" & you will find similar questions that might help you.  If you need more advice, then I suggest that you post a new question using "Internet Explorer cannot display the webpage" as title and list all the symptoms & checks made in the description.

  • I have a lot of Acrobat (pdf) files, but cannot find how to remove the ones I don't want. Could someone please?

    I have a lot of pdf files, which I use often, but I can't find a way to remove those that I is no longer necessary. Could someone help me please?

    On a MS Windows system, use Windows Explorer. On a Mac system, use the Finder.

  • Is could someone please tell me what this means... Bad Format

    I am running windows xp and get an error message (bad Format, the operation could not be performed due to wrong format)... This only happens on one program that I try to start, all programs, open and run. Could someone tell me how to solve this problem, that I have to reformat my hard drive and reinstall windows. .. Thank you

    Probably be better if you contact Propellerheads. Because they are . Or check their forum

  • could someone please share guide OA student work frame or a material good

    Hi could one please share guide OA student work frame or a good material.
    Is it possible to get the metalink student guide
    my mail id:[email protected]


    Thanks in advance

    Here is the PDF of Devguide version that comes with JDeveloper.

    Also I suggest you to visit [http://oracle.anilpassi.com/oa-framework-tutorials-training-2.html | http://oracle.anilpassi.com/oa-framework-tutorials-training-2.html]. There are a lot of multimedia material where author deals with different topics of interest to beginners of OA Framework. This entry is a good starting point.

    -wheleph

  • BlackBerry Smartphones far East language and other issues of Support for Bold 9780 - please provide your comments!

    Hello

    Here is my card for your info:

    BB Bold 9780 (bought 3 days ago - unlocked to carriers)

    My carrier - Vodafone (Australia) - BIS active

    Computers - Macbook Pro

    After some research on the web all day, I discovered that far East languages is not yet available on the Bold 9780.

    I understand that I must language of d/l a far east of the carrier (mine is Vodafone Australia), in order to read and input Chinese, Japanese, or Korean language on the BB. It's extremely frustrating, and I feel that we're going backward in the field of smart phones - globalization have been an important factor for many bright smart phone users out there.

    I have a few questions, I hope that you guys can provide comments:

    1. what kind of time we talk to have the language support for the far East region? I would never have bought the new BB (probably would have gone for the 9700) if I knew that East Asian languages is not available on the new BB! ?? I know that it is covered by the carriers, but surely RIM provides the build?

    2. as I am a newbie (I just 2.5 years of iPhones), I do not understand the concept (or it's documented all that clearly) to have a 5 device and software OS6? what the devil is the difference, or are they just the same? thinking, maybe this is... but why is already released OS6, but I still see the "last and best Device Software 5" throughout the site of BB? someone help me please understand this.

    3. is it possible that I can load an earlier version of the device software (Vodafone provides a Far - east Pak BB Bold 9700)? I tried several times, after running and unzipped the file in Desktop Manager, the device software is not even on my Desktop Manager (v6). is it because the Desktop Manager detects the version of my phone and does not allow vodafone to 9700 from the list of applications to load software? or does?

    4. on my MAC, I can't install the plugin App world - he says that it is not available on a Mac... How mac users supposed to do use desktop base access App World? I know that we are not a majority, but it is obsurd - that being said, I'm not unreasonable, I can live with that.

    5 make BB have phone support in Australia? again, I can live with not one, but I've seen feeling is also unreasonable.

    Please don't get me wrong - I could met whining - but I desperately want my new device works... I love so many things about the BB, and after taking the big step of the iphone, I find a lot of things that were never mentioned on crackberry, or any other site of fanboy of BB...

    Thank you in advance, look forward to your comments!

    PBM

    Hello

    Okay... Let's start first... these forums are not a communication channel / rim. These forums are rather a community of support to users. RIM offers zero frontline support... all support is carried out by carriers and authorized resellers, who have the ability to escalate into WHEEL if necessary.

    OK... with that of the road, we shall proceed:

    pbmpbm wrote:

    1. what kind of time we talk to have the language support for the far East region? I would never have bought the new BB (probably would have gone for the 9700) if I knew that East Asian languages is not available on the new BB! ?? I know that it is covered by the carriers, but surely RIM provides the build?

    Impossible for anyone here to know... or if they don't know, against the team of specialists on this site to reveal.

    Another interest is the fact that, through the agent download portal for your carrier indicated, your BB model is not yet listed:

    pbmpbm wrote:

    2. as I am a newbie (I just 2.5 years of iPhones), I do not understand the concept (or it's documented all that clearly) to have a 5 device and software OS6? what the devil is the difference, or are they just the same? thinking, maybe this is... but why is already released OS6, but I still see the "last and best Device Software 5" throughout the site of BB? someone help me please understand this.

    OS 6 is the next generation of BB OS (and there's even chatter on OS7 "out there"). The version the most recent supported by your operator is available via their download portal linked above (but with your conspicuous by their absence model number). OS 6 is now available for some model BBs only (I don't know if it has been released for your template declared BB). But the BONES are never published by RIM to the public... rather only to carriers who must certify and adopt an operating system and then release it to their users. The reason for this fall at the beginning of this post... they (carriers) are responsible for all support... so, they reserve the right to adopt or reject an OS that RIM just to present to them.

    pbmpbm wrote:

    3. is it possible that I can load an earlier version of the device software (Vodafone provides a Far - east Pak BB Bold 9700)? I tried several times, after running and unzipped the file in Desktop Manager, the device software is not even on my Desktop Manager (v6). is it because the Desktop Manager detects the version of my phone and does not allow vodafone to 9700 from the list of applications to load software? or does?

    You can use ONLY a bundle of BONES that is your specific model BB number... nothing else will work. A 9700 isn't a 9780, so OS packages are not interchangeable. The best procedure, that I know about (upgrading, downgrading, reload) load a bundle of BONES is here:

    Note that this only works on PC, Mac. But, you are not limited with this procedure, for only your carriers OS packages. You are free to use any bundle of BONES of any carrier until it's your specific model BB number. If you choose to do, then everything just insert, between steps 1 and 2, the deletion, on your PC, a file named PROVIDER. XML.

    pbmpbm wrote:

    5 make BB have phone support in Australia? again, I can live with not one, but I've seen feeling is also unreasonable.

    I send back you at the beginning... all support starts with your carrier.

    Good luck and let us know!

  • Is could someone please tell me why my paintComponent() is called infinitely?

    I'm having problems understanding why my paintComponent() method is called infinitely and to explain why this would be much appreciated!

    This is the code where the question is:
    package project;
    
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.FontMetrics;
    import java.awt.Graphics;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ButtonGroup;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    import javax.swing.JTextField;
    import javax.swing.SwingConstants;
    
    public class UserInterface extends JPanel
    {
    //    private JTextField orb1ChargeDensityTextField; // don't remember what I have this for or if it's a mistake
    //    private JTextField orb2ChargeDensityTextField; // don't remember what I have this for or if it's a mistake
        private JFrame frame;
        private JTextField orb1ChargeTextField;
        private JTextField orb2ChargeTextField;
        private JTextField orb1InitialVelocityTextField;
        private JTextField orb2InitialVelocityTextField;
        private JTextField gravityConstantTextField;
        private JCheckBox considerGravity;
        private JCheckBox considerElectricity;
        private JRadioButton inVacuumRadioButton;
        private JRadioButton inAirRadioButton;
        private JRadioButton inOtherMediumRadioButton;
        private JPanel graphicsPanel = this;
        private JPanel buttonsPanel;
        private Orb orb1;
        private Orb orb2;
        private boolean regularComponentsAdded = false;
        private JLabel orb1InitialVelocityLabel;
        private JLabel orb2InitialVelocityLabel;
        private JLabel orb1ChargeLabel;
        private JLabel orb2ChargeLabel;
        private JLabel gravityConstantLabel;
    //    private JPanel orb1InitialVelocityPanel;
    //    private JPanel orb2InitialVelocityPanel;
    //    private JPanel gravityConstantPanel;
        private JButton simulateButton;
        private GridBagConstraints c;
        private boolean simulationStarted = false;
        private Common common = new Common();
        private JLabel planetaryRadiusLabel;
        private JTextField planetaryRadiusTextField;
        private JLabel planetaryMassLabel;
        private JTextField planetaryMassTextField;
        private JLabel dielectricConstantPanel;
        private JTextField dielectricConstantTextField;
        private JLabel orb1HeightLabel;
        private JLabel orb2HeightLabel;
        private JTextField orb1HeightTextField;
        private JTextField orb2HeightTextField;
        private JLabel separationDistanceLabel;
        private JTextField separationDistanceTextField;
        private JLabel dragCoefficientLabel;
        private JTextField dragCoefficientTextField;
        private JLabel orb1RadiusLabel;
        private JTextField orb1RadiusTextField;
        private JLabel orb2RadiusLabel;
        private JTextField orb2RadiusTextField;
    
        public UserInterface()
        {
            createPanels();
            createOrbs();
            setLabelProperties();
            setTextFieldProperties();
            setCheckBoxProperties();
            setRegularButtonProperties();
            setRadioButtonProperties();
            setPanelProperties();
            setFrameProperties();
        }
    
        public void setLabelProperties()
        {
            orb1InitialVelocityLabel = new JLabel("First orb's initial velocity (m/s): ");
            orb1InitialVelocityLabel.setVerticalAlignment(SwingConstants.TOP);
            orb2InitialVelocityLabel = new JLabel("Second orb's initial velocity (m/s): ");
            orb2InitialVelocityLabel.setVerticalAlignment(SwingConstants.TOP); // CHECK!!!
            orb1ChargeLabel = new JLabel("First orb's charge (C): ");
            orb2ChargeLabel = new JLabel("Second orb's charge (C): ");
            gravityConstantLabel = new JLabel("Gravity constant (m/s^2): ");
            planetaryRadiusLabel = new JLabel("Planetary radius (m): ");
            planetaryMassLabel = new JLabel("Planetary mass (kg): ");
            dielectricConstantPanel = new JLabel("Dielectric constant: ");
            orb1HeightLabel = new JLabel("First orb's height (m): ");
            orb2HeightLabel = new JLabel("Second orb's height (m): ");
            separationDistanceLabel = new JLabel("Separation distance (m): ");
            dragCoefficientLabel = new JLabel("Drag coefficient: ");
            orb1RadiusLabel = new JLabel("First orb's radius (m): ");
            orb2RadiusLabel = new JLabel("Second orb's radius (m): ");
        }
    
        public void setPanelProperties() // layout needs some serious fixing!!!
        {
            if(!regularComponentsAdded)
            {
                // Initial GridBagLayout settings
                c = new GridBagConstraints();
                c.anchor = GridBagConstraints.FIRST_LINE_START;
                c.weighty = 0; //etho
                c.fill = GridBagConstraints.HORIZONTAL;
                c.gridheight = 1; // is for the the specific component when adding - not height for all components together
    
                buttonsPanel.setSize(400, 200);
                buttonsPanel.setLayout(new GridBagLayout());
    
                buttonsPanel.setBackground(Color.CYAN);
                graphicsPanel.setBackground(Color.GREEN);
    
                c.gridx = 1; c.gridy = 1;
                buttonsPanel.add(considerElectricity, c);
                considerElectricity.setBackground(Color.YELLOW);
    
                c.gridx = 2; c.gridy = 1;
                buttonsPanel.add(considerGravity, c);
    
                c.gridx = 1; c.gridy = 2; c.gridwidth = 1; c.weighty = 0; // etho
                buttonsPanel.add(orb1InitialVelocityLabel, c);
    
                c.gridx = 2; c.gridy = 2;
                buttonsPanel.add(orb1InitialVelocityTextField, c);
    
                c.gridx = 1; c.gridy = 3;
                buttonsPanel.add(orb2InitialVelocityLabel, c);
    
                c.gridx = 2; c.gridy = 3;
                buttonsPanel.add(orb2InitialVelocityTextField, c);
    
                c.gridx = 1; c.gridy = 5; c.gridwidth = 1;
                buttonsPanel.add(gravityConstantLabel, c);
                c.gridx = 2; c.gridy = 5;
                buttonsPanel.add(gravityConstantTextField, c);
    
                c.gridx = 1; c.gridy = 6;
                buttonsPanel.add(orb1ChargeLabel, c);
    
                c.gridx = 2; c.gridy = 6;
                buttonsPanel.add(orb1ChargeTextField, c);
    
                c.gridx = 1; c.gridy = 7;
                buttonsPanel.add(orb2ChargeLabel, c);
    
                c.gridx = 2; c.gridy = 7;
                buttonsPanel.add(orb2ChargeTextField, c);
    
                c.gridx = 1; c.gridy = 8;
                buttonsPanel.add(planetaryRadiusLabel, c);
    
                c.gridx = 2; c.gridy = 8;
                buttonsPanel.add(planetaryRadiusTextField, c);
    
                c.gridx = 1; c.gridy = 9;
                buttonsPanel.add(planetaryMassLabel, c);
    
                c.gridx = 2; c.gridy = 9;
                buttonsPanel.add(planetaryMassTextField, c);
    
                c.gridx = 1; c.gridy = 10;
                buttonsPanel.add(dielectricConstantPanel, c);
    
                c.gridx = 2; c.gridy = 10;
                buttonsPanel.add(dielectricConstantTextField, c);
    
                c.gridx = 1; c. gridy = 11;
                buttonsPanel.add(orb1HeightLabel, c);
    
                c.gridx = 2; c.gridy = 11;
                buttonsPanel.add(orb1HeightTextField, c);
    
                c.gridx = 1; c.gridy = 12;
                buttonsPanel.add(orb2HeightLabel, c);
    
                c.gridx = 2; c.gridy = 12;
                buttonsPanel.add(orb2HeightTextField, c);
    
                c.gridx = 1; c.gridy = 13;
                buttonsPanel.add(separationDistanceLabel, c);
    
                c.gridx = 2; c.gridy = 13;
                buttonsPanel.add(separationDistanceTextField, c);
    
                c.gridx = 1; c.gridy = 14;
                buttonsPanel.add(dragCoefficientLabel, c);
    
                c.gridx = 2; c.gridy = 14;
                buttonsPanel.add(dragCoefficientTextField, c);
    
                c.gridx = 1; c.gridy = 15;
                buttonsPanel.add(orb1RadiusLabel, c);
    
                c.gridx = 2; c.gridy = 15;
                buttonsPanel.add(orb1RadiusTextField, c);
    
                c.gridx = 1; c.gridy = 16;
                buttonsPanel.add(orb2RadiusLabel, c);
    
                c.gridx = 2; c.gridy = 16;
                buttonsPanel.add(orb2RadiusTextField, c);
    
                c.gridx = 1; c.gridy = 17;
                buttonsPanel.add(inVacuumRadioButton, c);
    
                c.gridx = 1; c.gridy = 18;
                buttonsPanel.add(inAirRadioButton, c);
    
                c.gridx = 1; c.gridy = 19; c.weighty = 1;
                buttonsPanel.add(inOtherMediumRadioButton, c);
    
                c.gridx = 1; c.gridy = 20; c.weighty = 0; c.gridwidth = 2;
                buttonsPanel.add(simulateButton, c);
    
            }
            if(considerElectricity.isSelected())
            {
                orb1ChargeLabel.setVisible(true);
                orb1ChargeTextField.setVisible(true);
                orb2ChargeLabel.setVisible(true);
                orb2ChargeTextField.setVisible(true);
                dielectricConstantPanel.setVisible(true);
                dielectricConstantTextField.setVisible(true);
                orb1HeightLabel.setVisible(true);
                orb2HeightLabel.setVisible(true);
                orb1HeightTextField.setVisible(true);
                orb2HeightTextField.setVisible(true);
                separationDistanceLabel.setVisible(true);
                separationDistanceTextField.setVisible(true);
                dragCoefficientLabel.setVisible(true);
                dragCoefficientTextField.setVisible(true);
                orb1RadiusLabel.setVisible(true);
                orb2RadiusLabel.setVisible(true);
                orb1RadiusTextField.setVisible(true);
                orb2RadiusTextField.setVisible(true);
            }
            else
            {
                orb1ChargeLabel.setVisible(false);
                orb1ChargeTextField.setVisible(false);
                orb2ChargeLabel.setVisible(false);
                orb2ChargeTextField.setVisible(false);
                dielectricConstantPanel.setVisible(false);
                dielectricConstantTextField.setVisible(false);
                separationDistanceLabel.setVisible(false);
                separationDistanceTextField.setVisible(false);
                dragCoefficientLabel.setVisible(false);
                dragCoefficientTextField.setVisible(false);
                orb1RadiusLabel.setVisible(false);
                orb2RadiusLabel.setVisible(false);
                orb1RadiusTextField.setVisible(false);
                orb2RadiusTextField.setVisible(false);
            }
            if(considerGravity.isSelected())
            {
                gravityConstantLabel.setVisible(true);
                gravityConstantTextField.setVisible(true);
                planetaryRadiusLabel.setVisible(true);
                planetaryRadiusTextField.setVisible(true);
                planetaryMassLabel.setVisible(true);
                planetaryMassTextField.setVisible(true);
                orb1HeightLabel.setVisible(true);
                orb1HeightTextField.setVisible(true);
                orb2HeightLabel.setVisible(true);
                orb2HeightTextField.setVisible(true);
            }
            else
            {
                gravityConstantLabel.setVisible(false);
                gravityConstantTextField.setVisible(false);
                planetaryRadiusLabel.setVisible(false);
                planetaryRadiusTextField.setVisible(false);
                planetaryMassLabel.setVisible(false);
                planetaryMassTextField.setVisible(false);
                orb1HeightLabel.setVisible(false);
                orb1HeightTextField.setVisible(false);
                orb2HeightLabel.setVisible(false);
                orb2HeightTextField.setVisible(false);
            }
    //        buttonsPanel.add(orb1ChargeDensityTextField); // don't remember what I have this for or if it's a mistake
    //        buttonsPanel.add(orb2ChargeDensityTextField); // don't remember what I have this for or if it's a mistake
    //        frame.pack();
            buttonsPanel.validate(); // THIS SEEMS TO NOT BE NEEDED BUT KEEP IT UNTIL I LOOK FURTHER INTO THIS!!!
            buttonsPanel.setVisible(true);
    
    //        System.out.println("The width is: " + buttonsPanel.getWidth()); // here for testing purposes
        }
    
        public void setRadioButtonProperties()
        {
            inVacuumRadioButton = new JRadioButton("Vacuum");
            inAirRadioButton = new JRadioButton("Air");
            inOtherMediumRadioButton = new JRadioButton("Other");
            inVacuumRadioButton.setSelected(true);
    
            ButtonGroup group = new ButtonGroup();
            group.add(inVacuumRadioButton);
            group.add(inAirRadioButton);
            group.add(inOtherMediumRadioButton);
        }
    
        public void setRegularButtonProperties()
        {
            simulateButton = new JButton("Simulate");
    
            simulateButton.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    // The following is test code and is not the real deal type of simulation
                    orb1.setX(0); simulationStarted = true;
    //                Timer timer = new Timer(100, new Repaint());
                }
            });
        }
    
    //    public class Repaint implements ActionListener
    //    {
    //        public void actionPerformed(ActionEvent e)
    //        {
    //            repaint();
    //        }
    //    }
    
        public void createPanels()
        {
            buttonsPanel = new JPanel();
        }
    
        public void createOrbs()
        {
            orb1 = new Orb();
            orb2 = new Orb();
        }
    
        protected void paintComponent(Graphics g)
        {
            super.paintComponent(g);
            drawTitle(g);
            // THE FOLLOWING IS DATA CALCULATED AND SHOVED INTO THE ORB CLASS BEING USED
            g.setColor(Color.RED);
            orb1.setX(0.03F); orb1.setY(0.1F); // temporary for testing purposes
            if(orb1RadiusTextField.getText() != null)
                orb1.setRadius(Float.parseFloat(orb1RadiusTextField.getText()));
            else
                orb1.setRadius(0.3F);
            System.out.println("The nummber is this: " + Float.parseFloat(orb1RadiusTextField.getText()));
            g.fillOval(getPixelXCoordinate(orb1.getX()), getPixelYCoordinate(orb1.getY()), convertMetresToPixels(orb1.getRadius()), convertMetresToPixels(orb1.getRadius()));
        }
    
        public int convertMetresToPixels(double metres)
        {// This method only converts metres to pixels and does not take into account where the pixels are drawn
            int pixels = -1;
            int scalar = 3000;
            pixels = (int) (scalar*metres);
            return pixels;
        }
    
        public int getPixelXCoordinate(double metresXCoordinate)
        {
            return convertMetresToPixels(metresXCoordinate);
        }
    
        public int getPixelYCoordinate(double metresYCoordinate)
        {
            return (int) (frame.getHeight() - convertMetresToPixels(metresYCoordinate));
        }
    
        public void drawTitle(Graphics g) // There's an issue with the delay from normal/unformatted text to special/formatted text
        {
            String title = "Welcome to the orb program!";
            FontMetrics fontMetrics = g.getFontMetrics();
            graphicsPanel.setFont(new Font("Times", Font.BOLD, 20));
    
            // Get the position of the leftmost character in the baseline
            int x = fontMetrics.stringWidth(title);
            int y = fontMetrics.getAscent();
    
            //
            g.drawString(title, x, y);
    
            // Nullify unused references for garbage collector
            fontMetrics = null;
            title = null;
        }
    
        public void setFrameProperties()
        {
            frame = new JFrame();
            frame.setTitle("Orb program");
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(1100, 800); // change resolution in conjunction with FontMetrics title placement
            frame.setLocationRelativeTo(null);
            frame.setLayout(new BorderLayout());
    //        frame.add(buttonsPanel); // uncomment this later
            frame.add(graphicsPanel);
            frame.add(buttonsPanel, BorderLayout.EAST);
        }
    
        public void setCheckBoxProperties()
        {
            considerGravity = new JCheckBox("Enable gravity", false);
            considerGravity.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    setPanelProperties();
                }
            });
    
            considerElectricity = new JCheckBox("Enable electrical forces", true);
            considerElectricity.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    setPanelProperties();
                }
            });
        }
    
        public void setTextFieldProperties()
        {
            float tempElementaryCharge = common.getElementaryCharge();
            gravityConstantTextField = new JTextField("9.79205");
            orb1ChargeTextField = new JTextField(String.valueOf(tempElementaryCharge));
            orb2ChargeTextField = new JTextField(String.valueOf(-1 * tempElementaryCharge));
            orb1InitialVelocityTextField = new JTextField("0");
            orb2InitialVelocityTextField = new JTextField("0");
            planetaryRadiusTextField = new JTextField("6.3685E6");
            planetaryMassTextField = new JTextField("5.9721986E24");
            dielectricConstantTextField = new JTextField("1.00058986");
            orb1HeightTextField = new JTextField("1");
            orb2HeightTextField = new JTextField("1");
            separationDistanceTextField = new JTextField("1");
            dragCoefficientTextField = new JTextField("0.47");
            orb1RadiusTextField = new JTextField("0.03");
            orb2RadiusTextField = new JTextField("CACA2");
    
    //        orb1ChargeDensityTextField = new JTextField(""); // don't remember what I have this for or if it's a mistake
    //        orb2ChargeDensityTextField = new JTextField(""); // don't remember what I have this for or if it's a mistake
        }
    
    //    public String getOrb1Initial // I WAS HERE LAST!!!!
    
        public static void main(String[] args) // main() will be removed later
        {
            UserInterface userInterface = new UserInterface(); // this will later be called via the main() of the launcher program
        }
    }
    (Just so that can compile the program here)
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    package project;
    
    /**
     *
     * @author Deniz
     */
    
    public class Common
    {
        private float coulombConstant = (float) 8.9875517873681764E9; // Nm^2/C^2
        private float newtonGravitationalConstant = (float) 6.67428E-11; // Nm^2/kg^2
        private float planetaryMass = (float) 5.9721986E24; // (in kg) defaults to Earth's mass
        private float dielectricConstant = (float) 1.00058986; // dimensionless
        private float planetaryRadius;
        private float height;
        private float systemImpulse;
        private final float airDensityEarth = (float) 1.29; // in kg/m^3 // THIS NUMBER COULD BE WRONG
        private float mediumDragForce;
        private final float airDensityMars = (float) 2.30446139E-5; // g/(cm^3)
        private float gravityConstant; // = (float) 9.80665; // in m/s^2 // set it via text field instead of here by default
        private float mediumDensity; // also called fluid density
        private float separationDistance; // m
        private float electricalPotentialEnergy;
        private double electricField;
        private double gravitationalPotentialEnergy;
        private double totalKineticEnergy;
        private double totalPotentialEnergy;
        private boolean inVacuum = true; // should make it get from text field - check my logic again jic
    //    private float potentialDifference; // I'M PRETTY SURE THIS IS FOR V = ED AND V = ED IS FOR UNIFORM ELECTRIC FIELDS AND THIS PROGRAM DOESN'T SIMULATE SOMETHING WITH A UNIFORM ELECTRIC FIELD
        private boolean inAir = false; // should make it get from text field - check my logic again jic
        private boolean inOtherMedium = false; // neglect any additional electrical properties that MIGHT exist(depending on the fluid in question)
        private final float elementaryCharge = (float) 1.6E-19;
    
        public Common()
        {
    
        }
    
        public float getElementaryCharge()
        {
            return elementaryCharge;
        }
    
        public double getSeparationDistance()
        {
            return separationDistance;
        }
    
        public float getSystemImpulse()
        {
            return systemImpulse;
        }
    
        public float getElectricalPotentialEnergy()
        {
            return electricalPotentialEnergy;
        }
    
        public double getElectricField()
        {
            return electricField;
        }
    
        public float getMediumDragForce()
        {
            if(inVacuum)
            {
                return 0;
            }
            else
            {
                return mediumDragForce;
            }
        }
    
        public void setSeparationDistance(Orb orb1, Orb orb2, float surfaceSeparation)
        {
            separationDistance = surfaceSeparation + orb1.getRadius() + orb2.getRadius();
        }
    
        public void setMediumDragForce(float mediumDragForce)
        {
            this.mediumDragForce = mediumDragForce;
        }
    
        public void setMediumDragForce(float mediumDensity, double velocity, float referenceArea, float dragCoefficient)
        {
            mediumDragForce = (float) (-0.5 * mediumDensity * referenceArea * dragCoefficient * Math.pow(velocity, 2)); // haven't paid too much attention to direction of the vector yet
        }
    
        public void setMediumDensity(float mediumDensity)
        {
            this.mediumDensity = mediumDensity;
        }
    
    //    public void setSeparationDistance(Point point)
    //    {
    //
    //    }
    
        public void setSystemImpulse(float systemImpulse)
        {
            this.systemImpulse = systemImpulse;
        }
    
        public float getGravityConstant()
        {
            if(gravityConstant > 9.7 && gravityConstant < 9.9)
            {
                return gravityConstant;
            }
            else
            {
                gravityConstant = (float) (newtonGravitationalConstant * planetaryMass/Math.pow((planetaryRadius + height),2));
                return gravityConstant;
            }
        }
    
        public double getGravitationalPotentialEnergy()
        {
           return gravitationalPotentialEnergy;
        }
    
        public double getTotalKineticEnergy()
        {
            return totalKineticEnergy;
        }
    
        public double getTotalPotentialEnergy()
        {
            return totalPotentialEnergy;
        }
    
    //    public float getPotentialDifference()
    //    {
    //        return potentialDifference;
    //    }
    
        public void setGravityConstant(float gravityConstant)
        {
            this.gravityConstant = gravityConstant;
        }
    }
    (Just so that can compile the program here)
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    package project;
    
    import java.awt.Point;
    
    /**
     *
     * @author Deniz
     */
    public class Orb
    {
        private boolean fixedOrbPosition = false;
        private float currentVelocity;
        private float currentSpeed;
        private float orbArea;
        private double charge;
        private double mass;
        private Point position;
        private float x;
        private float y;
        private double initialVelocity;
        private double intialSpeed;
        private float chargeDensity;
        private float potential;
        private float gamma; // in order to implement relativistic linear momentum
        private float initialMomentum;
        private float finalMomentum;
        private float impulse;
        private float radius;
        private final float sphereDragCoefficient = 0.47F;
        private float weight;
    
        public Orb()
        {
    
        }
    
        public float getWeight()
        {
            return weight;
        }
    
        public float getRadius()
        {
            return radius;
        }
    
        public void setRadius(float radius)
        {
            this.radius = radius;
        }
    
        public double getSpeed()
        {
            return currentSpeed;
        }
    
        public double getVelocity()
        {
            return currentVelocity;
        }
    
        public double getPotential()
        {
            return potential;
        }
    
        public double getCharge()
        {
            return charge;
        }
    
        public float getChargeDensity()
        {
            return chargeDensity;
        }
    
        public float getInitialMomentum()
        {
            return initialMomentum;
        }
    
        public float getFinalMomentum()
        {
            return finalMomentum;
        }
    
        public float getImpulse()
        {
            return impulse;
        }
    
        public double getMass()
        {
            return mass;
        }
    
        public Point getPosition()
        {
            return position;
        }
    
        public float getX()
        {
            return x;
        }
    
        public float getY()
        {
            return y;
        }
    
        public void setInitialVelocity(double initialVelocity)
        {
            this.initialVelocity = initialVelocity;
        }
    
        public void setImpulse(float impulse)
        {
            this.impulse = impulse;
        }
    
        public void setInitialMomentum(float initialMomentum)
        {
            this.initialMomentum = initialMomentum;
        }
    
        public void setVelocity(float currentVelocity)
        {
            this.currentVelocity = currentVelocity;
        }
    
        public void setSpeed(float currentSpeed)
        {
            this.currentSpeed = currentSpeed;
        }
    
        public void setFinalMomentum(float finalMomentum)
        {
            this.finalMomentum = finalMomentum;
        }
    
        public void setX()
        {
            // THIS ONE SHOULD OBTAIN ITS DATA FROM A JTEXTFIELD!!!
        }
    
        public void setX(float currentX)
        {
            this.x = currentX;
        }
    
        public void setY()
        {
            // THIS ONE SHOULD OBTAIN ITS DATA FROM A JTEXTFIELD!!!
        }
    
        public void setY(float currentY)
        {
            this.y = currentY;
        }
    
        public void setCharge(double charge)
        {
            this.charge = charge;
        }
    
        public void setChargeDensity(float chargeDensity)
        {
            this.chargeDensity = chargeDensity;
        }
    
        public void setMass(float mass)
        {
            this.mass = mass;
        }
    
        public void setPosition(Point position)
        {
            this.position = position;
        }
    
        public void setPosition(int x, int y)
        {
            this.x = x;
            this.y = y;
        }
    }
    Thanks in advance!

    Because you keep changing the font of drawTitle(), which causes another paint event.

    You also break a primary rule of the paintComponent() that is specified in the Javadoc. You are not supposed to make permanent changes to the provided GraphicsContext. If you need to change, you are supposed to copy it.

    Also that:

            // Nullify unused references for garbage collector
            fontMetrics = null;
            title = null;
    

    is nonsense. Local variables are about to go in any case out of reach. Don't waste your time with this.

  • Please provide your comments on my pc version

    http://secure.Newegg.com/Wishlist/PublicWishDetail.aspx?WishListNumber=20771567

    I already have windows 7 home 64 bit and an ocz 600w PSU am I missing something? It's for cs5 and the editing of AVCHD 5dmkii footage so still believed publishing.  Are there good ways to save a few $$ and that the 470 say the video card is still a good idea as a card supported?

    Mr. Eric J wrote:

    OK, I added a block of power, mobo, ram and cpu, please check, I think I can convince my wife that it's ok for $40 to the budget

    http://secure.Newegg.com/Wishlist/PublicWishDetail.aspx?WishListNumber = 20771567

    This particular configuration seems to me good. But if you want your disks to a RAID parity, I suggest that get rid you of the WD blacks. If you used either individually or in RAID0, they are good readers. If you do not go down the road of RAID, I suggest the Hitachi 7 K 3000 series and to meet the limit of budget, get version 1.5 to $ 65 (http://www.newegg.com/Product/Product.aspx?Item=N82E16822145520). At this price, against Blacks, you could get 4 discs. 4 disks is better 3 then with the body. ;-)

    You have the choice:

    1. Get 4 x 1.5TB Hitachi $65 each (Total $260 for 6 TB), more 3 x 1 TB WD black $90 each (Total $270 for 3 TB). Bonus, the Hitachi would be RAID ready and certified by Areca if you took a map of Areca.
    2. Think long term and get 3 Hitachi swap the power supply to a series of gold Corsair PSU instead. (http://www.newegg.com/Product/Product.aspx?Item=N82E16817139015) you can always add a disc later. And you're going to be uder budget. It is easier and cheaper to add a drive later, and then the boat to change the power supply. The importance of a good diet is crittical. Believe me, treat yourself, get the gold! Lovers, well on paper, everything is just a game of power supply and not designed for the rigorous style worstation stability.
  • Pavilion G7 1329wm: could someone please as soon as POSSIBLE

    I'm running on windows 7 64 bit I have observed that the NIC does not appear in Device Manager. I tried to install the driver from the internet device, but none of them worked. The computer display indications etranet or wireless cable Internet. I appriciate any help that you can give me.

    Hello:

    According to the list of parts for your laptop, it has a PCIe adapter half minicards (HMC) WiFi Realtek 8188GN.

    It would be the driver that you need for this model of card.

    This package contains the installation package driver for the controller LAN Realtek RTL8188CE wireless in the laptop models running a supported operating system.

    File name: sp55342.exe

    If there is no device controller network not listed in the Device Manager and it is not appear in the network adapters category, install this software and see if you can turn on the wireless by using this software.

    This package provides for models supportednotebook HP connection manager and operating systems.

    File name: sp54945.exe

    If none of the suggestions above gets to operate wireless card, then most likely the wireless card has failed and must be replaced.

Maybe you are looking for

  • Restore from 5 to 7 new +?

    I have an old iPhone 5 that is stored in iCloud.  I just pick up a new iPhone 7 + and tried to restore from iCloud.  After a minute or two, I get a message "cannot restore the backup.  Now what?

  • HP ProBook 4530 s: HP ProBook 4530 s 10 Windows upgrade without WiFi (Atheros AR 9285)

    Last day to update... so time to go. But after launch update process I get an error message on the WiFi card not supported. Can I remove the WiFi card, install Win 10 and maybe later buy card WiFi support for this model?

  • HP Probook 6465b: Broadcom 4313gn does not work after the upgrade to Windows 10

    My laptop is HP Probook 6465b (model 2012) it came with Win 7 Pro pre-installed. I upgraded Win 10 and after that a Wi - Fi connection does not work. Then I tried the new facility, but it's the same thing.  I have come back to Win 7, but I would like

  • Compatibility with Windows 7

    When a Labview built executable tries to create / edit the .ini file, located in the same directory as the .exe and when all this is happening in "C:\Program Files", Windows does not have this privilege for a standard user and labview does not create

  • Icon blackBerry camera Q10

    My camera icon disappeared if I wipe and reload the latest firmware it re seems however as soon as my Q10 is off or it restarts disappears once again, if I run virtual expert my camera work during testing before and back so now has this software util