Using the RK4 VI, had a question about implementation

Here's a link to the system I'm approximating:http://i.imgur.com/EXnswBm.png
The way it's going to be used, it will use current values to calculate values that will be important in the next iteration of a while loop. The values passed into it via the X0 input will be from the last loop iterate, and the values coming out will be sent into a shift register. The length of each iteration varies according to another VI, so it'll be flipping between 5 and 10 minute cycles.
My question pertains to that max[] that's in the DE for I1(t).
Since labview isn't a functional language, I know that whatever I put into the F(X,t) array will be interpreted as a string, and not parsed as a function. Since the max operates on one of the variables, I can't simply apply the max[] operation outside and just leave that space as a number, or a dummy variable.
So is there any way to do this? Even a case structure wouldn't handle it, because it'd have to be applied for every iteration of RK4, and not just to the VI as a whole

The fundamental issue is that max() is not a differentiable function so the system of equations is not one which RK would be expected to solve.  Any differential equation solver in LabVIEW or a text-based language will need to do something beyond the normal solving process to deal with the discontinuities created by max().
If I2 is reasonably well behaved near zero, creating two sets of equations for I2 > 0 and I2 < 0 and switching based on the previous value of I2 might work.  It will be much slower because you will need to stop and start the solution process.
The RK algorithms are documented in a number of references. It might not be too difficult to program your own with the max() function built in.
Lynn
You can insert images directly into your posts. Look for the tree icon in the toolbar above the message box.

