Is it possible to simulate large-scal​e non-linear systems using the Simulation Toolkit?

Hi,
I am new to LabVIEW, having used Matlab/simulink for a few years. I am trying to simulate a relatively complex non-linear vehicle model. In Matlab/Simulink I would use an m-file to describe the system equations (i.e. x1_dot=..., x2_dot=..., etc.). Is there a similar method in LabVIEW? I have got a simple simulation running using the 'eval formula node', a very ungainly method of substituting variables, and an integrator in a 'simulation node'. It takes about an hour to run a simulation that takes 3 seconds in Matlab. I just need to know if it is realistic to do large-scale simulations in LabVIEW, or if it was not designed for that and I should persuede the management to go
back to Matlab!!!
If it is possible, where can I find help on the subject? I have spent a long time looking on the web and come up with very little.
Many thanks in advance,
Paul.

If these are simple differential equations, easiest would be a for loop with a bunch of shift registers, one for each x1, x2, etc. containing the current values.
In your case, you would calculate all the derivatives from the instantaneous values inside the loop, then add them to each value before feeding them to their respective shift register again.
The attached very simple example shows how to generate an exponential decay function using the formula dx/dt= kx (and k is negative). The shift register in initialized with the starting condition x=1.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
DiffEQ.vi ‏33 KB

