Absolute time between two sets of switches

Hi!
I am trying to write a VI that will find the time difference between two sets of switches. I have attached what I currently have which only gets the time for one set of switches.
What I am trying to include in my VI includes inputing data from two different ports and finding the resulting time difference. The two sets of switches go into different ports on the usb. The starting switches are in port 2 whereas the stoping switches are in port 1. Switch one from the first set should start the timer and switch one from the second set should stop the timer. And this logic continues for the remaining sets. Switch 2 from the first set starts the time and switch 2 from the second set stops the timer...All six switches are completely independant so they can stop in any order.
I was also wondering how to just have the absolute time from start to stop in hrs/min/sec? And then how to I write the resulting 6 times in hrs/min/sec to a spreadsheet?
Thanks so much for your help! I apologize for my simple questions! I am new to labview and computer programming in general.
Attachments:
patch_six.vi ‏25 KB

Please don't start a new thread with the same question.  I already gave you an answer in the original thread.

Similar Messages

  • How to count time between two pulses

    Hello everyone,
    I want to count time between two boolean pulses?  Can anyone give me an advice? Thank you in advance!

    Hello Michael78,
    You've right. I have a DAQ board and i want to acquire torque and angle (from a torque transducer). I already done that, but sometimes it doesn't work properly. To acquire this, i count sign changing of the torque to acquire exactly one period (3 sign changing). Torque have a noise, and when passes through zero, count more than 3 sign changing at a time, and this stop my acquisition (figure 2). I want to set a time between 2 counting sign . I tried something with tick count...but i made something wrong . I hope you understand me....
    Attachments:
    Capture.PNG ‏51 KB
    Capture2.PNG ‏47 KB
    Capture3.PNG ‏123 KB

  • Use more than one transition in the same time between two video clips?

    Dear Premiere Pro programmers,
    Could you please create a way to use more than one transition in the same time between two video clips without exporting to media, or creating new sequence, or using another layer (adjustment or transparent)?
    Message was edited by: Kevin Monahan
    Reason: Next time, create a more descriptive title.

    Hi Aqsa Nori,
    I'm not sure what you are imagining, but it might be possible to achieve by key framing effects. Can you tell us what you want to do? Also, please feel free to file a feature request: http://adobe.ly/feature_request
    Thanks,
    Kevin

  • How to Calculate the Time Between two days in ABAP

    Hi,
                  I have one scenario like i need to calculate the time between two days please can you suggest me.
    Thanks,
    Harinath

    Hi Peeleti,
                Check this code,
    DATA : DATE1 LIKE SY-DATUM VALUE '19830125',
           DATE2 LIKE SY-DATUM VALUE '20070219',
           DAYS1 TYPE I,
           WEEK1 TYPE I,
           MONTH1 TYPE I,
           YEAR1 TYPE I,
           C_YEARS1 TYPE I.
    CALL FUNCTION 'HR_99S_INTERVAL_BETWEEN_DATES'
    EXPORTING
      BEGDA           = DATE1
       endda           = DATE2
      TAB_MODE        = ' '
    IMPORTING
      DAYS            = DAYS1
      C_WEEKS         =
      C_MONTHS        = C_YEARS1
      C_YEARS         = C_YEARS1
      WEEKS           = WEEK1
      MONTHS          = MONTH1
      YEARS           = YEAR1.
      D_MONTHS        =
      MONTH_TAB       =
    *WRITE : / 'DAYS   = ', DAYS1,
            / 'WEEKS = ',WEEK1,
          /  'MONTHS = ', MONTH1,
          / 'YEARS   = ', YEAR1.
    Using this code you can calculate the No Of Days Between two dates. Based On days you will easily calculate the Hour. [  No of days * 24 ].
    Thanks.
    Reward If helpful.

  • LabVIEW/SignalExpress: How can I automate measuring the time between two pulses?

    Hi everyone, bit of a newbie here so please bear with me.  
    I'm a student at a university conducting a muon decay experiment with an oscilloscope connected to some photomultipliers.  To summarize, if a muon enters the detector it will create a very small width pulse (a few ns).  Within a period of 10µs it may decay, creating a second pulse.  The oscilloscope triggers on the main pulse 5-15 times per second, and a decay event happens roughly 1-2 times per minute.  I am trying to collect 10 hours of data (roughly 1500-2000 decay events) and measure the time it takes for each decay.
    I've been able to set recording conditions in SignalExpress that starts recording on the first pulse and stops recording on the last.  The Tektronix TDS 1012 oscilloscope however feeds 2500 points of data from this snapshot into a text file (for use in excel or other software).  Even if I perfectly collected the data, I would have 100,000+ data points and it would be too much to handle.  I don't know how (or if it's possible) to reduce the sample size.
    To conclude, using Labview or SignalExpress, I would like to be able to have the software
    1.  Differentiate between the single pulse detections and double pulse decay events
    2.  Record only when two pulses appear on the oscilloscope
    3.  Measure the time between these two pulses and ONLY that to minimize the amount of data recorded.
    Any help would be GREATLY appreciated, thanks!

    Hi wdavis8,
    I am not that familiar with Tektronix, but there should be a place in the dialog that you go through when you create the action step to acquire date to specify a sampling rate. That would allow you to reduce the number of data points you are seeing, but may reduce the quality of the data.
    If it’s just a matter of that much data being hard to dig through when you have that many points, you could do some analysis on the data after the fact, and then create a new file with only the data you want to look at. For example, you could identify the peaks in the data, and based on the distance between them or the difference in magnitude, selectively write data to a new file.  
    Here is some information about peak detection in LabVIEW:
    http://www.ni.com/white-paper/3770/en/
    You could also do some downsampling on the data to get fewer data points:
    https://decibel.ni.com/content/docs/DOC-23952
    https://decibel.ni.com/content/docs/DOC-28976
    Those are just a few quick ideas. 
    Kelsey J
    Applications Engineer

  • VLAN between two Cisco 300 switches

    Is it possible to share a VLAN between two Cisco 300 series switches?

    Make sure that your port 27 is NOT configured as an access port - it should be a trunk (that's the default). I believe the setting is under VLAN Management > Interface settings.
    Also ensure you are setup to tag frames (under the "Port to VLAN" settings).

  • Trunk between two SF220-48 switches

    Hello!
    I have two SF220-48 switches with default VLAN1 and additionally created VLAN2 & VLAN3.
    Switches placed in two rooms and are connected to each other via one Ethernet cable which is connected in 48 port on every switch.
    How must I configure 48 port to make it trunk for VLAN1 and VLAN2 & VLAN3?
    Thank's!

    I'm using web interface and make this setting:
    When PСs connected to VLAN2 ports on same switch they can ping each other, but when PСs connected to VLAN2 ports on different switches, they can't ping or make any outer connections.

  • Trunk config between two 6500 cat switches

    Hi All,
    What is the recommended trunk configuration between 2 cisco 6500 switches including hsrp scenario.
    Thanks

    Hi Samir,
    In almost all scenarios, its recommended to have 'dot1q' encapsulation and a static trunk config 'switchport mode trunk'. Matching the native VLAN on both sides is required and will be VLAN1 by default.
    When configuring trunks, you should be mindful of VTP, trunk and STP states. Reviewing the following for mismatches between your Cat6K will help:
    - show vtp status
    - show interfaces trunk
    - show spanning-tree
    In terms of HSRP, it is also recommended to run HSRP active in the same location as STP Root to avoid any asynchronous routing problems.
    /ijay

  • What is the best way to switch between two sets of bookmarks, say 'work' and 'private'?

    I want to use to sets of bookmarks, so that when I'm working, I'm not distracted by my non-work bookmarks and vice versa. For the last couple of months, I've been using two user accounts to achieve this, but it's a bit of a PITA. Links from other applications, like Thunderbird mail are opened in the default profile. This means when I'm not at work and I click a link in an email, a new window is opened with my Firefox work profile.
    All I need is a trick or an extension to quickly switch bookmark sets. Or a way to switch profiles without opening a new Firefox window. Any ideas?

    You can't get Firefox to work as you are explaining you want. The Default Profile can't be changed on-the-fly to the Profile you are currently using. That message "Firefox is already running ..." comes up due to you or "something" trying to open a 2nd (or subsequent) Profile, unless that '''-no-remote''' command was used to open the additional Profile. And '''-no-remote''' won't work to open the Default Profile without causing issues with how Windows works with "calling up" the Default Browser.
    In response to your last statement - '''''"To separate my work and private stuff I only need to change the contents of my bookmarks bar, so I hoped there was some trick to maintain to groups of bookmarks."'''''
    This extension will allow you to change the Bookmarks Toolbar folder while you are using Firefox.
    https://addons.mozilla.org/en-US/firefox/addon/set-as-bookmarks-toolbar-folde/
    I just installed that extension and verified that it still works in Firefox 35.
    There is a context menu item added for '''"Set as Bookmarks Toolbar Folder"'''' that appears when the Bookmarks Menu Bar drop-down menu is used (not in the Library window or the Bookmarks Sidebar). That menu item appears when you right-click a folder in the Bookmarks Menu folder. It doesn't appear with the "Bookmarks Toolbar" folder or the "Unsorted Bookmarks" folder - only a folder that is in the "Bookmarks Menu".
    That should "solve" wanting to have two different settings for the Bookmarks Toolbar, but the Default Profile "thing" is still an issue for what you are trying to accomplish. I don't "see a fix" for that - without resorting to a 2nd Window User Account which is what I thought you were referring to by "I've been using two user accounts to achieve this" in your initial posting.
    And since the Menu Bar is hidden by default these days, you can use '''Alt''' then '''B''' to open the Bookmarks drop-down from the "revealed" Menu Bar so you can access that '''"Set as Bookmarks Toolbar Folder"''' menu item - without having to show the Menu Bar all the time.
    ''BTW, using "accounts" in lieu of "Profiles" can be confusing when discussing Firefox Profiles.''

  • How can i measure the time between two successive rising edges ,using digital input ..

    Hello
    I'm trying to measure the time in seconds between each two successive rising edges on a digital input .
    Till now I have managed to detect the rising edge ,increment a counter with each rising edge ,and snap the time at which the rising edge happenned
    all I need now is to subtract the current rising edge time from the previous rising edge time in order to calculate (T) which can be 1/frequency and display it in realtime to the user.
    but I don't know how to do this
    Can somebody please help me !!!
    note: the time that I'm measuring ranges between 200 ms - 2 seconds
    Solved!
    Go to Solution.
    Attachments:
    Counter without time.vi ‏11 KB

    Cheers for that. It's always a good idea to post your SubVIs as well - the problem could be in one of those.
    To help you out:
    You already know how to use shift registers so why not use one again for time? Create a new shift register for  the time then simply compare the "rising edge time" to the the previous time stored in the shift register and then write the new time to the shift register.
    Just a few other pointers:
    1. You'll want to initialise your shift registers ie wire a constant to the left hand register outside of the loop. This will cause the register to be reset each time the program is run. This is so that your counter will start from zero each time you run your code.
    2. You don't need to use the "greater than?" compare function with boolean as they can only be true or false (1 or 0)! The "Equal?" function is what you should use here.
    3. Lastly, it's a small thing but you can use the same tunnel that feeds into a case structure in each of the cases - no need to create two tunnels for the true and false cases, use the same one.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • Syncopation Bug? Last Played "Time" between two computers

    First all: I get NO response from Sonzea email "support", the creator of Syncopation. I've sent two emails over past four days.
    Now.. here's the issue:
    I've successfully used Syncopation to keep two iTunes lib's in sync on two computers for a long time. It's always worked great. Hadn't used it for a while, but now when I use it the "time" is off by one hour between Sync software on the two computers.
    This manifests itself in two ways:
    1.) the "Last Played" time is different by exactly one hour when a sync is done. It is "less" by one hour on the computer being synced (the other being the "master"). After a sync it tells me I need to sync ALL 4023 tracks again because it sees the "Last Played" date different between the two. You can sync repeated and it reports that all EVERY TRACK needs updating- it never thinks it is synced.
    2.) BUT, when I reverse the sync and use the OTHER computer/library as the master it tells me the two libs ARE IN SYNC - even when I see that the "Last Played" dates if different by exactly one hour!
    I'm running the latest version's of Syncopation and Mac OSX.
    Anyone other Syncopation users see this? Ideas? Comments?

    I'll just update to mention that I just noticed that the "Remove Duplicates" script isn't actually removing all the duplicates. I'm down from 3-4 copies of everyting to just two, and now I need a way to get rid of this one extra duplicate. Anyone know of any other ways to do this?

  • To calculate elapsed time between two timestamp attributes

    Hello,
    I have two timestamp attributes (create_tmstmp & elapsed_tmstmp) in a table.
    It has two rows and I need the difference in seconds between these two attributes.
    The below query is returning negative value and incorrect value.
    Any help is appreciated.
    Row 1:
    Create_tmstmp : 2/2/2010 9:53:15.832 PM
    Elapsed_tmstmp : 2/3/2010 9:49:47.527 AM
    Row 2:
    Create_tmstmp : 2/3/2010 5:35:47.614 AM
    Elapsed_tmstmp : 2/3/2010 11:03:15.937 AM
    Select
    ( (extract(day from elapsed_tmstmp )-extract(day from create_tmstmp))*86400+
    (extract(hour from elapsed_tmstmp )-extract(hour from create_tmstmp))*3600+
    (extract(minute from elapsed_tmstmp)-extract(minute from create_tmstmp))*60+
    (extract(second from elapsed_tmstmp)-extract(second from create_tmstmp))*1000) completed_tmstmp
    From table_a;
    The output is :
    completedtmstmp_
    74655
    -11997
    Thanks.
    Edited by: solsam on Feb 4, 2010 11:57 AM

    hi,
    The problem with cast to date is
    SQL> select to_char(cast(to_timestamp('2/2/2010 9:53:15.832 PM','mm/dd/yyyy hh:mi:ss.ff pm') as dat
    e),'mm/dd/yyyy hh:mi:ss pm') from dual
    2 ;
    TO_CHAR(CAST(TO_TIMEST
    02/02/2010 09:53:16 pm
    so cast rounds it up, resulting in:
    SELECT (
    CAST (TO_TIMESTAMP ('2/2/2010 9:53:15.832 PM', 'mm/dd/yyyy hh:mi:ss.ff pm') AS DATE)
    - CAST (TO_TIMESTAMP ('2/2/2010 9:53:14.432 PM', 'mm/dd/yyyy hh:mi:ss.ff pm') AS DATE)
    * 86400 x
    FROM DUAL
    X
    2
    A more exact answer would use, to_char and to_date to convert :
    SELECT (
    TO_DATE (TO_CHAR (TO_TIMESTAMP ('2/2/2010 9:53:15.832 PM', 'mm/dd/yyyy hh:mi:ss.ff pm'),
    'mm/dd/yyyy hh:mi:ss pm'),
    'mm/dd/yyyy hh:mi:ss pm')
    - TO_DATE (TO_CHAR (TO_TIMESTAMP ('2/2/2010 9:53:14.432 PM', 'mm/dd/yyyy hh:mi:ss.ff pm'),
    'mm/dd/yyyy hh:mi:ss pm'),
    'mm/dd/yyyy hh:mi:ss pm')
    * 86400 x
    FROM DUAL
    X
    1
    Edit:
    Massimo Ruocchio's answer actually works better.
    -AC
    Edited by: user12026137 on Feb 9, 2010 12:45 PM

  • How to find the elapsed time between 2 events ?

    I want to use the robot class and I have register all events in a file but when I use the Robot. It isn't synchronous. So I should find th elapsed time between two events for reproducing them with the method delay of the class Robot.
    Thanks

    It sounds like you want to reproduce the events with varying time between the events? This is a good idea for a couple of reasons 1) it's possible to enqueue events so quickly that Robot gets ahead of the Java GUI, and 2) every human does their mouse/keyboard activity at varying (and relatively slow, relative to the computer that is) rates of speed. It would help make a more realistic interaction to vary the speed of event reproduction.
    Since you can't control the amount of time between the call to Robot and when the event arrives in the application, you can't be ultimately precise about this. You'll have to accept a teensy bit of slop in the process and just live with it.
    That is ... you can do something like robot.method1() .. Thread.sleep(1) .. robot.method2() .. Thread.sleep(1) ... and that will give slight delays. If you vary the value for Thread.sleep you can vary the event reproduction speed. Early in the development of Robot I experimented with something like this - I set up an EventQueue listener to capture all mouse/keyboard events (remember that each comes with a timestamp) and then reproduced events using the time intervals from the captured events to control the Thread.sleep times between Robot calls. It worked pretty well, and the mouse would dance around in the same way I moved the mouse around.
    - David

  • How do I face time between my own iPads?

    How do I face time between two I pads with the same owner?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
     Cheers, Tom

  • EEM problem with "event timer absolute time"

    Hi
    I wanted to execute a EEM script at a certain time, 2015-05-04 03:00:00 GMT+2:00. So I used the "event timer absolute time" command.
    But the switch executed the script immediately. Is there something wrong with the script? Is there another way to execute a few commands at a certain time like this?
    Script:
    event manager applet CHANGE_TO_RAPID-PVST_v2
    event timer absolute time 1430701200
    action 1.0 cli command "enable"
    action 1.1 cli command "config t"
    action 2.0 cli command "spanning-tree mode rapid-pvst"
    action 2.1 cli command "end"
    action 3.0 syslog msg "Changed to Rapid-PVST by EEM script CHANGE_TO_RAPID-PVST_v2"
    Switch: WS-C3560X-24T-S
    IOS: 15.0(2)SE4
    EEM version 3.2
    #show event manager history events
    No. Job Id Proc Status Time of Event Event Type Name
    2 2 Actv success Thu Apr30 09:25:02 2015 timer absolute applet: CHANGE_TO_RAPID-PVST_v2
    I used this link to calcute the timer value. http://www.epochconverter.com/

    I honestly have never seen anyone use this timer.   You'd be better off using cron and removing the applet when it's done.
    That said, this does look like a bug.  Given the little use we've seen of this timer, it's likely a new one.  I recommend opening a TAC case so it can be tracked.

Maybe you are looking for

  • Financial Statement

    Hi all I am creating a customized report of Financial Statement that contains monthly figures for every G/L account. When I compared my report with the standard FS, I found out in standard FS, there are some G/L are taking amount from previous fiscal

  • About to purchase Mac Mini

    I have never used a Mac Mini. What else do I need once purchased to get it up and running. For example, will accessories previously used with Windows 7 work, i.e. Samsung monitor with it's own controls External DVD writer And, does the Mac Mini have

  • "Bluetooth: Not Available" problem created by software update; need help please?

    I ran a regular software update as prompted by my iMac to get to 10.6.8, and now have "Bluetooth: Not Available" with squiggly line thru it.  I've tried an SMC, updated software to 10.8.4...no availability of my Bluetooth to work the magic mouse, or

  • Video Files in Aperture 3 -- FCP X

    Hi all, I'm having a small issue with my videos in my Aperture library as it relates to the media browser in FCP X. Several of my videos, since upgrading to Mac OS X Lion, have black thumbnails; I can open the clip and view it without any issues, but

  • How should I know if download was real?

    How should I know if the download I agreed to this morning was ligitimate? The message said version 10 with a 2 or something. But I see no changes in anything now. I am currently running version 9 (apparently). I find it annoying when asked and just