How can I make a timer that turns on two relay channels where each channel can be on for different times of 0 to 10 seconds user selectable

I am trying to make it clearer, I use a scxi-1161 and two of its relay channels to operate an MOV. I want to be able to apply power to two different pins on the MOV using two seperate relay channels.. but I want to be able to have it automatically cycle the two pins on and off by what time (in seconds) the user selects.. and the selection can be changed during cycling.

Sorry I can't convert back to 5.1, but here are some pictures that might help. The mechanical action for the Start and Stop buttons is Latch When Released. In LabView 5.1, the While loop doesn't have a Stop if True option so you'll need to add an inverter between the terminal for the Stop button and the Continue terminal of the While loop.
Attachments:
TwoToggleTimers_frontpanel.jpg ‏31 KB
TowToggleTimers_diagram_true.jpg ‏100 KB
TowToggleTimers_diagram_false.jpg ‏99 KB

Similar Messages

  • AS2 How to make a button that moves every two seconds

    How can I make a button that moves every two seconds by itself in ActionScript2?
    At the moment, I have to use the on(press) command, but what I really need is for the button to be able to move randomly by itself every two seconds. For example:
    (insert the code here) {
         bc1._x = random(250)
         bc1._y = random(250)
    Thanks!

    You can use the setInterval function to have a function repeated for specific time intervals.  Here is a link to a tutorial that explains how to use it...
    http://www.republicofcode.com/tutorials/flash/setinterval/

  • HT201365 Now that I have upgraded to iOS 7, how can I make it so that I don't need a password every time I use my iPad?

    Now that I have upgraded to iOS 7, how can I make it so that I don't need a password every time I use my iPad?

    In v6 airport utility "Join a wireless network" is not available once the TC is setup.
    You must reset to factory and try again using the selection options.. and it can fail or not come up.. This is an extremely poor way to setup a TC.. and you should NEVER EVER DO IT.. that is why apple removed it. Since you are joining wireless it makes no difference where the TC is located.. since it would become a dumb AP and turn off its ethernet ports.
    Place it right next to your main modem router, plug in by ethernet, and select bridge mode and create a wireless network. Never use Join a wireless network..
    However for completeness here is the method.
    How do I setup my time capsule with wireless internet?
    Never ever do it.
    If you need internet by wireless and backup to the TC.. then simply plug the TC directly into the Mac.
    Run dual network.. Setup explained here.
    Using Time Capsule hardwired to Mac for back-up only.

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • How can i make a photo that is 10 x 6.6 to 10 x 8 without changing the image in Photoshop CS3?

    How can I make a photo that is 10 x 6.6 to 10 x 8 without changing the image in Photoshop CS3?

    I could be snarky and say change the image in a different version of Photoshop, but NO...
    The only way to make a photo that is one size into another size is to change the image.  You have a few choices about how to change it:
    One way is to simply expand the height from 6.6 to 8 inches using Image>Canvas Size, using the default setting of having the image centered and leaving the background either black or white, your preference.  This will add background color to the top and bottom of your image.  This won't change the image itself, but it will change its surroundings.
    Another way is to resize the image using Image>Image Size, entering the new dimensions after turning off the aspect ratio lock (resample on).  This will stretch the image vertically, however, so it's probably not a good option.
    Finally, you could resize the image using Image>Image Size, leaving the aspect ratio lock on and resample on, and increase the height from 6.6 to 8.  This will have the secondary effect of enlarging the width from 10" to a greater width.  Then you crop the resulting image back down to 10" width, which involves losing some edge areas of the image.

  • How can I make it so that my songs don't go on her iPod and her songs ....

    Me and my mother just got iPods for christmas and hers was a U2 ipod and mine was a 30gb ipod. I have downloaded some songs and have imported some cds but my mother doesn't want those songs on her ipod. How can I make it so that my songs don't go on her iPod and her songs don't go on mine.Do i need to create another itunes?

    The computer can tell the difference between your two iPods. When you first plugged each one in, you named them and the computer recognizes each one as a separate disk.
    Now, when you plug in your iPod, and you are looking in iTunes at your iPod contents, you will see four buttons in the bottom right corner of iTunes - the first one is to display iPod options. Click on this, and under the music tab, select "Automatically update selected playlists only". Then, you scroll through your playlists and select only those you want to be transferred to your iPod. Your mother can do the same thing. Now you can each make your own playlists from the same music library, and only those songs you want to go onto your iPod will transfer when you plug it in. You can make the same selections for all the other options too (video, podcats. photos, etc), so that you only have to have what you want on each iPod.
    I have two iPods, a new 5g video iPod and an ancient 1g iPod, and have no problems syncing each of them with different playlists and options.

  • When I connect my ipod to my computer it opens my documents and won't show up in my itunes and I have unistalled then reinstalled itunes and reset my ipod twice and it stills does the same thing how can I make it so that it shows up in my itunes?

    When I connect my ipod to my computer it opens my documents and won't show up in my itunes and I have unistalled then reinstalled itunes and reset my ipod twice and it stills does the same thing how can I make it so that it shows up in my itunes?

    Try
    iOS: Device not recognized in iTunes for Windows
    I would start with              
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    Before you reinstall the Apple software, also remove iCloud vi Control Panel Remove programs. The reinstall the Apple programs
    New cable and different USB port?
    Runs this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Try on another computer to help determine if computer or iPod problem

  • How can I make it so that when Safari opens it takes me to the homepage?

    Say I am on youtube and I quit safari, when I reopen safari later, it goes to the page last open, in this case, youtube. How can I make it so that when Safari opens it always takes me to the homepage?

    Click on the red button (top left) to close the window before quitting.

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • How can i make it so that on messages i can see who is online wihtout having to search their name?

    how can i make it so that on messages i can see who is online without having to search their name? When i had ichat i didnt have to search their name... i culd see who was online autimatically.

    Firefox, the web browser, doesn't make any decisions about what mail should be considered spam or what senders should be blocked. What email software or webmail site are you using that is rejecting the messages?
    If it's a common site like Yahoo! mail, Gmail, Windows Live Hotmail/Outlook.com, then perhaps a volunteer familiar with their specific settings can help.
    If it's Thunderbird, the support site is over here: [https://support.mozillamessaging.com/].
    If your security/privacy software filters your mail, you will want to check its settings as well.

  • How would I make it so that when "deleting" an image I can make it so that the delete key does it or a button I put on the application?

    How would I make it so that when "deleting" an image I can make it so that the delete key does it or a button I put on the application?
    I want it so that I can use either a button on the designer window or the delete key. I know how to do the or part but the trouble I'm having is coding the button in.
    if (LastImageClicked != null && (e.Key == Key.Delete || Button))
    This is the code that I have in the format I'm looking for I just don't know how to do it. Thanks for your help!

    There are a number of things which are unclear about your question.
    I'll tell you one way to approach this though.
    Handle Window.PreviewKeyDown.
    <Window
    Window.PreviewKeyDown="Mainwindow_PreviewKeyDown"
    Code behind
    private void Mainwindow_PreviewKeyDown(object sender, KeyEventArgs e)
    if (e.Key == Key.Delete)
    File.Delete("p001.jpg");
    I don't know enough about what you mean by LastImageClicked  but you need some way of knowing which path you are going to delete.
    Then you might well have a problem if it's showing in an image control.
    You will need to copy the picture off disk into a new bitmapimage object.
    If you just do
    <Image Source="p001.jpg"
    Then that image will grab the file and you won't be able to delete it - you'll  get an error.
    In my experimental code p001.jpg is set as content copy always so it ends up next to the exe in the bin when the solution compiles.
    You would probably want a full path to a file there.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How can I make podcasts play continuously. And Why do I have to sign in to itunes twice every time I open it?

    How can I make podcasts play continuously. And Why do I have to sign in to itunes twice every time I open it?

    its really annoying since nobody uses my computer and its password protected.... But like sometimes it does happen where i have to put it in, and other times it doesn't

  • How can I make mp3 versions of songs I have purchased? Under the 'Advance' in the menu for iTunes, that choice is dimmed.

    How can I make mp3 versions of songs I have purchased? Under the 'Advance' in the menu for iTunes, Creating mp3 version is dimmed.

    Have you quit and re-launched iTunes? Does the menu item become active then? Or are you trying to convert a protected file, which isn't possible. You can tell if the file is protected by doing a Get Info. If Kind says "protected AAC audio file" the file can not be converted in-place. It must first be burned to Audio CD which you can then import into iTunes as an MP3.

  • When I disconnect my iphone 3gs(iOS) from computer, the device disappears from my itunes. This prevents me from doing a wireless sync. how do i fix it so that my device stays on itunes without having to plug it in all the time?

    When I disconnect my iphone 3gs(iOS) from computer, the device disappears from my itunes. This prevents me from doing a wireless sync. how do i fix it so that my device stays on itunes without having to plug it in all the time?
    it worked the first few times i did it but the next day after i closed out of itunes once, the device only appears when i plug in my phone.

    Whenever a menu choice is grayed out, that is because you have Restrictions turned on in Settings.  Be sure to turn it off.
    You are confusing an itunes store account with an icloud account.  You two can continue using the same ID for itunes (thus sharing purchased music, apps, etc.), but you really should have separate accounts (different IDs) for icloud, since an account is intended for one user to keep his/her devices in sync.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/
    Then go to Settings>icloud and scroll to the bottom of the screen and tap Delete Account.  (have restrictions turned off)  That will disconnect the device from the account but will not delete data in icloud or other devices.  Then sign in using the new ID.

  • In Mail, how do I make it so that email replies to me are sent to the email address from which I sent my original message?

    I have two IMAP accounts set up in Mail, one work and one personal. The personal account also receives emails from a third account (but I have that set up through gmail's forwarding, not Mail). I am sending emails from my work account and replies are coming to this third account, which I don't want to happen.
    How do I make it so that replies to me are sent to the email address from which I sent my original message?
    Thanks for your help!

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

Maybe you are looking for