Similar Messages

  • Hi. I'm planning to buy an iPhone 6 handset only in America. No network. Is it possible? I'm British and is going to use the handset in United Kingdom using a local network in Uk. Thanks

    Hi. I'm planning to buy an iPhone 6 handset only in America. No network. Is it possible? I'm British and is going to use the handset in United Kingdom using a local network in Uk. Thanks

    None of the iPhones currently being sold in the US is carrier unlocked, so no, they will not work.

  • Is it possible to force 16/32-bit stack alignment without using the optimizer?

    The compiler emits code targeted at the classic Pentium architecture for the -m32 memory model.  I'm running into problems mixing Sun Studio compiled code with code built with other compilers because the other compiler builds under the assumption that the stack is 16-byte aligned.
    The only way I've found to force Sun Studio to comply with that restriction is with -xarch={sse2a,sse3,...}, but this causes the code to pass through the optimizer.  As noted in the documentation, if you want to avoid optimizations you must remove all flags that imply optimizations -- that is to say, there's no way to disable optimizations once enabled.  This should not, however, be treated as an optimization because it's an ABI requirement.
    I've scoured the documentation, spent many hours googling, digging through forums, and asking questions.
    The best I've come up with is the -xarch option which is sub-optimal because it has side effects.  I tried -xchip=pentium4 (this is what my other compilers have set as their default target), but the generated code doesn't force 16-byte stack alignment.
    Is there a way to force the compiler to emit code conforming to a different ABI without using the optimizer?
    -Brian

    Thank you for your response.
    I hope you won't mind my asking: do you have a way to prove that it's not possible to force 16-byte alignment without using the optimizer?  I ask because your username / profile don't give the impression you work for Oracle, so while I think you're probably right it's at least possible that we're both mistaken.  I haven't been able to find any documentation on either stack alignment or altering the targeted ABI short of using the -xarch flag, and even there the details are fairly sketchy.
    -Brian

  • Is it possible to add text to a non-fillable form using Reader DC?

    TLDR: Can I add text to a form (e.g., fill it out) using Adobe Reader DC on Windows, or can that only be done with "fillable" forms?  If so, how?
    I'm attempting to fill out a fairly lengthy "paper" form.  The form is not a fillable form, it is a government form that is downloadable for printing but for whatever reason the government agency chose not to enable the "fillable" feature. 
    On my Mac, I can just use the "text box" tool in the Preview app to add all of the text that I need to complete this form. 
    On Adobe Reader DC, which is installed on my Work PC running Windows 8, nothing happens when I click the "fill and sign" button and the features displayed in the online tutorial simply don't show up.  There's no text tool.  I just see the "hand" icon.  When I right-click, I get an option for the Select tool, which enables me to select text, but doesn't allow me to add a text box.  The web tutorial says there should be a menu somewhere with an icon to add a text box, but that icon is just straight up missing. 
    I am very confused by this software.  I am not an idiot with computers; but I am a bit old, and I'm more used to keyboards, toolbars, and windows than this "pane" based touch-oriented approach.  The toolbar up top seems to be limited to a "pane selector" between Home, Tools (which just reveals a panel of icons most of which are links to cloud services that I don't want), an then a few file handling icons.  On the right there is a little panel that says "get started" and offers only two clickable functions, "Send & Track" and "Get Others to Sign" neither of which reveals any text tools. 
    Now, the answer to my question very well may be "no" which is fine, I'll just keep using my Mac for the task since I know that it works, but I'd really like to be able to leave my personal computer and get everything done within Windows.  Surely this isn't one of those things that can only be done on a Mac or with expensive third-party software on a PC.  But the web seems to insist that this is a thing that should be both possible and simple.  Is it?

    You can try the comments tools.

  • It is possible to assign value range to non key fields in the table?

    Hi,
    I want to give some range of values to the fields which are non key fields in the table.
    is it possible?
    can anybody tell me the procedure.
    Thanks in Advance,
    venkat

    HI,
    It is higjly possible in case of Z-table. but in standard table you can't make any modification.
    You assign the value range to the domain of field.
    go to SE11 and open the database table.
    Select the Data Element of the fieldto which  you want assign the range.
    Click on its domain .
    click on Value Range tab.
    Set the range.
    Regards,
    anirban

  • Is it possible to receive IDOCs from a non-SAP system?

    Hi,
    I'm facing a problem where I have to configure SAP MII (12.0) to receive IDOCs from a non-SAP client. Is it possible? I'm dealing with a system named Hydra (developed by MPDV) and I'd like to know what I should configure in Hydra systems in fields like: PROGID, GWHOST, GWSERV, SYSNR, CLIENT etc.
    Anyone can help me?
    Thanks a lot in advance

    Unless Hydra emulates ECC sending IDOCS, then you just might want to use the WSMessageListener (http://help.sap.com/saphelp_xmii120/helpdata/en/45/6a86ac88130dece10000000a11466f/frameset.htm) and configure your message processing rules accordingly.

  • Is it possible to have 2 display names (one for internal use; the other for external use) in Active Directory?

    The idea:
    When communicating amongst our own staff via email we'd like to see our display names in this format:
    Firstname Lastname (Division/Department/Branch/Unit)
    Whereas, when we send emails to people outside the company, we'd like to be seen as:
    Firstname Lastname (Company Name)
    Is this technically possible?
    Regards,
    Anthony

    Please read about Exchange Simple Display Name if you are using Exchange in your environment. It should be suitable for your needs, but as far I know not every Exchange version support it.
    In Exchange 2003 this Simple Display Name was at Advanced tab of user, but now..
    With Exchange 2013, SimpleDisplayName is configured using Exchange Management Shell (EMS)
    Example:
    Set-Mailbox ALIAS -SimpleDisplayName $True
    ..and as with Exchange 2007/2010, you will need to enable UseSimpleDisplayName on RemoteDomain.
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Is it possible to have a Lion OS and snow Leopard using the bootcamp?

    I bought a macbook pro 13" 2011. I have other programs that will run only in Snow Leopard OS just like Logic Pro 8. Is it possible to install snow leopard aside from my current Lion OS? How to install? Is it possible to use both OS in my mac? I need your help. Thanks!

    OOPS!  I just noticed you actually have Lion, and want to go back to Snow Leopard.  That may or may not work.  The first test would be to see if you can boot your new MacBook 13" from a Snow Leopard installation DVD, or from another Mac in Firewire Target mode, or a bootable external Snow Leopard disk (SuperDuper or Carbon Copy Cloner created).
    If that works, then Yes, but before trying anything make sure you have full backups (SuperDuper or Carbon Copy Cloner, or even TimeMachine).  2 copies would be even better.
    Bootcamp is not needed.  Bootcamp is an aid to installing and running the Windows OS
    You can install Lion on an exteernal disk, and boot from that by holding down the Option key during boot.
    You can repartition your internal disk so you have 2 partitions.  You restore your Snow Leopard backup to one partition, and install Lion on the other.  You can choose to boot into either partition by holding own the Option key during boot.  You could also use System Preferences -> Startup Disk to switch between Snow Leopard and Lion.
    You can use virtual machine software (VMware Fusion, Parallels, VirtualBox) on Snow Leopard (does not work the other way), then install Lion in a virtual machine (your MacBook should have a minimum of 4GB if you are going to try this).  This would allow you to run Snow Leopard and Lion at the same time.
    You could buy one of those kits that replaces your DVD drive with a Solid State Disk (SSD), and instlal Lion on the SSD, and again boot holding the Option key or use Startup Disk system pref to switch between the OS versions.
    Message was edited by: BobHarris

  • Is it possible to update my Creative Suite or must I use the Cloud? [was: Is this real?]

    Is it possible to update my regular CS? Or do I have to use this cloud-stuff with no alternative?

    Your concerns are justified.  Adobe will no longer provide you with meaningful tech support.  I have an office with 5 designers and CS6.  i was forced to upgrade to Creative Cloud after a few of the users could no longer work on some important documents.  Adobe support only response was that they could not help us unless we upgraded to CC.  Once we upgraded the problem continued and they finally helped us solve the issue.   Its very simple.  Adobe doesnt want there customers to own anything.  You must buy the software for a least a year via subscription and have your work held hostage.  My advise is to start finding and using other tools.  We have started researching other tools. 

  • Is it possible to transfer existing messages from iPhone to Mac using the new iMessage app?

    I want to store my previous messages on my computer and I was wondering if that is possible.

    Althought,you can use bluetooth to transfer photos,files from iPhone to Macbook,However,it is so slowly,if you want to quickly copy photos/files from iPhone to Mac,you can use tools or software to help you,such as iStonsoft iPhone to Mac Transfer,This is a very professional tool,Hope this helps!
    How to Transfer photos/files from iPhone to Mac

  • Possible to migrate installation w/ SLD to new system using 'tar'/'untar'?

    I have a CRM installation with TREX, that I need to move from one unix system to another (same patch level). As SLD is setup, can I 'tar' the entire installation on the old system, 'untar' the bundle on the new system, and bring the SAP setup back into function mode? It should be doable if SLD is not setup. But since there is SLD bundled in the setup, I am not sure if 'tar' is the way to port the installation. I can give the new system the same hostname, but ip address would be different. Any pointer is highly appreciated! Many Thanks!

    Hi,
    You can perform asystem copy, even SLD can be set up later accroding to your need.
    Regards,
    Vamshi.

  • Not possible to print a SWF in a PDF document using the Print command in Ad

    Have a PDF with 3 pages, page 1 and 3 contains text and the 2nd page contains a SWF animation made with Xcelsius 2008. When printing the document using the Print function in Adobe the 2nd page is always empty, the SWF is never printed.  To be able to print the 2nd page containing the SWF animation I must use the print function in the Flash player (right click on the SWF animation).
    This problem should, according to Business Objects, be solved with the new version of Adobe Reader 9, but the problem still appear.

    I have seen this.  Adobe 9 cannot print embedded flash objects.  Xcelsius Engage/2008 includes a print button you can include on your dashboards to allow you to print them from your pdf files.

  • I have Adobe Acrobat X Standard, I need to be able to save pdfs in Acrobat X.  Is this possible?  I've been able to do this using the trial version of Acrobat XI Pro but the upgrade costs are significant.

    See title.

    If you mean that you want to create PDF files, then yes, your version is capable of doing that.

  • In iPhoto 11 imported tiff files remain tiff after editing.  I need to convert to large file jpegs. How? using the "export" function they become too small

    I thought imported tiff files would be converted by iPhoto to JPEGS in previous versions of iPhoto.  this might have been a disadvantage but my current project requires JPEGs as the final product.
    thanks for any guidance
    Jim

    Drag the photo from the iPhoto window to the desktop or export as kind = JPEG
    As to too small - what is too small?  The pixel dimensions of the exported JPEG will be identical to the original TIFF - the file size is smaller because JPEGs are compressed - which of course reduces file size - which of course is the reason that JPEG exists
    LN

  • Is it possible to rotate and scale an image?

    Is it possible to rotate and scale an image with Grapchis2D at the same time?
    One method call to do it all?
    lets say the original image size is 200x200
    I can scale the image with
    Graphics.drawImage(image, 0,0, 500,500,this);
    But now i need to rotate it as well and keep the new size which is 500x500
    how do i do that ?

    Have you already tried the scale(double sx, double
    sy) and rotate(double theta) methods of Graphics2D?no.

Maybe you are looking for

  • Propagation error

    how to clean up propagation error? 1- Oracle version 9.2.0.1.0 2-I have three instance bd1, bd2, bd3 in different machines 3-The 3 instance can communicate between them via network. 4-I have setup succefully streams environnement bidirectionally betw

  • IMac G3 VGA to s-video

    I have searched for, but cannot find, an adaptor which will allow the connection of my iMac G3's video out port (VGA) to the s-video input on a TV. I don't need sound output. I have a mini adaptor for my G4 iBook which does the deed... but an iMac G3

  • How to unblock my ipod touch? Anyone?

    Hay, I have a ipod touch that is blocked because my little brother pressed a wrong access code to many times. i have tried to connect it with iTunes but then it says that i have to fill in the access code on the ipod first. But that's not possible. D

  • Archivelink Signature Public Exponent

    Hi guys, I am trying to generate a certificate for signing the URL for the Archivelink interface. The documentation stated that the public exponent has to be equal to (2^16)+1. Does anybody know how important that condition is? The reason I am asking

  • Actions in Activty

    hi all i have an urgent requirement in actions in activity: its like this that if i am creating an activty for me ,i want to send myself a reminder that i have to perform the same activity after n number of days.how is it feasible through actions ,wh