Need to get travel time of each echo

Hi,  
I want to calculate the travel time of an echo.  
The data I have, is a triggered pulse and 4 echoes in a single graph at different  time intervals.  
Now, I want to calculate the travel time of each echo from triggered pulse start.  
Method I want to use,  
1. Calculate first trigger point.
2. Get the end of waveform and gate the data.
3. Again repeat step 1 and 2 , to get first trigger point.  
Is there any way to calculate the point where waveform ends or is almost constant?  
Or, is there any other method to calculate travel times.  
I am new to LabVIEW.Please help.  
Thanks, Amit

Answers to your questions will depend on how you have your acquisition set up. 
I general, I would expect that you'd set up the system to wait for a loud noise and then take some finite amount of samples (e,g, 100k samples at 10kHz) that will be sure to capture the echos. In this scenario you will alway get the same number of samples. 
You can get the amplitudes of the data by using "get waveform components.vi" or "convert from dynamic data" and then use "threshold 1D array" to find the rising edge of the echo peaks.

Similar Messages

  • Need a Query to Get Execution time of each query in Proc if its running

    I am looking for query which give total execution time of individual query running currently ?
    we have queries but it will give cumulative time from the start date,
    for example - if stored proc has 10 queries , if each query taking 10 seconds it should show me 10 secoond if its running, not from when stored proc execution started , if you have any query please let me know
    only for running queries ,

    Is this the logic you're after?
    DECLARE @timeStamp DATETIME2 = CURRENT_TIMESTAMP, @lapTimeStamp DATETIME2, @x INT = 0
    SET @lapTimeStamp = CURRENT_TIMESTAMP
    WHILE @x < 10000
    BEGIN
    SET @x = @x + 1
    END
    PRINT CAST(DATEDIFF(MS,@TIMESTAMP,CURRENT_TIMESTAMP) AS VARCHAR) + ' milliseconds have elapsed since the begining of the proc. ' + CAST(DATEDIFF(MS,@lapTimeStamp,CURRENT_TIMESTAMP) AS VARCHAR) + ' have elapsed since the last batch'
    SET @lapTimeStamp = CURRENT_TIMESTAMP
    SET @x = 0
    WHILE @x < 10000
    BEGIN
    SET @x = @x + 1
    END
    PRINT CAST(DATEDIFF(MS,@TIMESTAMP,CURRENT_TIMESTAMP) AS VARCHAR) + ' milliseconds have elapsed since the begining of the proc. ' + CAST(DATEDIFF(MS,@lapTimeStamp,CURRENT_TIMESTAMP) AS VARCHAR) + ' have elapsed since the last batch'
    SET @lapTimeStamp = CURRENT_TIMESTAMP
    SET @x = 0
    WHILE @x < 10000
    BEGIN
    SET @x = @x + 1
    END
    PRINT CAST(DATEDIFF(MS,@TIMESTAMP,CURRENT_TIMESTAMP) AS VARCHAR) + ' milliseconds have elapsed since the begining of the proc. ' + CAST(DATEDIFF(MS,@lapTimeStamp,CURRENT_TIMESTAMP) AS VARCHAR) + ' have elapsed since the last batch'

  • HT204053 Can two people use one account and get face time to each other?

    I'm getting a new ipad and I'll be handing over my ipad 3 to my Hubby. I was wondering if we could both share different IDs in the same account and be able to face time each other from my account. Most of his apps where purchased on my itunes for the ipod he uses from my account. Will I need to make him a separate itunes account?

    LoraJabot wrote:
    I'm getting a new ipad and I'll be handing over my ipad 3 to my Hubby. I was wondering if we could both share different IDs in the same account and be able to face time each other from my account. Most of his apps where purchased on my itunes for the ipod he uses from my account. Will I need to make him a separate itunes account?
    You don't have to create another account - I facetime and imessage with my wife's ipad all the time using one apple id. All you do is on one device check mark one email address in " send and receive " area and on other ipad another adress. So I do that from ***@hotmail to ***@icloud. BTW imessage and facetime have nothing to do with icloud or itunes and to have different id's for icloud would be my recommendation as well.

  • I used "Get Waveform Components" to separate waveform data. I need to get the time stamp and write it on file as an header.

    I am not able to solve the problem because I can't find an I/O vi that writes on file time stamp data. An error occurs, because of connecting different data types. How can I convert time stamp data so that I can use it as input in a write on file vi? Please, help me!

    The problem with the selection seems to be that you are using two different indexing tunnels on the for loop. One of them loops over every value of the first incoming waveform, the other one over all waveforms in the incoming array. The value you wire to the N terminal will be ignored, the number of loop executions will be the minimum of your indexes. Anyway, the loop doesn't seem to do what you wanted:
    - If you want to store the complete waveform: loop over all waveforms, check for the maximum of each of them and write it just like you do now.
    - If you want to store only the values of each waveform that actually exceeded the threshold: You can either use 2 nested for loops to iterate over each value of each waveform. Use shift registers t
    o create new arrays of timestamps / values for the values you want to store. You need to either convert the waveform to x-y-pairs (VI on analog waveform palette) or calculate your own timestamps. You might as well want to check out the "Search waveform" VI. Configure it so that value+-tolerance covers the band between your expected minimum value and your threshold value. The VI will give you the indices and timestamps of all fits.

  • Utl file - I need to get new line for each value

    I wrote an utl_file package to generate an html file. It is working fine, however, I am having difficulty formating my output.
    I like to have values returned one line at a time. For instance,
    Name:Sam Ok
    area code: 407
    phone: 333-4444
    picture: display here.
    It is displaying values on one line.
    Please help if you can. Here is the code.
    Thanks,
    sam
    CREATE OR REPLACE PROCEDURE Cr_Movie_PRV_HTML(
    P_Filename IN varchar2,
    p_Id IN mist_physician.mp_phys_Id%TYPE
    AS
    CURSOR C_mist IS
    SELECT mp_name,
    mp_update_datetime,
    mp_area_code,
    mp_phone,
    mp_address,
    mp_fax
    FROM Mist_Physician
    WHERE Mp_phys_id = P_Id;
    v_mp_name mist_physician.mp_name%type;
    v_mp_update_datetime mist_physician.mp_update_datetime%type;
    v_mp_areacode mist_physician.mp_area_code%type;
    v_phone mist_physician.mp_phone%type;
    v_mp_address mist_physician.mp_address%type;
    v_mp_fax mist_physician.mp_fax%type;
    V_FileHandle UTL_FILE.FILE_TYPE; -- This will be used to store the filename
    BEGIN
    --Open The specified file to write into and get V_FileHandle.
    V_FileHandle := UTL_FILE.FOPEN('c:\mist_info', P_FileName, 'w');
    IF Utl_File.IS_OPEN(V_FileHandle) = FALSE THEN
    RAISE_APPLICATION_ERROR(-20000,'Error opening '||P_FileName||' for WRITE');
    END IF;
    Let's build the header file that will be inside the file that will  identify why thus file is created.
    utl_file.put_line(V_FileHandle,'#---------------------------------------');
    utl_file.put_line(V_FileHandle,'Name'||' : '||mist_Rec.mp_name);
    utl_file.put_line(V_FileHandle,'Date');
    utl_file.put_line(V_FileHandle,'Phone');
    utl_file.put_line(V_FileHandle,'Address');
    utl_file.put_line(V_FileHandle,'# Generated on: '||to_char(sysdate, 'Mon DD, YYYY (Dy) HH:MI:SS AM'));
    utl_file.put_line(V_FileHandle,'#-----------------------------------------');
    utl_file.put_line(V_FileHandle,' ');
    -- Next we will query data from the Movie table. Only data that are relevant.
    -- Using PUT_LINE, write text with the field arguments out to the file
    BEGIN
    FOR Mist_Rec IN C_Mist LOOP
    UTL_FILE.PUT_LINE(V_FileHandle,'Name'||':'||Mist_Rec.Mp_Name||','||'<img src=c:/our_website/co16.jpeg>');
    END LOOP;
    SELECT mp_name,
    mp_update_datetime,
    mp_area_code,
    mp_phone,
    mp_address,
    mp_fax
    INTO v_mp_name,
    v_mp_update_datetime,
    v_mp_areacode,
    v_phone,
    v_mp_address,
    v_mp_fax
    FROM Mist_Physician
    WHERE Mp_phys_id = P_Id;
    END;
    -- Now Close the file
    UTL_FILE.FCLOSE( V_FileHandle);
    EXCEPTION
    WHEN Utl_File.Invalid_Path THEN
    RAISE_APPLICATION_ERROR(-20001,'Error: Invalid Path');
    WHEN Utl_File.Invalid_Operation THEN
    RAISE_APPLICATION_ERROR(-20002,'Error: Invalid File Operation');
    IF Utl_File.IS_OPEN(V_FileHandle) = TRUE THEN
    Utl_File.FCLOSE(V_FileHandle);
    END IF;
    WHEN Utl_File.Invalid_Mode THEN
    RAISE_APPLICATION_ERROR(-20003,'Error: Invalid Mode');
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR: ' || SQLCODE || '-'||SQLERRM);
    END Cr_Movie_PRV_HTML;
    /**********************End Of Mist*********************/

    Syntax is::
    UTL_FILE.NEW_LINE(filename, nuber-of-lines)
    CREATE OR REPLACE PROCEDURE Cr_Movie_PRV_HTML(
    P_Filename IN varchar2,
    p_Id IN mist_physician.mp_phys_Id%TYPE
    AS
    CURSOR C_mist IS
    SELECT mp_name,
    mp_update_datetime,
    mp_area_code,
    mp_phone,
    mp_address,
    mp_fax
    FROM Mist_Physician
    WHERE Mp_phys_id = P_Id;
    v_mp_name mist_physician.mp_name%type;
    v_mp_update_datetime mist_physician.mp_update_datetime%type;
    v_mp_areacode mist_physician.mp_area_code%type;
    v_phone mist_physician.mp_phone%type;
    v_mp_address mist_physician.mp_address%type;
    v_mp_fax mist_physician.mp_fax%type;
    V_FileHandle UTL_FILE.FILE_TYPE; -- This will be used to store the filename
    BEGIN
    --Open The specified file to write into and get V_FileHandle.
    V_FileHandle := UTL_FILE.FOPEN('c:\mist_info', P_FileName, 'w');
    IF Utl_File.IS_OPEN(V_FileHandle) = FALSE THEN
    RAISE_APPLICATION_ERROR(-20000,'Error opening '||P_FileName||' for WRITE');
    END IF;
    utl_file.put_line(V_FileHandle,' ');
    -- Next we will query data from the Movie table. Only data that are relevant.
    -- Using PUT_LINE, write text with the field arguments out to the file
    BEGIN
    FOR Mist_Rec IN C_Mist LOOP
    --Let's build the header file that will be inside the file that will
    --identify why thus file is created.
    UTL_FILE.PUTF
    (file_handle, %s,'--------------------------');
    UTL_FILE.NEW_LINE(V_FileHandle, 1)
    UTL_FILE.PUTF (file_handle, '%s','Name'||':'||Mist_Rec.Mp_Name, )
    UTL_FILE.NEW_LINE(V_FileHandle, 1)
    .(Chang the below all u will get as u required)
    'Date'||' : '||Mist_Rec.mp_update_datetime,
    'Area Code'||' : '||Mist_Rec.mp_area_code,
    'Phone'||' : '||Mist_Rec.mp_phone,
    'Address'||' : '||Mist_Rec.mp_address,
    'Fax'||' : '||Mist_Rec.mp_fax,
    '# Generated on: '||to_char(sysdate, 'Mon DD,
    YYYY (Dy) HH:MI:SS AM')),
    '<img src=c:/our_website/co16.jpeg>'),
    -- UTL_FILE.PUT_LINE(V_FileHandle,'Name'||':'||Mist_Rec.Mp_Name||','||'<img
    --src=c:/our_website/co16.jpeg>');
    END LOOP;
    SELECT mp_name,
    mp_update_datetime,
    mp_area_code,
    mp_phone,
    mp_address,
    mp_fax
    INTO v_mp_name,
    v_mp_update_datetime,
    v_mp_areacode,
    v_phone,
    v_mp_address,
    v_mp_fax
    FROM Mist_Physician
    WHERE Mp_phys_id = P_Id;
    END;
    -- Now Close the file
    UTL_FILE.FCLOSE( V_FileHandle);
    EXCEPTION
    WHEN Utl_File.Invalid_Path THEN
    RAISE_APPLICATION_ERROR(-20001,'Error: Invalid Path');
    WHEN Utl_File.Invalid_Operation THEN
    RAISE_APPLICATION_ERROR(-20002,'Error: Invalid File Operation');
    IF Utl_File.IS_OPEN(V_FileHandle) = TRUE THEN
    Utl_File.FCLOSE(V_FileHandle);
    END IF;
    WHEN Utl_File.Invalid_Mode THEN
    RAISE_APPLICATION_ERROR(-20003,'Error: Invalid Mode');
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR: ' || SQLCODE || '-'||SQLERRM);
    END Cr_Movie_PRV_HTML;
    /**********************End Of Mist*********************/

  • Help needed in getting real time system performance monitor

    Hi,
    I need a real time system performance monitor for my solaris.
    i am able to graph system usage graph on a daily/weely basis using the ksar grapher.
    In the same way i need to capture the system utilisation real time to be viewed on a webpage. Please let me know if there are any free tool/scripts capable of doing it.

    Hi,
    Process Chain Errors
    /people/mona.kapur/blog/2008/01/14/process-chain-errors
    Common Process chain errors
    For Data Load Errors check this blog:
    /people/siegfried.szameitat/blog/2005/07/28/data-load-errors--basic-checks
    Implementation issues
    Lifecycle Implementation
    http://help.sap.com/bp_biv170/documentation/SolutionScope_EN.doc
    http://help.sap.com/bp_biv235/BI_EN/documentation/BWProjectPlan_EN.mpp
    Hope this helps.
    Thanks,
    JituK

  • Is there a way to get the details for each hit in the portal database WCR_WEBCONTENTSTAT?

    Hi,
    I need to get the details for each user hit.
    Apparently, this table has the IMPRESSIONS column which returns the total number of hitcounts and VISITS which counts the number of unique user who accesses the portal. What I am trying to look for is to get all the details per hitcount. I need to find out how many time a specific user accessed a specific page or iview.
    I also used the table WCR_USERPAGEUSAGE, which I get the information of the users counted in the VISITS column in the first table.
    I could not get the specific user per hit.
    Please enlighten me if this is possible and how to do this?
    Thanks!

    Hi Catherine,
    Why not use the portal activity report iView?
    In the portal activity report iView the 3rd option allows you to choose a page for example and see
    the user who accessed it and how many times.
    Thanks and BR,
    Saar

  • How to get elapsed time of the query in form 6i

    hi
    I used to use " set timing on " in sql to get the elapsed time
    set timing on
    elapsed time :XX:XX:XX ,
    but i dont know how to get it in fom
    its really imporant to measure the time elapsed for me cuz i am student an need to get the time
    thanx alot

    regarding to point 1 : u know there are three modes for system ; query, enter_qeury,and normal. when the system is not noraml so it is either query or enter_query , and both are query processing ( as i think) so it the elapsed time . it also by using timer stpos when system finish query ( normal)
    why you dont prefer timers ..... ( it important please to explain )
    thank you very much Navnit Punj
    Edited by: user8652693 on 22/07/2009 07:33 ص

  • How to get deployment time of an J2EE application

    Hi All,
    I am developing J2EE applications on NetWeaver 7.0 and 7.1. In my application, I need to get deployment time of a J2EE application installed in the J2EE engine.
    For NetWeaver 7.1, I found SAP's Java APIs to do that:
          com.sap.engine.services.deploy.server.cache.dpl_info.Applications.get("appName").getMonitorData().getDateOfLastRedeployment();
    But for NetWeaver 7.0, I haven't found any similar stuffs.
    Could you give me any helps for the case of NetWeaver 7.0?
    Thank you very much.
    Viet

    I'm not 100% sure but you may be able to turn on tracing for the Java stack "Deploy" service.
    In Visual Administrator, go to "Global Conf [Server] -> services -> Deploy" change additional_debug_info.
    Then in "Cluster [server x] -> services -> log configurator [locations] -> com -> sap -> engine -> services -> deploy" change the debug level to "Info" or something.
    This should put some additional tracing out to the trace files which can be viewed in the Log Viewer.
    Don't forget to reset the trace level when you're done.

  • How to reduce the time for each clips up to 0,04 seconds?

    Hi, I'm trying to realize my first time laps. I've need to reduce the time for each clips up to 0,04 seconds, but it seems that the minimum time is 0,1 second. There's a solution?

    And use a zip file.  Many people can't open RARs.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Capture travel time expenses and working hours spent on the service call

    Hi Experts,
    I have One Year AMC contract with my customer.Under AMC he called me for 10 times.I need to
    Capture travel time expenses and working hours spent on all the service call, Non of them will be billed to the customer.
    This is just for our internal tracking.this particular data will reside within the office premises.
    Explain how efficiently we can track this particular requirement in SAP Business One
    Regards,
    Vikram

    Hi Vikram
    You will notice on the item master records that there is a field called Item Type. The options are Item, Labor and Travel. In order for the service module to recognize the expense or charge type, either Labor or Travel must be select. Create a service item (untick inventory item) and choose the Item Type as Labor or Travel. When you now create a Delivery/Invoice from the expenses section of the service call, it will identify and warn you if you charge the customer, as this would be defined in your service contract template as non billable charges. You can still create a Delivery for the charges and put quantities and values on the Delivery document. In this case you are not going to invoice the customer for the charges, so you can "Close" the Delivery. Just be aware that closing the Delivery will post the value to an offset account defined in the Account Determination.
    The benefit of this approach is that the Delivery will post a debit and credit in your G/L that will "accrue" what the costs are of servicing the customer. My suggestion would be to set the account determination for the Labor/Travel item(s) to item level and define the Revenue/Expense accounts to specific G/L accounts.
    Let me know if you need more information or assistance with the above.
    Kind regards
    Peter Juby

  • Can I adjust the time for each slide?

    I'm making videos out my own photos.
    I've figured out how to upload the photos, record a commentary, etc. but I need to adjust the time that each slide is shown. This is because the videos are how-to's, and some explanations are longer than others, and in that case the slide needs to stay on longer.
    I'm using iMovie 08 and can't upgrade because I'm still on OSX 10.5.8.
    Thanks!
    Gina

    There should be a Duration button at the bottom left of the photo thumbnail in your project. Click this button and you will see a dialog box where you can adjust the duration. Be sure not to check the box that say "apply to all photos".

  • Travel time in Maverick Calendar - when away from home / office

    Travel time is a nice feature but not working properly from my perspective. Some situations I can´t solve, perhaps anybody could help.
    1) I am flying out of Sydney Airport at the morning to lets say Melbourne. Calender will calculate travel time from home to airport as it should be. My next appointment is in Melbourne. Need to calculate travel time from Melbourne Airport to that appointment, but can´t add Melbourne Airport as an adress.
    2) When I am f.ex in Melbourne overnight I add an all day event with Hotel details (adress included). I need to calculate travel time from my Hotel to an appointment next morning. System is not offering the Hotel adress as an option.
    Thanks for any ideas...

    As a temporary workaround, of course, you can just turn Time Machine OFF.
    There was a similar message, with reference to type "file" in the URL, but this one is differnent.
    Have you ever used a 3rd-party utility, or followed any instructions to edit some files, to change Time Machine's default behavior?

  • TSQL Get Previous values for each group by

    Dear Friends,
    I have a problem with my TSQL statment. 
    I need to get previous value for each day and specific unit. Everything goes fine if I have always 2 unit in each day. But if same day has just one unit or less, I cannot have the previous value in the current record.
    The Output is this one:
    SK_DAY SK_UNIT
    VALUE VALUE_PREVIUS_DAY
    20131112 2
    30.00 NULL
    20131112 3
    34.00 NULL
    20131113 2
    40.00 30.00
    20131113 3
    45.00 34.00
    20131114 2
    50.00 40.00
    I dont have the second record for 2013-11-14, because in this date I just have value for unit 2.
    The final output should include the record:
    20131114 3
    0 45.00
    The Statment I have is:
    SELECT MAIN.SK_DAY, MAIN.SK_UNIT, SUM(MAIN.VALUE) AS VALUE
     SELECT SUM(VND1.VALUE) AS VALUE
     FROM FCT_TEST VND1
     WHERE CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))>=DATEADD(dd,-1,CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY)))
    AND CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))<CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY))
    AND VND1.SK_UNIT=MAIN.SK_UNIT
    ) AS VALUE_PREVIUS_DAY
    FROM FCT_TEST MAIN
    GROUP BY SK_DAY, MAIN.SK_UNIT
    SQL CREATE SCRIPT:
    CREATE TABLE [dbo].[FCT_TEST](
    [SK_DAY] [int] NOT NULL,
    [SK_UNIT] [int] NOT NULL,
    [VALUE] [decimal](18, 2) NULL,
     CONSTRAINT [PK_FCT_TEST] PRIMARY KEY CLUSTERED 
    [SK_DAY] ASC,
    [SK_UNIT] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Thank you!!!
    PPSQL

    Thank you Kalman,
    But my problem is not with date! Fortunately I have dates for all days.
    The problem is for dimension tables like UNITS that I dont have values for all days, and when I try to get the previous value for previous day and each unit I dont have records. 
    20131112
    2
     30.00
    NULL
    20131112
    3
     34.00
    NULL
    20131113
    2
     40.00
    30.00
    20131113
    3
     45.00
    34.00
    20131114
    2
     50.00
    40.00
    20131114
    3
     0
    45.00 [I NEED THIS RECORD AS IS]
    Could you help me??
    Thank you!!

  • Firefox.exe has encountered a problem and needs to close. We are sorry for the inconvenience. I have been using firefox for years. I installed the latest version of Firefox. It worked fine for several days. Now I get the above message each time I try to s

    firefox.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    I have been using firefox for years. I installed the latest version of Firefox. It worked fine for several days. Now I get the above message each time I try to start Firefox, even in safe mode. i have checked with latest antivirus softwere also.. i didn't find any thing suspicious.
    == This happened ==
    Every time Firefox opened
    == after loading firefox 3.6.6 ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    I was having this problem few days ago,and I have fixed.Try this steps-If you have AVG antivirus so go on firefox>Tools>Add On and Disable AVG safe search and AVG tool bars too.Then restart computer.

Maybe you are looking for