Timers that used for plc

  I want to use timers that use for plc.Timers starts to count when a boolean button turns on. When the button turns off, timers should be zero. (RESET)
              HELP? (VI)

Hi Mehmed,
I'd recommend that you search through examples on the community site. One example program that I think you could use (with a very slight modification) is the Start and Stop Timer for Boolean Control program. Another example program that seems related is the Simple Stopwatch program. I'd recommend that you search the community for more examples or that you modify one of the examples I've listed here.
Sanjay C.
Embedded Software Product Manager| National Instruments

Similar Messages

  • On my mini ipad, I cleared the cookies/histories in the safari setting.  But what does the advance-setting of the clearing the website data does?  What's that used for? Thank you!

    On my mini ipad, when I'm on the internet -- a few times I will see a blue small pop-up boxes telling me to allow down/load or add something like the bubble-splash game or something similar.  I jusr click ignore and it goes away.. I'm not sure why it's showing up lately.. I'm not sure if it's a virus or hacked in or a web brower matter..
    Should I go to the cookies/histories in the safari setting and have it cleared out?  Will that help resolve that?? 
    And what does the advance-setting of the clearing the website data does?  Sorry, I'm not familiar.. what's is that used for? Should I use that feature as well?? Thank you!

    This indicates corrupt files.
    A restore should resolve.

  • Broked button that use for turn on e off from Ipod Touch. One friend off mine gave it at february 2011. some can help me what can I do? there is tecnical assistance in Brazil? It didn't fall.

    broked button that use for turn on e off from Ipod Touch. One friend off mine gave it at february 2011. some can help me what can I do? there is tecnical assistance in Brazil? It didn't fall.

    broked button that use for turn on e off from Ipod Touch. One friend off mine gave it at february 2011. some can help me what can I do? there is tecnical assistance in Brazil? It didn't fall.

  • Apps don't sync across devices after I moved to iCloud.  I have 1 apple ID (from mobile me) and 1 that use for iTunes

    Apps on my various iPads  and iPhone used to sync automatically.  Whenever I used to buy an apps, it would just automatically appear in all my devices.  I'm not sure what does that, it could have been the MobileMe account, but it was working perfectly until after I moved to iCloud.  Now, apps don't sync anymore.  Calendars, mails and contacts do.  I use 1 apple ID for I cloud and 1 for iTunes because I moved mobile me account to iCloud.  Could someone please help?  This is bugging me and I searched all over the Internet but can't find answer.

    I have the exact same problem. Help!

  • Would like help with treeset ,the codes that using for sorting, please ?

    hi every body. i faced a problem while writing this program, everything worked properly except this one. The program is related to Jframe and it asks the user to add three labels , three text field , one text area and three Jbuttons which are add sort and exit. i could deal with add and exit but sort, i couldn't do it properly because i don't know the codes that should be added in actionperfomed?
    These codes are :
    package gui;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import javax.swing.JButton;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import sun.misc.Sort;
    import domain.Student;
    public class StudentFrame extends JFrame {
          * This method initializes btnAdd     
          * @return javax.swing.JButton     
         private JButton getBtnAdd() {
              if (btnAdd == null) {
                   btnAdd = new JButton();
                   btnAdd.setBounds(new Rectangle(13, 135, 59, 27));
                   btnAdd.setText("Add");
                   btnAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                        btnAddClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnAdd;
         protected void btnAddClicked() {
              // TODO Auto-generated method stub
         String name = txtName.getText();
         String id = txtID.getText();
         String age = txtAge.getText();
         Student s = new Student(name , id , age);
         txtArea.setText(String.valueOf(s ));
          * This method initializes btnSort     
          * @return javax.swing.JButton     
         private JButton getBtnSort() {
              if (btnSort == null) {
                   btnSort = new JButton();
                   btnSort.setBounds(new Rectangle(95, 136, 62, 25));
                   btnSort.setText("Sort");
                   btnSort.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             btnSortClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnSort;
         protected void btnSortClicked() {
              // TODO Auto-generated method stub
          * This method initializes btnExit     
          * @return javax.swing.JButton     
         private JButton getBtnExit() {
              if (btnExit == null) {
                   btnExit = new JButton();
                   btnExit.setBounds(new Rectangle(173, 134, 61, 23));
                   btnExit.setText("Exit");
                   btnExit.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             System.exit(0); // TODO Auto-generated Event stub actionPerformed()
              return btnExit;
          * This method initializes txtName     
          * @return javax.swing.JTextField     
         private JTextField getTxtName() {
              if (txtName == null) {
                   txtName = new JTextField();
                   txtName.setBounds(new Rectangle(79, 11, 60, 23));
              return txtName;
          * This method initializes txtID     
          * @return javax.swing.JTextField     
         private JTextField getTxtID() {
              if (txtID == null) {
                   txtID = new JTextField();
                   txtID.setBounds(new Rectangle(73, 55, 65, 26));
              return txtID;
          * This method initializes txtAge     
          * @return javax.swing.JTextField     
         private JTextField getTxtAge() {
              if (txtAge == null) {
                   txtAge = new JTextField();
                   txtAge.setBounds(new Rectangle(74, 96, 61, 24));
              return txtAge;
          * This method initializes txtArea     
          * @return javax.swing.JTextArea     
         private JTextArea getTxtArea() {
              if (txtArea == null) {
                   txtArea = new JTextArea();
                   txtArea.setBounds(new Rectangle(138, 5, 154, 128));
              return txtArea;
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        StudentFrame thisClass = new StudentFrame();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
          * This is the default constructor
         public StudentFrame() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
              return jContentPane;
    }Edited by: hypocrisy on Apr 26, 2009 6:51 PM

    There are three actionPerformed in that program.One for add Jbutton , Sort , and Exit
    the codes that i have added for add button after action performed are
    String name = txtName.getText();
    String id = txtID.getText();
    String age = txtAge.getText();
    Student s = new Student ( name , id , age);
    System.out.println(s);
    the codes for Exit button to make it works properly was :
    System.out.println(0);
    But when i came to Sort Button and i tried to enter many codes but it didn't sort properly so would you like to help me with the right codes :)

  • What is $ used for?

    Hi,
    I saw the use of $ in programs... but don't know what is that used for? anyone care to explain in an easy to understand manner? Thanks.
    eg.
    [code]
    FORM SET_BILL_CAT  TABLES   $ERNLSR STRUCTURE RNLSR
                                $RNLEI STRUCTURE NLEI
                       USING    VALUE($RGART)
                                VALUE($M_COLLECT)
                                BILL_CAT
                                $ERRORS
                                $WARNINGS.
    [/code]

    hi Charles,
            $ is nothing but just a place holder. This strategy is used so that the same definition could be used dynamically for different values.
    FORM SET_BILL_CAT    TABLES    <b>ERP</b>ERNLSR STRUCTURE RNLSR
                                                          <b>ERP</b>RNLEI    STRUCTURE NLEI
                                          USING      VALUE (<b>A</b>RGART)
                                                          VALUE (<b>A</b>M_COLLECT)
                                                          BILL_CAT
                                                          <b>ERP</b>ERRORS
                                                          <b>ERP</b>WARNINGS.
    FORM SET_BILL_CAT    TABLES    <b>DAT</b>ERNLSR STRUCTURE RNLSR
                                                          <b>DAT</b>RNLEI    STRUCTURE NLEI
                                          USING      VALUE (<b>E</b>RGART)
                                                          VALUE (<b>E</b>M_COLLECT)
                                                          BILL_CAT
                                                          <b>DAT</b>ERRORS
                                                          <b>DAT</b>WARNINGS.
    as mentioned above the same definition is used to have two different versions while implementing.
    Hope i've solved ur query. If this has answered ur query plz award points.
    Regards,
    Kiran

  • Should InDesign be used for an academic journal?

    Hi,
    As an editor, I have been looking into the possibility of using InDesign as a layout program for an academic journal at our university. We currently use Word. I was wondering what the experts think of using InDesign for this function, in light of the nature of our journal. It is a 150-250 page volume put out twice a year. Besides the cover (which does not change), there are no graphics or images used, nor is there any special use of text or borders. It is simply a chaptered book with each chapter containing a new article, using only single column text, footnotes, and headers.
    As I work through the tutorials, I am getting the idea that InDesign may not be that useful for our purposes because we are doing fairly basic word processing. What do others think of this? Is it unnecessary? What would be the advantages to using InDesign for production of a text-only book such as ours?
    Thanks very much for any input you could provide!

    With a little practice, you can format long runs of text in ID at an astounding rate. Just this week, I formatted a book of 58 chapters, no images (well, only two), and the odd heading and sub-heading here and there. It took me 22 hours for 650 pages. Halfway, I had to revisit the chapters I already had done to do a few last-minute changes, so for the next volume I think it'll take, oh, 16 hours maybe.
    (My two main speed-tricks are:
    1. Use templates. Each of the chapters of that big book was a separate file, tacked together using the Book function. For a journal consisting of articles of about 20 pages each, you might want to do that as well. Always keep your templates clean and up-to-date -- if you change a global text style, use the Synchronize Book option to update all files, but don't forget to update the template as well.
    2. Set hotkeys for all major paragraph and character styles. Don't bother about this for low-frequency stuff like chapter titles, as there are precious few 'comfortable' shortcut combo's. Assign them to body text, 1st, 2nd, and 3rd level headings, indenting quotes; in other words, all stuff that comprised about 90% of your typical body text.
    I've been using the same style hierarchy and names for years now (something over a decade), and I can apply the top 10 at a stroke of my fingertips; others get the Quick Apply treatment. No mouseing around required.)

  • What are they used for?

    What do firewire ports be used for? Also, what about bluetooth, whats that used for? I read that turning bluettoth off saves battery and stuff, should i turn it off or does bluetooth have a use?

    FireWire is an interface which can be used for connecting external hard drives, optical drives, camcorders, and some other devices to your machine. Bluetooth is a wireless protocol which is used by some mice, keyboards, cellphones, and other portable equipment. If you aren't using any Bluetooth devices, you can turn it off.
    (9305)

  • I don't remember my old Apple ID and I closed my email account that I was using for my old Apple ID. Now, how can I change my icloud id on my Ipad. The old icloud id is still on my Ipad.

    I don't remember my old Apple ID and I closed my email account that I was using for my old Apple ID. Now, how can I change my icloud id on my Ipad. The old icloud id is still on my Ipad.

    ChrisJ4203,
    Thank you for the help.  Every app on my phone was downloaded using my old I-tunes ID.  I just hope that they will re-download under my new ID because I still can't change it on my phone.  In order to change to the new ID it says I have to sign out from the old ID and change to the new one.  My problem is that I don't remember my password to be able to sign out from my old ID.  Then the phone says it can change my password through e-mail and I  agree but I never get an e-mail at my old address or the new one.
    BHuyett

  • Just got Prosoft drive genius 3 software, and it's telling me that the external hard drive that i am using for my time machine back up drive needs to be defragmented.  is it wise to do this or should i not??

    just got Prosoft drive genius 3 software, and it's telling me that the external hard drive that i am using for my time machine back up drive needs to be defragmented.  is it wise to do this or should i not??

    Let's hope a couple things: that you have bootable clones of your drives also; that the backup drive for TimeMachine has over 3x capacity of the data you plan and are storing. I would also switch TM backup drives so you have a 2nd.
    Fragmented free space affecting performance happens when the drive is too full which may mean there isn't enough free space for a full backup set.
    1.5TB for backing up 500GB, while WD Green 3TB is $140 and WD Black 1.5TB is, about the same price.
    I'd be worried about the integrity and directory, and whether you can afford to lose that drive. Defragging is also a very slow operation. the ideal: to just clone a drive, or start over with another drive and wait. cloning TM volumes has not been done or has it? SuperDuper hoped to but I don't think they or Bombich's CCC made it there.
    Trouble with highly fragged is when free space gets to 20% normally, 1/3 or so though for TM volumes, and finding where and a chunk of space for the file being written. Does TM use large spare image files of like 2GB?
    Best would be to ask in the TimeMachine section Snow Leopard
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.6_snow_leopard?view= discussions#/?tagSet=1009
    where there are some good FAQ and tutorials, and people that know the ins-and-outs and shortcomings.

  • System Image Restore Fails "No disk that can be used for recovering the system disk can be found"

    Greetings    
                                        - Our critical server image backup Fails on one
    server -
    Two 2008 R2 servers. Both do a nightly "Windows Server Backup" of Bare Metal Recovery, System State, C:, System Reserved partition, to another storage hard drive on the same machine as the source. Active Directory is on the C: The much larger D: data
    partition on each source hard drive is not included.
    Test recovery by disconnecting 500G System drive, booting from 2008R2 Install DVD, recovering to a new 500G SATA hard drive.
    Server A good.
    Server B fails. It finds the backed-up image, & then we can select the date we want. As soon as the image restore is beginning and the timeline appears, it bombs with "The system image restore failed. No disk that can be used for recovering the system
    disk can be found." There is a wordy Details message but none of it seems relevant (we are not using USB etc).
    At some point after this, in one (or two?) of the scenarios below, (I forget exactly where) we also got :
    "The system image restore failed. (0x80042403)"
    The destination drive is Not "Excluded".
    Used   diskpart clean   to remove volumes from destination drive. Recovery still errored.
    Tried a second restore-to drive, same make/model Seagate ST3500418AS, fails.
    Tried the earliest dated B image rather than the most recent, fail.
    The Server B backups show as "Success" each night.
    Copied image from B to the same storage drive on A where the A backup image is kept, and used the A hardware to attempt restore. Now only the latest backup date is available (as would occur normally if we had originally saved the backup to a network location).
    Restore still fails.         It looks like its to do with the image rather than with the hardware.
    Tried unticking "automatically check and update disk error info", still fail.
    Server A  SRP 100MB  C: 50.6GB on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Server B  SRP 100MB  C: 102GB  on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Restore-to hard drive is also Seagate ST3500418AS.
    http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/e855ee43-186d-4200-a032-23d214d3d524      Some people report success after diskpart clean, but not us.
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/31595afd-396f-4084-b5fc-f80b6f40dbeb
    "If your destination disk has a lower capacity than the source disk, you need to go into the disk manager and shrink each partition on the source disk before restoring."  Doesnt apply here.
    http://benchmarkreviews.com/index.php?option=com_content&task=view&id=439&Itemid=38&limit=1&limitstart=4
    for 0x80042403 says "The solution is really quite simple: the destination drive is of a lower capacity than the image's source drive." I cant see that here.
    Thank you so much.

    Hello,
    1. While recovering the OS to the new Hard disk, please don't keep the original boot disk attached to the System. There is a Disk signature for each hard disk. The signature will collide if the original boot disk signature is assigned to the new disk.
    You may attach the older disk after recovering the OS. If you want to recover data to the older disk then they should be attached as they were during backup.
    2. Make sure that the new boot disk is attached as the First Boot disk in hardware (IDE/SATA port 0/master) and is the first disk in boot order priority.
    3. In Windows Recovery Env (WinRE) check the Boot disk using: Cmd prompt -> Diskpart.exe -> Select Disk = System. This will show the disk where OS restore will be attempted. If the disk is different than the intended 2 TB disk then swap the disks in
    correct order in the hardware.
    4. Please make sure that the OS is always recovered to the System disk. (Due to an issue: BMR might recover the OS to some other disk if System disk is small in size. Here the OS won't boot. If you belive this is the case, then you should attach the
    bigger sized disk as System disk and/or exclude other disks from recovery). Disk exclusion is provided in System Image Restore/Complete PC Restore UI/cmdline. 
    5. Make sure that Number and Size of disks during restore match the backup config. Apart from boot volumes, some other volumes are also considered critical if there are services/roles installed on them. These disks will be marked critical for recovery and
    should be present with minimum size requirement.
    6. Some other requirements are discussed in following newsgroup threads:
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/871a0216-fbaf-4a0c-83aa-1e02ae90dbe4
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/9a082b90-bd7c-46f8-9eb3-9581f9d5efdd
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/11d8c552-a841-49ac-ab2e-445e6f95e704
    Regards,
    Vikas Ranjan [MSFT]
    ------- This information is provided as-is without any warranties, implicit or explicit.-------

  • I have an SD card that my husband uses for a trail camera. The camera does not have a delete function for the pics, so I put the SD card in our MAC and we can view the pics but when I go to delete them it says that the files cant be deleted. What can i do

    My husband has an SD card he  uses for his trail camera. We put it in our mac book pro and can look at the pictures but when I go to move them to the trash it tells me that the files can't be moved to the trash because they cant be deleted. I have Nikon camera software on my mac and it pics up and asks if you want to import the pics and if you want them deleted from the devices afterwards. I tried that but I get a message afterwards that says that some files were not able to be deleted. When I go to check, none of them were deleted. How can I clean of the SD Card? I do have a camera I could stick it in, it would just be nice to know how to do it from my mac. Also, the files are jpg. if that matters.

    AFAIK cameras offer their own built-in format utility for inserted SD cards.  You should use that.  Otherwise, refer to the manual that came with your camera to determine precisely how your SD cards need to be formatted to work properly.  Personally, I'd suggest Partition Scheme: MBR, and Filesystem: FAT32.
    Try to limit the number of formats you perform on the SD cards, though, as you're reducing their lifespan.  I believe formatting causes re-writes to a portion of the SD card that has fewer read/write cycles than the rest of the card as a whole.

  • Help! My iPod touch won't let me download any apps. A message keeps coming up saying "This Apple ID cannot be used for the iTunes store. Please enter another Apple ID" I changed my ID to see if that would work but the same message still comes up.

    Help! My iPod touch won't let me download any apps. A message keeps coming up saying "This Apple ID cannot be used for the iTunes store. Please enter another Apple ID" I changed my ID to see if that would work but the same message still comes up.

    Where are you physically located?
    What country's Store are you using?
    The two have to be the same and the payment method for your account also has to be associated (billing address, where iTunes gift card was purchased) with that country.
    Has the ID(s) worked before for purchases for this country's store?

  • HT204053 Apple offered to install iCloud, and I allowed it. Yet when I try to sign in to iCloud using my Apple ID email and pswrd--an ID that I've been using for YEARS--I'm given the message, "This Apple ID is valid but is not an iCloud account." What is

    To repeat my question, Apple offered to install iCloud, and I allowed it. Yet when I try to sign in to iCloud using my Apple ID email and pswrd--an ID that I've been using for YEARS--I'm given the message, "This Apple ID is valid but is not an iCloud account." What is going on?
    Everywhere I search on Apple's Support site says to sign in to iCloud using your "Apple ID," which I did. I've had my iTunes account for years (even migrated from the old AOL account system). It's the standard email+password that everyone is supposed to use.
    My main question is how can I have a valid Apple ID and not an iCloud account--if the two are supposed to be linked?
    Thank you for any help you can give me!
    tlj

    I've tried both. First, I tried on my pc, where iTunes had installed iCloud when it last updated. I have iTunes installed on this computer (and on my iPad and iPhone), but that wasn't the issue.
    So I went online, thinking I needed a separate iCloud Apple ID, but it prompted me for my current Apple ID and gave me the message about my ID being "valid" but not an iCloud account," which, lol, was what it had asked me to do in order to create one. I checked, and at least one other user is having the same issue. I'll attempt to copy/paste the Support request url: https://discussions.apple.com/thread/4430653?tstart=0
    Thank you for any help you can give.
    Trish

  • I am trying to install Mavericks on my McbookAir, but it won't install, saying that my hd is used for time machine backups. I have an external HD connected to my mbAir that I'm using for time machine.

    2012 Macbk air, with OSX 10.8.5. See my question above. Mavericks won't install on my Air's HD, says that both the HD - AND - the external HD (which has a different name from the laptop HD) are used for time machine backups. I've deleted my time machine plists, restarted, repaired permissions, turned time machine off, repeatedly selected the external drive in time machine preferences. HELP. (Install went perfectly on my desktop Mac, which also has an external HD for time machine).

    I need to add that the only place I have the "Backups.backupdb" folder is on my backup external disk, and it's not on my HD    :-(    . If it were, I'd delete it!

Maybe you are looking for

  • IPhone 5s poor call quality - static

    I received my 5s a couple weeks ago and the phone had A LOT of static on the line during phone calls. I went to the local AT&T store and was told that it might be the sim card that was shipped in the phone, so they replaced it. That did not fix the p

  • Cisco ASA 5505 VPN Anyconnect no address assignment

    I have a problem with ip assigment via anyconnect. I always get the message no assigned address via anyconnect. I assigned to my profile for vpn a address pool, but it's still not working. Here is my config: hostname firewall domain-name ITTRIPP.loca

  • JDeveloper & Xmx

    After the installation of JDeveloper on the configuration file one of the default option is: -Xmx768m I would like use this ide on a computer with 1 gb of ram so i have specified: -Xmx512m I would like to know under what circumstances there is a grea

  • Grid Control Repository

    How to find that which database is having the Grid Control repository? I have a server SAFLO1 on which there are around 20 database instances running. I know the Agent Home but not able to find the repository database.

  • Logging Step results to different fields in adatabase

    Hi guys, would be great if you can help me out on this one: Imagine if I have 3 string test steps within a sequence, and I want to log the result of each of these steps in a different field (coulmn), what should I do? The main difficulty here is how