Evaluation of the slope of part of a curve with cursors

Good morning,
I am trying to get the slope of part of a curve. The curve is a stress strain curve and the idea is simply to manually choose the X range to evaluate the slope and extract the Young modulus. The user would place the cursors and the slope parameters would be displayed in an area.
I got some clues from various examples here in presenting au automatized calculation of the min, max, average and other parameters of the part of the curve contained between the two cursors, using the StatblockCalc command in the adequate range.
However, I understand that the regression tool needs two new channels containing the values between cursors (flags and export manually).
Then, the doubt is: Is there some way to bypass the creation of new channels each time the cursor is moved to get the linear regression parameters "live"? I am rather new using scripts with diadem and can´t find the apropriate way to code this. Do you have any clue?
Thank you in advance,
David

Hi David,
See if this application does what you want.  Note that it installs a new icon at the top of the VIEW icon bar, so that you can call the script easily from the VIEW panel after you've run it once in the SCRIPT panel.  There is no way around extracting the new X and Y channels from the desired X range in order to calculate the slope of that X region, but you don't have to use flags, which are designed for interactive use only.
http://forums.ni.com/t5/DIAdem/Using-DIAdem-how-to​-get-the-slope-of-a-signal-Linear-or-non/td-p/2158​...
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • How can I calculate the slope of an isometric torque curve with a trigger and time increments of 0-30ms, 0-50ms, 0-100ms etc....

    I am analyzing isometric muscle contractions of the quadriceps and want to calculate the rate of force development (not just peak torque) for the torque-time curve.  I want to set a trigger so that the slope of the torque curve is calculated when 7 newton-meters is reached.  From there I'm trying to calculate the slope in time increments of 0-30ms, 0-50ms, 0-100ms, etc....My data is sampled at 2000 Hz and written in text files.  Below is a copy of the VI I have developed so far.  I am very new to programming with LabVIEW but can definitely see its potential!  Any advice would be greatly appreciated. 
    Attachments:
    Dissertation Isometric RFD.vi ‏14 KB

    Fiddler918,
    When trying to implement something like this in LabVIEW, it is often helpful to think about how you would program this function in a traditional text-based language.  Try and break the problem down.  You need to locate the data point in your array that is 7 Nm or greater.  At this point, you will need to grab the data points that are 60 indices (for the 30ms gap, assuming your points are equally spaced 0.5 ms apart), 100 indices (for the 50 ms gap), and 200 indices (for the 100ms gap) ahead of this point in your data file, and calculate the slope using pairs of data points.  
    Here is a general description of a possible implementation of this code:
    You can wire the appropriate column of the data array into a For Loop on the block diagram and have it auto index through the points.  If you right click on the Use the Greater or Equal? function to generate a Boolean that will be true when you want to exit the For Loop.  Right-click on the border of the For Loop and select Conditional Terminal.  This will cause a small stop sign to appear.  If you wire the Boolean to the conditional terminal, the loop will stop at the value that is greater than or equal to 7 Nm.  If you wire the Loop Iteration terminal out of the For Loop to the right, this will give you the index of the value in the column that you’re interested in.  Having this value, you can then use the Array functions to grab the specific data points you need, and numeric functions to perform the necessary math.
    If any of this didn't make sense, the LabVIEW help files are a great resource to use.
    Here is a link to some video tutorials of the LabVIEW programming environment.  They may help you in the development of your code.
    http://www.ni.com/academic/students/learnlabview/
    Regards,
    Jared R.
    Precision DC Product Support Engineer
    National Instruments

  • Get the slope (gradient - derivative) of a curve at a point

    hello
    does anyone know if it is possible to get the slope (also might be known as gradient, derivative), of a curve at some point?
    What i want to do, is draw a line that is vertical to a curve, so i need to have it's slope
    thanx

    The easiest way to do it would to be to get the point right before the point you're looking at and the point right after it and just find the slope between the two
    If you try this method, make sure they are double values. Simple ints will not give you the slope you want.
    I made a program once that animated a rocket flying through the air. The curve was found using a parametric equation (x and y in terms of time). To point the rocket, I had to find the dirivitive (a little bit of calc 1). Then, I just made a function that calculated the slope of the curve at any given time (t). It worked great, but it may not be what you're looking for. If you do need to find the dirivitive, post some code or the formula you are using, I'm sure there are people on this board that can help you.

  • [Cp] Select object from the timeline and move it on slide with cursor keys ?

    Hello,
    I don't know if there's a shortcut for this :
    Sometimes, it's easier to select an object from the timeline but if you try to use cursor keys to move it, you're in fact moving IN the timeline.
    Is there a way to switch to Slide edition ?
    Thanks.
    PJ

    You can not only use the cursor keys, but also in combination with other keys. And indeed, you have to move the cursor over the stage:
    http://blog.lilybiri.com/shortcut-keys-part-1-moving-and-resizing-obje    about shortcut keys for the stage
    http://blog.lilybiri.com/tiny-timeline-tidbits    about shortcut keys for the Timeline
    There is a list with shortcut keys in the Help, but not complete.

  • What is the best third part converter to use with my IPad2 in order to import my videos from my PC?

    I have 70 videos I use in my work and want to import them into my IPad2.  What is the best third party converter to use?

    There is Handbrake (http://handbrake.fr) - aren't the videos compatible with iTunes on your computer, if they are then you can always do Advanced > Create iPad Version if they don't currently sync to the iPad. There are also a number of third-party iPad apps that support other video formats

  • The slope of a graph

    I'm trying to calculate the slope of a graph aquired by a daq device.
    I have to find the part of the curve where it reaches the peak, not the
    maximum. Can anybody point out a vi or function to find an
    approximation to the peak?
    Best Regards
    Svavar Von Eisland
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    You need to incrementally measure the slope from point to point and keep
    track of where the slope goes to zero (or a really small number) this could
    be at several points depending on how many minimums and maximums there are,
    to tell if it is a max or a min you will need to keep track of the sign
    changes on either side of the zero slope point(s) (derivitive). Also
    depending on how noisy your data is you may need to smooth it as you go -
    maybe some type of running average. The end points of your data will have
    to be excluded since the slope is undefined (ie you can't take a slope of a
    single point).
    Refer to your differential equations / calculaus book for futher info. :-)
    Chris
    [email protected] wrote in message <7o926e$3bo$[email protected]>...
    >I'm trying to
    calculate the slope of a graph aquired by a daq device.
    >I have to find the part of the curve where it reaches the peak, not the
    >maximum. Can anybody point out a vi or function to find an
    >approximation to the peak?
    >
    >Best Regards
    >Svavar Von Eisland
    >
    >
    >Sent via Deja.com http://www.deja.com/
    >Share what you know. Learn what you don't.

  • HT5621 Does changing your Apple ID still work if the ID is part of Family Sharing?

    My Apple ID is part of a Family in iOS on my iPhone and iPad. I would like to change the Apple ID as I have a new email address and will discontinue the old one. I am concerned that this may cause issues for my Family members. The article HT5621 explains how to change my Apple ID, but it was written before Family Accounts were introduced as an iOS feature. Has anyone tried this?

    You need to use the old ID and password to delete the iCloud account. After you delete the old account, you can sign in with the new ID in iCloud.
    Have you seen this.
    http://support.apple.com/kb/HT5796
    iCloud
    iOS 6 and later: Go to Settings > iCloud.
    If you signed out before changing your Apple ID, enter your current Apple ID to sign in. The data from your iCloud account will download to your device.
    If you're still signed in with your previous Apple ID:
    Scroll down and tap Delete Account. Depending on what iCloud options are turned on, you'll be asked to confirm that you want to delete data from your device. To confirm, tap Delete. (If you're using iOS 7 and have Find My iPhone turned on, you'll be asked to enter the password for your previous Apple ID. Enter the password, then tap Turn Off.) The data will be deleted from your device, but not from iCloud.
    Enter your current Apple ID to sign in. The data from your iCloud account will download again to your device.

  • How to delete the applications in the "Updates" tab at the lower right part when you open the App Store?

    Hi, I bought the new Itouch 5 recently, i'm just wondering how can i delete the applications in the "Updates" tab at the lower right part when you open the App Store? I just want to delete the applications that i've already deleted but it seems that it is still posted at the "updates" tab ad i can't delete it. Please i need your help. Thank you for those who will reply.

    Try turning off &amp; on your iPod (sorry if that sounds dumb, but it might work)
    Or, since that's a matter of not refreshing, turn off your wifi&amp; reconnect
    Hope this helps

  • I have an iPhone 5 and when i lightly tap on the back top part of my phone it sounds like something is rattling inside. Only on the top part of the phone, not on the bottom. I am wondering if anyone knows what this may be and should i have it looked at?

    I have an iPhone 5 and when i lightly tap on the back top part of my phone it sounds like something is rattling inside. Only on the top part of the phone, not on the bottom. I am wondering if anyone knows what this may be and should i have it looked at?

    Definitlely have it looked at. That could be a hardware deffect on the maker(apple) so there could be a definite replacement option.

  • Mba sound: just bought my first mba and I have been using it in my house no problem...took it to my empty office today and I can hear a small vibration/sound coming from the upper left part of the keyboard...constant and rhythmical...ideas?

    mba sound: just bought my first mba and I have been using it in my house no problem...took it to my empty office today and I can hear a small vibration/sound coming from the upper left part of the keyboard...constant and rhythmical...ideas?

    Hi
    It's likely your fan,  It always runs on a MBA.  Mine is very quiet, others report some noise - here is one link.  There are lots of others.
    Hope this helps
    Cheers
    https://discussions.apple.com/thread/4381367?start=0&tstart=0

  • Creative Zen Sleek and the Now Playing-part of the firmw

    Hi,
    this week I got my Creative Zen Sleek. I'm very satisfied, except for one thing - the Now Playing-part of the firmware (the list with all the songs queued up). In the old Nomad Jukebox Zen firmware, the list was divided by artist or album name. On the Zen Sleek, however, the list is just going on without even showing which songs belonging to which album etc.
    This is really annoying me - would it be possible to fix this, or at least consider the possibility for this to be integrated in the next firmware upgrade?
    Sincerely
    Hein Haraldson Berg

    & Putting the X-Fi into Recovery Mode and selecting clean up seemed to fix the problem, but it does still come up randomly.
    The clean up puts the player menus back to their defaults though... any chance that in a future fix for the player, this wouldn't occur?

  • I am getting the following error message when i download CS6 Design Standard 'The message says" the file archive part of Adobe CS6 Design Standard is missing. you need all parts in the same folder in order to extract adobe CS6 Design Standard. Please down

    i am trying to download CS6 design standard. but it wont work. the second part of the download comes up with the following message "The message says" the file archive part of Adobe CS6 Design Standard is missing. you need all parts in the same folder in order to extract adobe CS6 Design Standard. Please download all parts."
    Does anyone know what to do?

    Do as it says: Put your downloaded 7z file and the *.exe in a proper folder, not just dump it onto your desktop or whatever.
    Mylenium

  • Does anyone know the power cord part for HP A532 printer? I need a replacement cord. THANKS!

    Does anyone know the power cord part for HP A532 printer? I need a replacement cord. THANKS!

    Here's the steps to follow if your printer isn't turning on.   
    If you've gone through all those steps and you still don't have power, there are a lot of places that sell a replacement cord and supply for that printer. 
    I am an HP employee.

  • 7. Re: What is the location for the swatches file in the illustrator product part of Adobe Creative Suite 3 Design Premium for windows (date and lenght)? File that manges its funcionallity.  Thanks

    Original posting: https://forums.adobe.com/message/6529108#6529108
    As per support suggestion:  The discussion is posting again to obtain answer from adobe staff
    ===
    Illustrator is not working as it should...
    I want them to compare the original size and date of creation with what I have installed on my computer... I have installed several times with my original CD and I tried once downloading the files from the adobe site (using my own license). I suspect the files has been modified or renamed on my laptop by an external unauthorized user causing the malfunction of the application.
    Customer services does not support CS3 anymore and the updates / patches in the adobe site does not solve the problem... They redirect me to the forums for support...
    Presently, my problem is that after creating a swatch and drag it to the swatch panel, it does not fill as it should a new form... Now, after deactivating and activating my license the swatch seems to fill the new form but when the filter that the swatch has is persistence in the next filling object created even though a different color is being used as a fill (X)... Help in the creation of a swatch over the internet just complicate the issue.
    That's why I would like to know whether updates on my product are being received or files are being replaced without my knowledge...
    Thanks...
    PS Do you know how to contact a staff adobe employer on the forums?

    I saw your post today. 
    Moving the hosts file to the desktop will make it part of a roaming profile?  That's means that activation will occur from any computer that are part and available of my microsoft local network.  How can I make sure that the program I access is the one located on my local C drive and not in a roaming profile in maybe a cloud environment or from an unknown equipment with access to my network without authorization. I have only 1 laptop where I install locally the CS3 suit
    My host file has not entries on it and even when trying to copy to the desktop the activation can not be completed, same problem.  Days ago I used the trial option instead of the activation, after trying to activate the whole product as you mentioned in your reply, the trial period remaining got back to the original 30 days.
    I have recently noticed that I have a roaming profile with a workspace file different to the one I have on my local disk (3 files basic, panel and type).  On the roaming profile I see a directory for adobe illustrator CS3 settings \ workspaces \ AIWSPrefs file which has different entries than the one I have at the local drive.  Normally I do not customize a lot the workspace or safe the setting used, I load the brushes, swatches, etc manually from the location they are on my local drive so the swatches and brushes directories on the roaming profile are empty instead. Adobe Eureka and Kuler palettes exists on the basic local file not in the roaming one.
    The directories on my roaming profile are:
    Acrobat
    Adobe Illustrator CS3 Settings
    Adobe PDF
    Adobe Photoshop CS3
    Color
    Dreamweaver 9
    Flash Player
    Fonts
    Headlights
    Linguistics
    Logs
    LogTransport2
    Save For Web AI
    Updater5
    Workflow
    XMP
    Inside illustrator roaming directory, the following files :
    AI Color Settings
    AIAppResources
    AIMenuFaceCache
    AIPrefs
    Brushes
    Composite Fonts
    Graphic Styles
    IllustratorFnt.lst
    Kinsoku
    MojiKumi
    New Document Profiles
    Plug-in Cache.ARTX
    Plug-ins
    Print Presets
    Save for Web Settings
    Swatches
    Symbols
    Transparency Flattener Presets
    Workspaces
    In the above scenario, which workspace and other functions files will take precedence?  How can I avoid the roaming profile?
    Not being able to copy files from the roaming profile to my local disk, I wondering how this roaming profile was created and why the files are in there.   Those files have a date from last month, the local files were more recently installed.
    Your comments will be appreciated at your earliest.
    Thanks in advance

  • I have a laptop PC and am trying to install my product.  After the download is complete I get an error that says "the file archive part of Adobe Photoshop Elements 13 is missing. You need all parts.

    I have a laptop PC and am trying to install my product.  After the download is complete I get an error that says "the file archive part of Adobe Photoshop Elements 13 is missing. You need all parts.
    Please help, I don't know how to do this
    Thanks

    you need both the exe (which you have) and the matching 7z (that you don't have, yet).  dl it:
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for

  • Page item (date picker)

    I have added a date picker to my report . and in the report source I've added a where clause to filter the report as per the selected date(which is one of the columns in the table) but there is nothing shown. where DATE =:P23_DATE when I remove the w

  • Material Consumption Report all expert requested to check my code

    Hi all guru Plz I am creating Material Consumption Report so  all expert are requested to check my code bcz its giving me wrong value change if nessary *& Report  Z_MATERIAL_CONSUPTION *&IEDK901096 REPORT  Z_MATERIAL_CONSUPTION LINE-COUNT 65(2)   LIN

  • HT202159 Error has occurred while downloading Mountain Lion

    An error has occurred and the button can not be clicked so I can't resume or restart download. btw got the free download because my mac is new.

  • Re-linking SmoothCam clips???

    Many SmoothCam clips in this film.  All have been analyzed.  Everything looking good.  Then I open FCP this morning and ALL the SmoothCam clips now say 'un-analyzed' ... a yellow bar over top. Where might be analyzed files be found, and is there a wa

  • Suggestions to improve TV viewing experience

    Hi.  Couple thoughts to improve the Xfinity TV viewing experience 1- It would be nice for the service to default to your favorite channels.2- Closed captioning is not easily accessible, taking 4 remotes steps.  A shortcut on the remote would be nice