Time when the waveform value cross a determined level

Hi all,
I'm using PCI-5112 with Labvew to capture a waveform and i'm getting a triangle form waveform type. How to find the time when the waveform value cross some predetermined values. To put it more clearly, I attached a picture. In my picture, I want to know TH (time interval when the Y value cross 100), TM ( time interval when the Y value cross 50), TL (time interval when the Y value cross 20). How to put these measurements through Labview program? Any clue or example would be very helpful. Thx  
Attachments:
description.jpg ‏22 KB

You can do this using the built-in NI-SCOPE functions or the LabVIEW pulse waveform measurements VIs by tweaking the reference levels appropriately.  However, given the noise level in your signal, you may not be happy with the result, since these measurements are done essentially on a point-to-point basis.  A more robust option is to find the approximate location of the level crossing, take N points on either side of it, do a simple curve fit to this data, then use the curve fit to determine the actual level crossing.  A line fit would work on the first part of your curve, an exponetial or parabolic fit on the second.  A further optimization would be to use a robust fitting method, but it does not look like you need to go that far.
If you need more details on any of these methods, let us know.
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • To find time when the user was dropped oracle

    Hi Experts,
    I have query from my auditor that will it be possible to find the time when the oracle user was dropped .
    Vesrion oracle 10g,11g
    Can we find it through audit trail or there is some dynamic performacne view which keeps this information.
    Or other wise we have to create some trigger manually to capture the time if so then please provide the details of the same
    A quick responce will be helpfull ....

    See here : 11.2.0.1 Windows XP
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select username from dba_audit_trail
      2  where
      3  action=53;
    no rows selected
    SQL> show parameter audit;
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      E:\APP\SERVERROOM\ADMIN\ORCL\A
                                                     DUMP
    audit_sys_operations                 boolean     FALSE
    audit_trail                          string      DB_EXTENDED
    SQL> audit drop user;
    Audit succeeded.
    SQL> create user test identified by test;
    User created.
    SQL> drop user test;
    User dropped.
    SQL> column sql_text for a50;
    SQL> set line 200;
    SQL> select username,
      2  timestamp,
      3  sql_text
      4  from dba_audit_trail
      5  where
      6  action=53
      7  /
    USERNAME                       TIMESTAMP SQL_TEXT
    SCOTT                          30-APR-12 drop user test
    SQL>So, answer is action=53 in dba_audit_trail for drop user and for specific user just add like operator with sql_text column. Means, scott user droped the test user on 30-APR-12.
    If you wish to know the meaning of action column of dba_audit_trail then see below link :
    http://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2088.htm#g1432037
    command.v$session = action.dba_audit_trail
    If this answer your question, please close the thread, else continue.
    Regards
    Girish Sharma

  • Saving a book as PDF takes significantly more time when the file binary *.fm rater than *.mif?

    Is it possible, that saving a book (with FrameMaker 10) as PDF takes significantly more time when the file is formatted in the binary *.fm rather than the *.mif format?
    We have books (+160p) that take about 20 min to be saved as PDF, whereas the same book in MIF format can be saved as PDF within about 4 minutes. Is this a known issue?
    Or could that be a problem with our books?
    Does anyone know how to speed up the process (how to tweak) or are there any special adjustments in the books or documents that might slowdown the process of saving them as PDF?
    The distiller seems not to be the problem. The distiller takes equally long for both formats.
    best regards

    Strikes me as peculiar. I would expect that FM is rendering from the data structures in memory, which I would expect to be essentially identical whether originally opened as .fm or .mif.
    If return-to-UI time is important, the fastest path is:
    print to local .ps file
    Distill separately.
    And it sounds like you have the full Acrobat product, and thus have full Distiller.
    I don't have sufficient experience with Print-to-PDF vs. Save-as-PDF to opine on potential time differences for those paths.

  • Why the iPhone vibrates 2 times when the iPhone OS is starting?

    Someone know why the iPhone vibrates two times when the iPhone OS is starting (and the apple logo appears)
    In my case, this rare event occurs when a problem with an application (3rd party) force to iPhone to restart or when occurs a problem during the sync with iTunes. After this event, my iPhone never load (your OS) and the only way is the restore.
    null

    Amazing how much trouble when can get into by taking shortcuts before we understand something... isn't it....
    Read the API and find out for yourself what events are triggered by a JButton......
    Remember thsi advices:
    1) Before using shorthand event handling, make absolutely sure that you understand the process back to front...
    2) Write your own event, listener and implementer in order to get a clearer picture...
    3) Until this is clear to you, always implement the appropriate listener and override the necessary methods....

  • HT4623 since i updated my iphone 4 to ios 6, i ve noticed that the wifi connection turns off each time when the screen is locked. I need to be connected with wifi all the time so as to stay updated with all my emails.

    since i updated my iphone 4 to ios 6, i ve noticed that the wifi connection turns off each time when the screen is locked. I need to be connected with wifi all the time so as to stay updated with all my emails. is there anyway for this problem.
    (PS: i know we could use 3G but i want to use wifi instead)

    I am having a really wierd issue as well that is probally related. I dont see 95% of the album artwork associated with my music. Also, it seems as if this has gotten worse since I started using that match feature

  • Wmi script to find out the time when the user was added to local administration group

    Hi Friends,
    i need a script/query based on wmi/wql that find out the time when the user was added to local administration group on this computer
    Regards
    Tanoj
    OSLM ENGINEER - SCCM 2007 & 2012

    WMI does not keep security information.
    Unless you have enabled auditing, this information is not retained in any way.
    If auditing is enabled, you can write a powershell script to look for the specific event in the eventlog. More specifically, you should look for all security events with id 4732 containing the group.
    this one command does the trick
    get-eventlog -logname security -instanceid 4732 -message *administrators*
    https://technet.microsoft.com/en-us/library/dd772663(v=ws.10).aspx
    MCP/MCSA/MCTS/MCITP

  • IPhone 5 iOS 7.1.4 Call failed every time when the other person hung up before me

    iPhone 5 iOS 7.0.4 says Call failed every time when the other person hung up before me,
    Is there anything I can do to about that please?

    Hey there Yonidawit,
    It sounds like you are are getting a message saying that the call failed, when the person you are talking to hangs up. I have a few things to recommend here. First close all the open apps:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone and test it out again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If that does not resolve it, try resetting your network settings:
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    From: iOS: Troubleshooting Wi-Fi networks and connections
              http://support.apple.com/kb/ts1398
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • The time when the PI doc is counted ,I want see the hour and minutes ,

    HI  experts ,
    How can I find when the physical inventory doc had been created ,counted and posted , by hour and minutes ,    the date is not enough .
    Thanks in advance .

    we use MI31 for create Physical inventory doc.
    as a matter of fact ,  what I most want to know is when the count quantity is entered by hour and minutes , because the book quantity in the Physical inventory doc is extract from MBEW table when the count quantity is first entered.After that the book quantity never updated .  So it's necessary to konw the exact time when the count quantity is entered , then we can do the right analysis of physical inventory difference.

  • Can we find out the date/time when the datafile last extended?

    Hello all,
    Can we find out the date/time when the datafile last extended?
    Is it possible to find out from the alert.log file?
    Correct me if I am worng?
    Thanks in advance
    Himanshu

    In continuation with the earlier post, can you tell me what sort of entry should be search if the above information is available in the alert.log file?
    Thanks
    Himanshu

  • Binding textbox to combobox selected value when the selected value is blank

    I have a simple form that binds data to a combobox and when one of the values in the combobox is selected it fills a textbox with the corresponding column in that table.  However, if that combobox value is empty(meaning that table cell is empty) then
    the textbox will not fill with the correct value.  I am finding this hard to explain so I will lay it out.
    The table[COA] is as follows:
    ID
    Fund
    Fund Description
    Bus Unit
    Bus Unit Description
    Obj
    Obj Description
    Sub
    PEC
    1
    2789
    Account Refund
    10000
    General Fund
    1500
    ASC Voucher
    10
    2
    2789
    Account Refund
    10000
    General Fund
    1500
    Voucher
    The following is my code:
    private void subComboBox_SelectedIndexChanged(object sender, EventArgs e)
    pECTextBox.Clear();
    using (SqlConnection connection = new SqlConnection(@"Data Source=MARYANNEBORJA\SQLEXPRESS;Initial Catalog=jdeDatabase;Persist Security Info=True;User ID=Jordan;Password=*****"))
    SqlCommand command = new SqlCommand("SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] ='" + subComboBox.Text + "'");
    command.Connection = connection;
    connection.Open();
    SqlDataReader read = command.ExecuteReader();
    while (read.Read())
    if (!read.IsDBNull(8))
    pECTextBox.Text = (read["PEC"].ToString());
    else
    pECTextBox.Text = "";
    obj_DescriptionTextBox.Text = (read["Obj Description"].ToString());
    read.Close();
    I fill my combobox with Sub values based on the Bus Unit and Obj.  Since the Bus Unit and the Obj in both rows are the same the combobox is filled with 10 and "".  
    Here is where the problem occurs.  When I select "10" in the combobox I want a textbox to fill with correct Obj Description field.  So selecting "10" would give me 'ASC Voucher' in the textbox and selecting "" should
    give me 'Voucher' in the textbox, but this is not the case.  I can only get 'ASC Voucher' to fill the textbox.  When I select "" it keeps the textbox at 'ASC Voucher'.
    My guess us that is has something to do with the value being empty in that table cell because when I am selecting other values it works.  
    Any guess as to what I should do?

    Hi objectifyThat,
    When Your subComboBox.Text is null, you should use "Sub is null" in your SQL like below.
    private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
    pECTextBox.Clear();
    using (SqlConnection connection = new SqlConnection(@"Data Source=MARYANNEBORJA\SQLEXPRESS;Initial Catalog=jdeDatabase;Persist Security Info=True;User ID=Jordan;Password=*****"))
    string cmdstring = "SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] ='" + subComboBox.Text + "'";
    if (string.IsNullOrEmpty(subComboBox.Text))
    cmdstring = "SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] Is Null";
    SqlCommand command = new SqlCommand(cmdstring);
    command.Connection = connection;
    connection.Open();
    SqlDataReader read = command.ExecuteReader();
    while (read.Read())
    if (!read.IsDBNull(8))
    pECTextBox.Text = (read["PEC"].ToString());
    else
    pECTextBox.Text = "";
    obj_DescriptionTextBox.Text = (read["Obj Description"].ToString());
    read.Close();
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HP laserjet 100 color MFP M175a printer driver to be installed evry time when the printer is made on

    Hello,
    I am having the above mentioned printer. The problem with this printer is every time when I switch-on the printer its driver has to be installed then only I can start printing. The following is my PC configuration:
    MB: ConRoe865GV chipset, CPU: PIV, OS: XP-SP3.
    Could you tell me what can the problem.
    Also if by mistake the paper in the paper-tray gets finished the printer takes quite a long time to detect that new paper bunch is there in printer. Is there a way to minimise this paper checking process.
    Kindly awaiting your fast reply

    Hi @RajBob ,
    I see that you are experiencing a issue with the printer installing every time you turn it on, then you are able to print again. Also when the paper runs out, it takes a long time to detect the paper in the tray again. I would like to help you out today.
    The printer has a Smart Install built into the firmware. Disable the Smart Install Feature to see if that will resolve the issue of the computer detecting the printer every time it is turned on.
    Go to Setup, Service Menu, Smart Install and turn it off please.
    If you are not able to print after turning the printer back on again, download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. Find and fix common printer problems using HP diagnostic tools for Windows?
    For the paper not being detected right away, make sure the printer is connected directly to a wall outlet and try to keep the tray filled at all times, but not over filled.
    What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages)
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    If you need further assistance, just let me know.
    Have a great weekend!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to make a text field required at run time when the user clicks the checkbox ?

    I got a form where , there are several checkboxes and text fields associated with that checkboxes.If the use clicks on the check box then the associated
    text fields should become required.I have tried the change event and the click event for the checkboxes.It gives error in the onChnage event and I got some weird results in the on click event .Sometimes if the user click the check box , then for the 1st time the field doesnt become required , then the user onclicks the check box and when the user clicks the checkbox for the second time the field becomes required,but if i deselects the highlighted field option and selects it again the field becomes required even if the user onchecks it I am totally confused !!! Adding to it i have also written the wrong code still i achieved the desired result ?? How it can be possible . I am writing the codes below , please help me as i am working under a deadline from the client.
    onChange event :
    var newVal = this.boundItem(xfa.event.newText);
    if(newVal == 0)
        xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1" ).validate.nullTest = "disabled";
      else
         xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1" ).validate.nullTest = "error";
    For the onClick event :
    var a = xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row2.CostItemRecovere d_OnlyEnergyCharges").rawValue;
    //app.alert(a);
    if(a == 0)
        xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").validate.nullTest = "error";
      if(a == 1)
          xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").validate.nullTest = "disabled";
       Please help someone !!!

    I used the onchange event and wrote the code for it. I got the result . But there is a problem.All these fields are in a table and it's a dynamic table where you can add rows dynamically at the run time .I have other change event for some fields in this table .All are working fine when i add the row.But for this check box the required fields are not validated as required at the run time . I am here giving the code , Please help me .
    form1.Subform0.Subform1.Subform9.Subform10.Table48.Row2.CostItemRecovered_OnlyEnergyCharge s::change - (JavaScript, client)
    if(this.rawValue == "1")
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L2_1").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L1_2").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L2_2").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L1_3").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L2_3").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L1_4").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L2_4").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L1_5").mandatory= "error";
      xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L2_5").mandatory= "error";
    else
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L1_1").mandator = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck_ L2_1").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L1_2").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row5.ComplianceCheck_ L2_2").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L1_3").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row6.ComplianceCheck_ L2_3").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L1_4").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row7.ComplianceCheck_ L2_4").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L1_5").mandatory = "disabled";
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row8.ComplianceCheck_ L2_5").mandatory = "disabled";

  • Displaying the time when the iphone is asleep

    Sincere apologies if this has been posted elsewhere.
    On my ancient Nokia phone, I was able to have the time displayed when the phone was asleep. Is this possible on the iphone? I don't want a nightstand type app, because I'm hoping not to use up too much battery. It would be handy to have the time displayed so I can quickly glance at the phone to check the time as it sits on my desk.

    There are different LCD technologies - with older ones the image could be visible (but poorly) without backlighting (reflective). Newer technology (transmissive) shows better images with greater viewing angles but require backlighting.
    iPhone's LCD seems to be fairly viewable in bright sunlight, so I'd be willing to say that it might be possible to show a readable image (displaying time, at least) without the backlighting, but that capability would have to be supported by the phone (display image, turn off backlighting) and currently it is not.

  • How to stop Mozilla to clean LBKTemp_Firefox folder every time when the Firefox is closed?

    I have used an old version of Firefox and XP and everyday I open one file and the firefox add to the file name "-1", "-2", "-3".... but now I am using Windows 7 and Firefox 5.0 and the problem is that this folder LBKTemp_Firefox was cleaned every time when I close Firefox. How can I stop this?

    Set the pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
    *http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes
    That will allow you to deselect the tab(s) that you do not want to reopen, but will allow to reopen other tabs.
    See:
    * http://kb.mozillazine.org/Session_Restore#Restoring_a_session_after_a_crash
    * http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • Why am I not seeing the LED blink faster on hardware when the waveform graph shows the signal updating?

    I am using the cDAQ-9188 chassis with a NI 9476 in the 8th slot, and when I run my VI, the waveform gets updated if I change the frequency of a signal while the program is running, but the DO from the write does not get updated. I thought that write takes in the data from the digital waveform input, so I'm confused as to why the digital waveform indicator is updated with a new signal, but my LED into a DI module (9421) is not updating.
    Thanks in advance for any tips and suggestions!
    Speed2.vi calls Generate_PWM.vi, so Generate_PWM is a subVI inside Speed2.
    Attachments:
    Generate PWM.vi ‏34 KB
    Speed2.vi ‏46 KB

    Hi Ruthnan,
    Sorry for the delay in response but after looking over that hardware it seems there should be enough counters in the chassis to support what you are doing. I believe you are getting the resource is reserved error because you have started one output task on that module thus reserving the reference. Once that task starts any additional task with get an error. It should be possible to use more than one counter in your application but it sounds like an error in the VI configuration. I am happy to help here to get an example up and running but I think it would be faster to open a service request for this issue. Let me know what you would like to do.
    Patrick H | National Instruments | Software Engineer