Similar Messages

  • After downloading and trying to install the newest version of i tunes on my pc, I got an error message telling me: unable to locate component MSVCR80.dll. Now I can't use the version I had and obviously not the newest version. Any ideas about how to fix ?

    After downloading and trying to install the newest version of i tunes on my pc, I got an error message telling me: unable to locate component MSVCR80.dll. Now I can't use the version I had and obviously not the newest version. Any ideas about how to fix ?

    Solving MSVCR80 issue and Windows iTunes install issues.
    Thanks to user turingtest2 for this solution.
    Solving MSVCR80 issue and Windows iTunes install issues.
    If the above doesn’t do the trick entirely, then use the instructions in the following as it applies to the version of Windows you are using:
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    You may be required to boot into safe mode to complete the folder deletion process.

  • Thinking of making the PC to Mac Move, questions about Photos App

    Helped my mother on her Mac a little bit and got the Photos App working for her. Now my turn, I have been a die hard Windows user, but I will never use a Windows phone. (Can never give up my iPhone) I have been taking on a huge family project of scanning old photos and dating them. Along with digital photos from early 2000’s. I have probably about 10,000 photos. (And 20,000 more to scan) In Windows I use photo gallery 2012 to organize and date etc. my photos. The thing I like about photo gallery is that when I make a change to a photo it edits the original. The dates and GPS I add to the photo are forever saved to the file in the metadata.
    I am very tempted to move to a Mac. (I have an iPhone & Apple TV, I would like to sync across all my devices) I never like iPhoto, the idea of a “non destructive” editing means I have to import and export photos. I think the new Photos app might work for me.
    A few questions:
    If I move all my directories/folders of my photos to a Mac, will I be able to use the Mac Photo App to edit the photos and the changes I make be saved directly to the photo file in the respective folder? (Or are the photos then saved in a new location after being edited in the Mac Photo App?)
    If I turn on the iCloud Photo Library (on the Mac & iPhone) I understand all my photos will be uploaded to the cloud and any changes made on either device will be seen on the other. My question, if I make changes to a photo that is in the iCloud will that change be made to the original photo file that is stored on the Mac? (Basically I want to have at all times a hard drive copy for my personal backup)
    With the iCloud Photo Library feature I understand that any new photo I take with my iPhone is uploaded to the iCloud. Are the photos taken on the iPhone physically downloaded to the Mac? I know I can view them on the Mac Photo app, but I want to know if they are downloaded to the Mac and if so where does it save the new photos?
    Thanks,
    Nick

    I do not use ICloud so someone else will need to answer those questions.  For question one though...  Photos, like Aperture and Iphoto before it, puts your photos in its own filing system.  You would need to export the photos to get them back out of Photos.  You can export them to anywhere in your mac file system.

  • Important! Please use the public forum for your questions!

    Dear forum visitors,
    Please always use the forum mechanism to ask technical, workflow and creative questions and do not contact me and other Community Experts or Adobe employees with private messages. We all appreciate your trust and respect for our work, but there are two things you should consider:
    - Just like you, we all have a "normal" life. Sending private messages does not accelerate the process, if we are not around. Just like I was not here the last 24 hours 'cos I was visiting my grandmother and then dancing the night away, others have children and a family to take care of. And I think a bit of sleep is okay every now and then, too.
    - Results from private messages are not covered by the search engine and archiving mechanism for apparent reasons. Therfore at some point that info will be lost and future visitors looking for help will not be able to find it, meaning that we will have to answer the same questions over and over. This can of course not always be avoided, but in the interest of everyone, we should try to cut down redundancy and spent our time as efficiently as we can. Personally I don't get paid for this, so I'm investing my spare time. Again, I think doing a few other things in it instead of constantly monitoring forums would be okay...
    Thanks for your understanding.
    Mylenium

    Hello
    Iam tryn to use Adove but its telling me tha i
    h ave to accep end user license how can i do that can some one please help

  • How do you prevent a user from using the playback bar to skip questions?

    Hi,
    I am fairly new to Captivate and I had a question regarding the quiz feature in Cap4. I have some users testing the module for me and they are able to skip questions. I have done the following: 1. Made the quiz required 2. removed the review buttons.
    Is there something I am doing wrong?
    Shal

    Hello,
    You could hide the playbar, since it is not really needed for Question slides: on entering the first question slide you assign the value 0 to the system variable cpCmndShowPlaybar, and when you want to show it again, assign the value 1.
    Lilybiri

  • The time of download using the toolkit NXT for labview is about 5 - 8 minutes !!!

    I created a VI using the "LabVIEW_Toolkit_for_LMS_NXT_Getting_Started_Guide​" then I downloaded this to the NXT such as the Guied said but te time of download is  5 - 8 minutes.  then I did another program a litle bit more big and it never get dowloaded. It stoped when It was compiling...
    can you anybody help me?
    i attach the program I did... the second program is only to put on a motor...
    Attachments:
    Dibujo.JPG ‏4 KB

    In the installation instructions for the NXT Toolkit, it tells you to mass compile the toolkit and it tells you exactly how to do this. This is an essential step.  We provide the toolkit in LabVIEW version 7.1 format. If you use the toolkit in a later version such as 8.5, LabVIEW will load the toolkit and compile it on the fly. This leaves a lot of stuff in memory that will dramatically (and I mean dramatically) slow down the compile phase of the toolkit. 
    From the installation notes:
    To run the toolkit efficiently, you must mass compile the toolkit
    VIs in the version of LabVIEW in which you install the toolkit.
    Complete the following steps to mass compile the LabVIEW Toolkit for
    LEGO® MINDSTORMS® NXT.
    Launch the version of LabVIEW in which you installed the toolkit.
    Select Tools»Advanced»Mass Compile.
    Browse to the labVIEW\vi.lib\addons\NXTToolkit folder and select Current Directory (LabVIEW 8.x) or Curr Dir (LabVIEW 7.1).
    Select Mass Compile to begin the mass compile process.
    If you want the gory details on why this needs to be done, see my blog post: http://ideasinwiring.blogspot.com/2005/05/benchmar​king-labview-operation.html  (item #4)
    Joel Sumner
    NI-Shanghai

  • Attempting to deploy an application on iAS 6.0 sp3 on solaris using the iASDT; CLASSPATH and GUID question.

    When I attempted to use iasdeploy deploymodule, it copied the file to <iAS install>/ias/JAR directory. But if I try and jar tvf test.war, the jar throws an exception. It looks like the file gets corrupted. Any suggestions?
    So a began to use the iASDT tool to assemble and deploy a webapp (war) on solaris. Everytime I add a jar it says that there are external dependencies. I think thier may be some type of name collision on the CLASSPATH. I am attempting to include:
    jaxp.jar, xerces.jar, log4j.jar, jaxp.jar, jaas.jar, and some other jars. I think the classes in these files may be on the CLASSPATH already. Is there a way to see the classpath of the server? I have looked in the registry under ApplicationServer/6.0/...but there doesn't seem to be a java entry. I looked inside the kjs script and that really doesn't indicate anything either. I saw the directories /opt/iplanet/ias6/ias/classes/java and /opt/iplanet/ias6/ias/java/jars contain jar files. Are these on the classpath? Is there any documentation of the origins and versions of things that are on the classpath (xerces.jar, xalan.jar, ldapjdk.jar, etc.)
    Additionally, I thought all I really needed was to get a guid to put it into the ias DD xml files, but when I launch ./kguidgen I get the following response:
    guidgen: Could not get arp for <hostname>
    guidgen: Could not get arp for <hostname>
    Several attempts to create GUID failed
    Any ideas on this one I am stumped?

    Hi,
    Please correct me if I'm wrong in understanding your problem. You have a test.war file and you are trying to add a .jar file to it and deploy the application (using command line & GUI tool), and this is where you have a trouble of external dependencies. So you think that this is a problem of GUID, so you are trying to obtain a GUID number manually, but the utility throws "Could not get arp..." error.
    If this is the problem, then let us check first, if the application server is registered using the iASAT. Next, please give a try of deploying the .jar file initally & try to access it, then, undeploy the .jar file and deploy the .war file and access it. Next, remove the .war file and try to build a .ear file using both the .war & .ear files. Please let me know if this helps for me to investigate further on this.
    Regards
    Raj

  • Using the Dollar($) Sign in a User Function Implementation

    Hi All,
    Just a quick question: how could you use a dollar($) sign in the implementation (Oracle) of a user function? I'm asking because the table name that I'm using in the implementation happens to contain the dollar sign (I$_FACT_SALES) and from the results I'm getting now, ODI reads the $ as reference to a variable, therefore removing the $-sign from my table name upon execution (I_FACT_SALES). Is there something like a backslash or some other character that could be inserted before the $ so it would register as part of the table name?
    Any response would be greatly appreciated.
    Thanks very much,
    Marco

    You may have 3 options:
    1.) Try using the tablename in quotes "MY$TABLE" or may be MY$$TABLE using double $ symbol
    or
    2.) I found this code snippet : odiRef.getInfo( \\u0022DEST_WORK_SCHEMA\\u0022 )+\\u0022.\\u0022,\\u0022\\u0022)?. So on these lines you can use \\u0022 as a symbol for "
    You can see similar problem/solution/explanation in
    Re: Regular Expression wierdness - problem with $ character
    or
    3.) Change the Work Tables Prefix in Topology Manager > Physical Schema > Your_Schema
    from E$_ , C$_ , I$_ to something like ERR_ , SRC_ , INT_
    Edited by: Ace2 on Dec 2, 2009 9:57 AM

  • My Macbook (13" White) that I have had for three years recently had its screen die, and so I purchased a new macbook pro, since I cannot use the screen, how do I go about getting my information off of it such as my iTunes, iPhoto and other documents?

    The screen would fade into these weird pastel stripes, and if I pinched the sides a bit it would return to normal, but a few weeks ago it stopped returning to normal. I would like to get my iTunes and iPhoto contents and my documents of various sorts off of it and onto my new macbook pro. A friend of mine removed the hard drive and got the information like it was an external hard drive. Can I do this? I don't know if I can use my migration assistant application because the screen of my macbook won't let me see anything to even log into my username on the computer... Help?

    Firewire disk mode.
    Plug in a foirewire cable, most likely need a 6pin (400) to 9 pin(800).
    on the older machine, boot it up, and hold down the t key
    HDD should show up on the new computer.
    If you havent booted up the new machine, you could run migration assistant whith the above steps to pull the data off.

  • Where is the best place to ask questions about NetBeans 6 for Java?

    When it comes to Java discussions, all I can think is this forum, but what about Java Desktop Applications using NetBeans IDE 6?
    Question/Query 1:
    I just like to ask how I can make the Database Application Template under the Java> Java Desktop Application> Database Application:
    Well, the the nice Frame with prebuilt components are good, but how can we customize the Window Icon? Has anybody in this forum and particularly Netbeans 6 users encountered the same scenario?
    Question/Query 2:
    How can I make a splash page with such a Database Application template too?

    Hello Andy,
    we talk about Photoshop, or? In this case you should use Photoshop General Discussion
    You will find all the (other) communities by clicking "Adobe Communities" on the top of the window. Please have a look at
    https://forums.adobe.com/welcome (see screenshot) and/or open "All communities"
    Hans-Günter

  • Lost my  Iphone4, using my old Iphone3... question about syncing!

    Hi there,
    I hope someone can help me!
    I lost my Iphone4... and so I've had to dig out my old Iphone to use in the meantime.
    I synced my Iphone4 about a week before I lost it, so does that mean somehow all my stuff is safe on my computer?
    If I sync the Iphone3 with my Itunes... what will happen? I havent synced it because I'm concerned.
    Any info will be greatly appreciated.

    take a look at
    http://discussions.apple.com/thread.jspa?threadID=2208625&tstart=0

  • Just bought the MSIGE70-2PE had some questions/concerns

    I just bought the MSI GE70-2PE and i am curious  about a few things it seems to run very hot and i didn't know if this may or may not be a defective model... i mean its hitting when i play WoW  95+ C which i know is extremely hot and i have tried turning off turbo boost and lowering the battery to eco/power save and it still hits that. Also the wifi will randomly drop and i will have to turn it off and reboot to get it back.
    I was wondering if fellow owners have had this issue or know of any fixes to keep it lower temp.
    I understand its a gaming laptop but these temps seem too hot to where it could degrade the components over time also i am using a cooling pad and the laptop is not even a week old.
    Thanks so much
    Anthony

    Quote from: ant.p.johnston on 07-December-14, 23:48:45
    *thanks for the quick response.
    my router is LINKSYS e900
    and i have contacted MSI(USA) as well to see what they think of the issue.
    I was just wondering if fellow owners may have run into this issue and on the cooling pad i do have one
    Re-pasting cpu/gpu voids your warranty apperently but MSI do have premission in EU for owners of laptop to open it and do RAM upgrade or replace of broken RAM with new ones and so on but when it comes to repasting cpu/gpu would need you to send laptop to msi service so they can do it since that can apperently void the warranty if you do it yourself.

  • I requested a repair, but there was an error after clicking the button with my credit card info. I was still charged, but the form email I received the next day had incorrect info about my iPod Touch problem. How can I contact CS w/o paying $19?!

    My iPod Touch battery is not working. I requested a repair through the Apple Support. On the final page, when I clicked the button that puts the info through with your credit card number, the resulting page gave an error (I wish I'd have saved it!). Anyhow, I checked my credit card and it was charged, so I assumed the repair request went through. The next day I received a form email saying my problem was with "Sync with iTunes (Not iCloud) - Data Backup/Migration (not iCloud)" instead of the battery repair. It also says for iPod customers, to send your iPod to Apple - but I had requested the "iPod Coffin" to be mailed to me so I could send it back. Obviously there was an error between the request and what was received, so I'd like to ask Customer Service about it. However, I can't find a way to contact them. When I replied to that form email, I recieved an automated reply saying emails there were not read. Anything online asks me to pay $19 and I don't have the correct issues to request an exception. The closest store is over an hour away or I'd simply go there to ask. What can I do?! Any suggestions you have are much appreciated. Thank you!
    PS - The form email also says if I wait 10 days the repair request will be canceled. Does this mean my credit card will be refunded for the $85 battery replacement charge if it is canceled automatically?

    Thanks, but I've been on the phone with AppleCare US (where I am and live) and AppleCare UK. They continue bouncing me back and forth without helping resolve the problem.
    Perhaps someones knows how to further escalate the issue at Apple?

  • Hi, my name's Michael and I had a question about my iPod touch. I recently dropped it but I still have a warranty and Apple Support said they couldn't fix that my screen doesn't recognize my finger is on there trying to do anything?

    Hi, my iPod touch was recently dropped but afterwards I called Apple Support and they told me I have a 17 day warranty for my Apple iPod Touch, so then I asked them if I could send it in to get fixed but what had happened to my iPod was that when I click the home button and try to ''Slide to Unlock" it doesn't recognize that I'm trying to do anything else the only thing that I can do is press the "Sleep" and "Home" Buttons and nothing else. Anything you can do to help me please??

    Even if you were still under AppleCare warranty, it would not cover damage from a fall.
    That "17 day" warranty makes no sense, though. iPods have a 1-year free AppleCare warranty for service, and 90 days for free phone support:
    http://www.apple.com/support/products/ipod.html
    Apple can repair just about anything that might be wrong with your iPod, but it will cost you. Call, explain the problem, ask for a repair appointment at your nearest Apple Store (or get a case number and ask for instructions to mail it in for a repair), but get a firm quote on the repair cost before authorizing the repair (or mailing it in for repair).
    800-APL-CARE (800-275-2273)

  • Question about implementing a clock using a Timer object

    Hello all, I'm not sure if this is the correct forum to post this question but I think so, as it regards a Swing component. I want to add a timer (a clock that starts at 0:00 and keeps track of how long the app is running) to a frame. I am just curious if using a Timer is the proper way to keep track of time, and just repaint() the clock object every second? (or more frequently if desired)... or is there a better way to do this? Thanks in advance for any comments/feedback/help!
    Brian

    Hello,
    Timer is not accurate. You can use Timer to display your component repeteadly, and System.currentTimeMillis() at each call to deduce the elapsed time.

Maybe you are looking for

  • How do I change the apple ID assigned to an ipad?

    I bought my wife a new iPad, so I am going to use her old one.  I need to change so my apple ID is associated with the old iPad, how is this done?  Thanks.

  • Apple account hacked?

    I wonder if some one can help me. I am a I pad 2 user and recently updated to IOS 6. I never use the Message function on my I pad but a few days a go I tested it and senf and message to the I phone of my husband since I was wondering which account wo

  • No. of Foreign Trade data

    Hi All, In case of Export Orders we cannot combine   deliveries   into a billing   document as the header data - u201CNo. of Foreign Trade datau201D differs in the deliveries.Our requirement is to combine export related deliveries into a single invoi

  • Need more information on enable-local-dispatch parameter.

    We are using OCCAS Web Logic server to deploy our application. The content header information has fields wlsscid & sipappsessionid which are coming as default. Want to understand more how & when these fields are getting populated and their significan

  • Macbook freeze after Lion

    My Macbook Pro freezes every now and again, especially when using Safari. This happens after an upgrade to Lion. When I pop out the forced stopping window and give it the command to stop Safari, that window to freezes. Mouse pointer still moved thoug