Using simulations for online control?

Hi
When using Labview 8.2.1 what is the best way of implementing model based control, can the simulation environment, which has some nice transferfunction features be synchronized in a timed loop, to do online control in a real time system. I couldn't find an input in the simulation loop triggering the simulation with the timed loop rate. An example would be nice. Also is it at all possible to change integration algorithms, or should I make the desired adjustments myself.
Best Regards
soeren  

Hi soeren
1) If you double click the simulation loop and choose the 'Timing Parameters' tab, you have to check the 'Synchronize loop to timing source' box.
Then if you expand the inputs on the left hand side loop you will see the 'Source Name' appearing. This is where you can wire in an external timing source.
2) Create a timing source and wire it to the inputs of the timed and the simulated loop that you want to sync. The timing source can be the 1KHz clock Windows use
or the 1MHz clock that can be found in the latest NI Real time controllers.
3) Determine the rate at which the loops will run. The simulation rate has to be expressed in seconds and the timed loop rate will be in ticks ( for a 1KHz source the tick will be 1 msec). The photos attached depict two loops that are synchronized to run every 10msec. Please note that you need to choose a Fixed step solver from the simulation loop configuration box.
With regard to the integration block, it's behavior will depend on the ODE ( Ordinary Differential Equation) solver you choose. Therefore, you can play around with the simulation loop parameters to find out which method gives you the most meaningful results.
I hope that helped,
Kostas
Attachments:
SimulationTiming.PNG ‏26 KB
Sync_Timed_Sim.PNG ‏20 KB