Maybe you are looking for

  • HP Officejet Pro 8610 does not connect to laptop via wireless network

    I have a new HP Officejet Pro 8610. It is connected wirelessly to my home network. My laptop, running Windows 7, is connected to the same network, but cannot find the printer. I have tried turning everything off and resetting the router, but still ha

  • Apple service London

    Hi. Some weeks ago I've bought IPHONE 4 in Apple store in London. I don't live in England. Now it is not working Could you tell me, my friends could bring this phone to service center in London? What documents they need, to make apple check it? Thank

  • Zooming one photo to compare to a second one in iPhoto

    I have hunted in the Help screens, the iPhoto menus and these forums and haven't turned up an answer... I want to take 2 photos, one of which was taken at 4x the zoom as the other when captured in the camera. In iPhoto I would like to be able to take

  • Favicons are disabled for most websites in URL and toolbar??

    Running Firefox 4 and windows 7. After upgrading to windows 7, reinstalling firefox, and connecting to my previous profile, MOST of the favicons do not appear in the URL or in bookmarks (toolbar). Tried no history, then history. Cleared cache a numbe

  • Missing Plug Ins in Logic X, Cant load External Plug ins on tracks I.E Massive, FM8 ETC. Please Help!!!

    Hi, I'm having problems, i just installed Logic X on my Macbook Pro after working off of 9.5 for a long time, it is kind of different and confusing, Massive doesn't show up in options when i try to skim down to AU Instruments when loading a software