Similar Messages

  • Use InDesign for online manual

    Our training team would like to use InDesign to convert paper manuals to online manual.
    What are the pros and cons of using InDesign for online manual. They also would like to have interactivity (e.g. exercises) created in certain part of the manual. Can it be done with InDesign? How easy is it to convert Word documents (it was originally created in) to InDesign and then to something viewable on SharePoint. What are the options in saving the files as interactive online manual? HTML? Flash? HTML5?
    Thanks for your advice,
    wfz

    Our training team would like to use InDesign to convert paper manuals to online manual.
    What are the pros and cons of using InDesign for online manual. They also would like to have interactivity (e.g. exercises) created in certain part of the manual. Can it be done with InDesign? How easy is it to convert Word documents (it was originally created in) to InDesign and then to something viewable on SharePoint. What are the options in saving the files as interactive online manual? HTML? Flash? HTML5?
    Thanks for your advice,
    wfz

  • Useful link for Process controlled workflow

    FYI Useful link for Process controlled workflow..
    http://help.sap.com/saphelp_srm70/helpdata/en/74/c0256bebb54f1c8dfb519d2908152b/frameset.htm
    Thanks!!
    Bharath

    Hi Peter Novoth,
    Can you please create this as a sticky thread, so that this will be us full for everyone..
    Thanks!!
    Bharath

  • COPA Assessment Cycle using KEU5 for multiple controlling areas

    Hello All,
    There is an organization with operations in several countries. There is a separate controlling area for each country. There is one controlling area, for instance, for Germany and another for Netherlands.
    A problem is encountered while executing transaction KEU5 for multiple controlling areas in parallel. For instance, when one user from Germany executes KEU5 for an assessment cycle for Germany controlling area and at the same time another user from Netherlands tries to execute KEU5 for a cycle for NL controlling area, the user from Netherlands encounters an error message u201C'Cycle XXXX 01.02.2008 cannot be started because run group 0000 is locked'.
    Apparently SAP allows assessment cycles for exactly one controlling area to be executed together. This poses a problem since the organization plans to implement SAP in several other countries (There will be one separate controlling area for each country as per the organization structure adopted by the company).
    Any ideas, views or suggestions on the aforesaid issue would be highly appreciated.
    Regards,
    Soumya

    Hi Soumya,
    Did you find any text in SAP Documentation saying that "SAP does not allow cycles belonging to different controlling areas to be executed at the same time"...?
    Pls find the following text from SAP Help...
    Parallel Processing of Cycles of an Allocation Type
    Use
    Parallel processing of cycles results in considerable time savings. To process cycles of one allocation type in parallel, they must be assigned to different cycle run groups.
    You define the cycle run groups in the cycle header data. You also assign cycles to the cycle run groups in the header data.
    To process the cycles of a cycle run group in parallel, start the cycles one after the other, if required, in different sessions.
    You are carrying out a cross-company code cost accounting and want to perform the actual assessment in the individual company codes in parallel. Create a cycle run group for each company code and assign the appropriate cycles to these groups. You can then carry out the actual assessment in the individual company codes in parallel.
    When you execute a cycle, you can start a consistency check. The system checks whether you are allowed to execute the selected cycles in parallel.
    Though I didn't come across such requirement, I feel, my earlier suggestion will work out...
    Srikanth Munnaluri

  • Does anyone use RH7 for online help on their websites?

    Hi,
    I'm finding that this product isn't usable for online help
    within a website. Using the RH_ShowHelp() JavaScript calling
    convestions triggers popup blockers on most of the major platforms
    (Windows/IE, FF, Mac/FF). I don't understand why this is happenning
    since the help and the page that links to the help are in the same
    domain. Requiring customers to manually reconfigure their popup
    blockers is not a viable solution.
    On the one where it works (Mac/Safari) I'm left with a very
    tiny window in the lower right corner. Expanding it shows the help,
    but the page in the content pane is the file-not-found page
    (clicking items in the navigation brings up the correct page). I'm
    also seeing on the Mac (FF & Safari) that the Index &
    Search areas aren't searchable like they are in Windows (no input
    box to search with).
    When we asked Adobe about this the answer was more or less -
    "that's how it works" and they gave us a link to the following page
    detailing the limitations by browser (notice that it hasn't been
    updated since 2004 and the newest IE is IE4).
    http://kb.adobe.com/selfservice/viewContent.do?externalId=rb_69353b&sliceId=2
    I was hoping there would be a new RoboHelp_CSH.js file (it's
    dated 2004) Ideally one that didn't rely on browser sniffing but
    instead checked for JavaScript capabilitites.
    We missed testing this part when evaluating the product and
    now it feels like a dead end.
    Needless to say we've started moving on to other help
    systems, but maybe someone can help save RH for us before we write
    it off completely.

    Welcome to our community, wjens
    Hopefully you realize that you aren't forced to use the
    WebHelp API to establish links to help.
    Take a look at the following links:
    Link
    one
    Link
    two
    Hopefully something here helps... Rick

  • Using LabVIEW for temperature control with AMREL SPS200-50-A022 power supply

    Hi, I hope someone can help me out. I'm an ME undergrad with pretty much no knowledge of LabVIEW. I am working a project which requires a temperature controller. Previously, we were using an SPS120-10 power supply from AMREL and a grad student wrote a LabVIEW VI which performed feedback temperature control. The VI would acquire temperature from a Benchlink which acquire the temperature from a thermocouple. The VI also monitor the output voltage & current and determine the power output and heater resistance from those values. When a desired temperature is set, the VI compares the actual temperature to the set temperature and adjust the voltage/current setting to achieve the desired temperature. The VI was designed to keep temperature deviation to within +/-0.5 deg C. I'm not sure of the data refresh rate, but it's on the order of seconds since the system has a small thermal mass and we're operating in the 800+ deg C range. When we were using the SPS120-10, the device used GPIB for communication with the PC. Due to higher power output demand for the heater, we switched to an SPS200-50, which only has an RS-232 port. First of all, I was wondering if someone could help me modify the VI so that it could communicate with the SPS200-50 through the serial port? In addition, the drivers for the SPS120-10 and SPS200-50 might be different. If modifying the VI to communicate through the serial port isn't enough, I would need to figure out where to modify the VI with the SPS200-50 drivers, which is provided by AMREL. If anyone would like, I can send you the VI files so that you can take a look at the block diagram and tell me where to modify it. I'm still not 100% certain I understand how to read LabVIEW block diagrams.
    Please let me know if you need any additional information. Any help would be appreciated. Thanks in advance!

    I have looked over your vi. First of all you have to do some changes in the "ARSPS Initialize.vi" See picture.
    The best way to check instrument communication is to send the *IDN? Command. The instrument will indentify itself in response to this command. The vi I have included is a labview example. Use this Vi to test your communication. Do not progress before this is working. The VI is also an excellent example on how to set up and close down RS232 communication.
    The VI "Tfeedbackpowercontroller-nolvdt-Dinh.vi" looks OK so I guess it will work then your RS232 communication with the SPS200-50-A022 is working
    good luck
    PS as mentioned before you will find all the RS232 details in the instrument manual
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.PNG ‏38 KB
    Basic Serial Write and Read.vi ‏29 KB

  • Why do people use SharePoint for Version Control?

    People have a few options for placing their FrameMaker documentation in version control. One option is to use the SharePoint CMS integration. What I don't understand is why someone would choose to use SharePoint for this. I have seen several points with complaints like "I have everything set up correctly but sharepoint still isn't working correctly for X reason...".    Now there are business reasons why you may have to use SharePoint. For example, the organization you work for is all based on Sharepoint and they demand the use of SharePoint as a business requirement.   However, if you have a choice, why not use subversion? I have been using it for years with my framemaker documentation. There are no configuration steps. Someone sets up the SVN repository and then you add the FrameMaker files. That's it; you are done. After that, SVN just works.  However, the bottom line is that Sharepoint CMS sounds like a nightmare. I can personally attest there are almost no problems with using a SVN repository.  From a technical standpoint, I have no idea what SharePoint could possibly provide that would make it worth the hassle it puts people through to do simple check ins and check outs.    Joe

    In my case, "business reasons" more or less nails it. Our company is implementing SharePoint and they're hoping I can use it for DITA.  They'll entertain other options only if there are good reasons why we can't make SharePoint work for this.  I've already started exploring the SharePoint API. Meanwhile, we have the SharePoint Connector working and we can check files in and out -- it's not that difficult.
    I've heard about Subversion, but I understand that it's mainly a source-control application. I have no shortage of those to choose from; our company already uses MKS and TFS. (In fact I'm using MKS to store one of my DITA projects.) SharePoint has an edge over them because it allows me to associate custom metadata with a library (say "topic type" or "audience"), complete with a list of fixed values like "concept" and "task" for our authors to choose from. I'm not sure if Subversion offers similar functionality.
    Where all of them fall down is in the area Nakshatra mentions -- dependency management. If I want to rename a file, or replace a Windows7 screenshot with a Windows8 screenshot that has a different file name, or I want to know everywhere a conref is used, or want an alert when someone changes the conref, I need an underlying database to make the file management system "DITA-aware." 
    I was all set to create such a database for our SharePoint implementation, along with a user interface -- very gradually, in small steps over a long time. FM's "FMDependency" field presents an unexpected complication for this plan, and I'm still absorbing that. 
    If Subversion is "DITA-aware" or has promising open-source plugins to make it so, I'm interested. Otherwise I still have to develop a database and UI, and in my case, I might as well try to do it with SharePoint. 

  • Using Subversion for version control

    Hi,
    How can i use Subversion for version conrol in my project?
    Zia.

    Hi, Diya
    Subversion is actually quite popular with RoboHelp authors. Start with this excellent article:
    http://www.adobe.com/devnet/robohelp/articles/robohelp_subversion.html
    Then, search the Source Control sub-forum for more info.
    Thanks
    John Daigle
    Adobe Certified RoboHelp and Captivate Instructor
    Evergreen, Colorado
    www.showmethedemo.com

  • Plant Simulation for PID Control

    Hi,
    This is my first major project with LabVIEW.
    I am designing a PID controller to control the speed of an electric motor.  It is required to keep the speed at an input value when the mechanical load changes.
    I would like to simulate the plant (i.e. the motor) with a first or second order transfer function, e.g. H(s)=b0/(s^2+a1*s+a0).  I would like to do this before I try closing the loop with the physical system in the lab (as I haven't applied any control theory before). 
    I have LabVIEW 2013 here.  In the "Control Design and Simulation" palette, I have "PID" and "Fuzzy Logic" (no others).  The lab has LabVIEW 8.6 with the same "PID" and "Fuzzy Logic" toolkits.  I don't think I need to run the simulation in the lab. 
    Is it possible for me to simulate a plant with an H(s)? 
    Thanks in advance!

    First of all, I strongly recommend you to try to see if you can update LabVIEW to the educational version of 2013. This has not only an up to date library, but also have the LabVIEW Control Design and Simulation Module which has several examples on Motor Control. You can find them in here:
    examples\Control and Simulation\Case Studies\Mechatronics\DC Motor
    examples\Control and Simulation\Case Studies\Electrical Machines
    In general, some universities/schools just need a student request to obtain the latest version of the software. Now, if you don't have access to it and you are stuck using LabVIEW 8.6, you can try to use the following in:
    <LabVIEW 8.6>\vi.lib\addons\control\advanced\continuous linear.llb
    There you will find the Transfer function.vi that allow you to simulate a second order model. Then you can use the PID VI to closed the loop using shift registers. Keep in mind that your model can only have the order of the numenator smaller than denominator, otherwise the simulation won't be correct (that is the reason we have the Control and Simulation Loop).
    Hopefully this will help you...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Interface using telnet for instrument control

    I'm trying to create a GUI front-end program for accessing instruments and equipment on routers. The first step would be to create a menu of telnet sessions that the user can select from. Maybe a pull-down menu that can select any site (router) in our district. I'm not sure how to either create a telnet session or pull-down menu using LabView. Any suggestions would be appreciated.

    There's various types of pull down menus. There's controls like the menu ring, dialog ring, text ring that you can programatically populate using a property node. You can also create your own run-time menu. There are shipping examples for all of these. Select Help>Find Examples.
    The easiest way to implement telnet sessions is to buy the LabVIEW Internet Toolkit. It comes with an example tlenet client. However, you may not need this. VISA supports TCP/IP instruments that you can add and share from MAX. Then, for any instrument that has an instrument driver written using VISA calls, communication is just like using a local GPIB or serial instrument. Utilizing a driver is much easier on the e
    nd-users since they don't have to know the command syntax in order to make measurments.

  • Using ACS for change control

    I'd like to set up ACS server (integrated with Windows Active Directory) for router and switch so that all network administrator could use their active directory account to access network devices… and all activities will be logged on to ACS server. Currently we are sharing local administrative(on router and switch) account and I don’t have the visibility of who is doing what. The idea is to have more tight change control.
    I'd like to have security group set up in Active Directory and have all the network admins within, and have them to use their network account to log into routers and switches. Is this possible?

    Thank you, in that case I have some more questions(if you don't mind) to ask about your instruction.
    1. I only have RADIUS server(ACS 3.3). Do I need to purchase additional TACACS+ to accomplish this? or you just want me to add additional TACACS+/RADIUS attributes enabled per user?
    2. Is it possible to map 'Security Group' object instead of individual user?
    3. Please send me a sample CLI configuration for router(or switch).
    Thank you very much for your help.

  • Using aliases for indicators, controls, procedures and calculated channels

    Hello,
    I noticed that aliases do not show up in the workspace for indicators and controls, and in the system explorer for procedures and calculated channels. Is there a way for them to show up? I need to use aliases because I would like my system definition to control multiple test systems (which have different CAN signal names). Otherwise my system definition would break whenever I switch to a different CAN database. I thought the inability to address aliases was limited to the right click configurable controls add on, but it looks like VeriStand natively cannot address them in the areas that I'd like as well. Any recommendations would be welcome.
    Thanks.
    Solved!
    Go to Solution.

    You are correct that you cannot use Aliases within a System Definition file for mapping purposes. This is an area that we hope to improve in the future. The initial design of aliases was to serve as a public interface for the Workspace, stimulus profiles, and so on. However, it is certainly a valid use case to want to use them as an interface within a System Definition.
    One possible workaround would be to create a set of User Channels that act as your public interface in your System Definition. Always use your User Channels in all procedures, calculated channels, and so on. Then map your CAN channels to these User Channels. Whenever you update your CAN database, you only need to remap the new CAN channels to the appropriate User Channel. You could also automate this activity by importing a tab-delimited file in the Mappings page. The one downside here is that your target will take a little extra time to process these mappings.
    Jarrod S.
    National Instruments

  • Using Repository for Version Control

    I am wondering if I can use Oracle Repository for Source Management for third party development tools, e.g. Powerbuilder.

    Hi,
    DeltaV has been ratified as an Internet Draft and has an RFC number. The deltaV work is progressing in the SCM team, but I'm afraid I don't have any dates or even know for certain if or when this will be made available.
    There is still no support for SCC either within JDeveloper or OSCM (although we're considering adding support for it now in JDeveloper on Windows to facilitate visual source safe integration).
    If you're trying to integrate OSCM into an IDE, it may be worth finding out if the IDE you're using supports running external commands. If so, you should be able to invoke the OSCM command line tool as a basic level of integration.
    Thanks,
    Brian
    JDev Team
    We have the same issue. Brian (or someone from Oracle), could you check that this is still the case and also see what progress there's been on the DeltaV implementation. For example, is it scheduled for a specific release.
    We're still on 4.1.1, so I'm not sure what's in the 9i release (and I don't see much documentation on OTN about it).
    -- jim

  • Which operating system is best for computer control using LabVIEW

    I am using LabVIEW 7.1 and want to write a program to control a system of pumps, heaters, and  compressors.  I am wondering if using Windows XP is a bad thing, given how many background processes computers tend to use these days.  I don't want my computer to slow down for intermittant checking for updates, or any other sort of routine maintenance computers are set up to do.  I have heard mixed things about windows reliability and computer control, most of which is people saying windows could crash and completely ruin my tests.  Does anyone have any advice on the best operating system to use for continuous computer control of my system? 

    If you plan on using a desktop PC for control type applications, then your best option in terms of performance will be with a Real-Time operating system. Windows is not deterministic for many reasons. Determinism involves the ability to respond to an event within a specified amount of time with an acceptable amount of error (jitter). First of all, Windows is not deterministic because it has to service mouse and keyboard events, as well as anti-virus software, automatic updates, etc.
    You can, however, convert an existing desktop PC to a Real-Time target with a Real-Time OS and use it for your control type application with the deterministic behavior of PXI, Compact FieldPoint, and other Real-Time targets. Check out this link for more information.
    On a side note to a previous reply, using the LabVIEW Real-Time module on Windows XP won't make your application deterministic. Your best bet, as others have noted, is to use the LabVIEW RT Module on an RT OS with good RT programming practices (avoiding memory allocations, etc.).
    Jarrod S.
    National Instruments

  • Completely GUI for Nonlinear control system

    Hi,
       I am working on nonlinear control system particularly for linearization part.My problem is that i have 4-5 nonlinear equation like that 2*x1^2+3*x1*x2+x3 - 2*u.I want to make GUI in which User chage fully equation with constat,co-efficient.For that i use string and it is working.Linearization is process that gives us A,B,C,D matrix which use for linear control sysytem.
    In Labview Control design toolbox have linearization .vi which solve.But in this make subsystem in simulation loop.which not make fully GUI.I also use mathscript but no command find.
    Finlly in MATLAB have command Jacobian,Diff. Is there command in Mathscript for Differentiate equation.
    OR how i call .m file in labview if i made code in labview.

    If you plan on using a desktop PC for control type applications, then your best option in terms of performance will be with a Real-Time operating system. Windows is not deterministic for many reasons. Determinism involves the ability to respond to an event within a specified amount of time with an acceptable amount of error (jitter). First of all, Windows is not deterministic because it has to service mouse and keyboard events, as well as anti-virus software, automatic updates, etc.
    You can, however, convert an existing desktop PC to a Real-Time target with a Real-Time OS and use it for your control type application with the deterministic behavior of PXI, Compact FieldPoint, and other Real-Time targets. Check out this link for more information.
    On a side note to a previous reply, using the LabVIEW Real-Time module on Windows XP won't make your application deterministic. Your best bet, as others have noted, is to use the LabVIEW RT Module on an RT OS with good RT programming practices (avoiding memory allocations, etc.).
    Jarrod S.
    National Instruments

Maybe you are looking for

  • Can't get 2 ipods on same account to work anymore!

    My partner and I both have an iPod touch and we've always used the same account since we got him one. Now, having both updated to v5.0, I can't get past the final step of the update process because when I try to update the apple id it tells me that t

  • FrameMaker and Scripting?

    Hi, I need to make a batch process to import and format some text files. I am able to do this with InDesign javascript, but not sure about Frame. I'm not finding alot for scripting or plug-in development for FrameMaker. Does FrameMaker even allow for

  • AMT not recognized in OS 10.5 Leopard

    Problem: AMT8 usb midi interface is not recognized in Audio Midi Setup on Intel iMac running OS 10.5.1 I am using the latest AMT8 driver from "EmagicMIDIDriver170.dmg" - which is the last OSX driver made available by eMagic. is there a "Universal" ve

  • Dell Personal All-In-One Printer A960 compatibility?

    So, I'm giving my mother my Powerbook G4, but she needs it to work with her Dell A960 printer. Is there a way to get it to work? Thanks a bunch, Nick

  • Draw table with sapscript

    Hi all, My requirement is to draw a table with 4 rows and 5 columns. I tried to code like this : /E BOX /:BOX HEIGHT '0.5' CM FRAME 10 TW /:BOX XPOS '.48' CM WIDTH 0 TW HEIGHT '0.5' CM FRAME 10 TW /:BOX XPOS '.78' CM WIDTH 0 TW HEIGHT '0.5' CM FRAME