In a RT motion and data system, what is the best variable handling structure(s)?

I built a system that applies motion control to two axes and also takes data from a third axis encoder. 
The program structure is parallel timed loops (one motion control loop, one data collection loop, one host communication loop) with front panel.
This is targeted to a RT target; there is no host program.
Now I am using global variables to pass information between the loops and for exchanging information with the front panel indicators and controls.  I think this is a suboptimal solution.  I am considering the following changes:
1) For communicating variable values (such as commanded velocity and position) to the motion loop, I will replace the global variable structures with onboard variables in the motion card memory.
2) For saving the data collected from the third axis, I will use an RT-FIFO structure in the RT controller memory.
3) I will eliminate the front panel from the RT program and create a separate user interface program targeted to the host PC.  Communication between these programs will be accomplished using the Simple TCP/IP Messaging Protocol as described in this document:
http://zone.ni.com/devzone/conceptd.nsf/webmain/0986799C984500F886256F170079411E
Global variables will be replaced with Motion onboard variables.
Before I start this chore, am I following the best practice?  Any advice on improving any aspect of this plan?
My System:
Windows XP on P4 PC ethernet to
PXI-8187 RT Controller
PXI-7350 Motion Control board
(2) servo axes with quadrature feedback
(1) additional quadrature encoder used as measuring probe
I do not have a DAQ card in this system.
Thank you!
Laine

Thanks Kristi.  I understand your recommendation.
Some of my variable instances are 4 or 5 SubVIs deep.  For instance, the main high priority loop calls MOVE.vi which calls CALC_ANGLE.vi, which calls CALC_MOVETIME.vi which calls CALC_VELOCITY.vi which uses the variable Initial_velocity.  If Initial_velocity is received from the host in the main program, passed to the high-priority loop using an RTFIFO, then bundled and kept in a shift register, what is the best way to get that information down where I need it?
Not only will I have to redeclare the RT-FIFO in each subVI, but I will also need to pass the reference value cluster down the chain as well?  This sounds messy and computationally expensive to me.  So my choices might be
1) Eliminate subVIs and bring everything to the top.  This is a rather large program, so could make quite an extensive top vi if all code is in one place.
2) Use onboard variables to store and pass values.  Are these less deterministic than RTFIFOs?  What is their primary purpose if not to pass data, or are they just to be used with motion card onboard programming?
3) Use global variables, but I think these are not deterministic.
4) Bite the bullet and pass the variable cluster down through the SubVI chain.  Is there an easier way to do this than what I describe above?
Have I made any bad assumptions or overcomplications?
Thanks.
Laine

Similar Messages

  • My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

  • Dw, css, and a template, what is the best way to create a 20 page website with a different header in each page?

    dw, css, and a template, what is the best way to create a 20
    page website with different header content on each page? i am
    trying to insert a specific image and background color for each
    header on every page. what is the easiest or best way to do this?
    thanks, bryan

    "mediastream13" <[email protected]> wrote in
    message
    news:f47bes$9om$[email protected]..
    > ok, murray, here is the site.
    http://www.helphotline.org
    > in I.E. 6 i can't see the background color behind the
    header images,
    I'm seeing a hot pink background (which is my browser default
    - so that I do
    remember to declare a background color). You need to add:
    body { background-color: white;} to your stylesheet, or into
    the imbedded
    styles on your page.
    In Firefox, the very top black section, #headertop is hidden
    behind the
    header image.
    > background of the date/time isn't stretching the full
    length of the
    > screen, and
    > the margins aren't working in the main content area. how
    can i put a
    > background
    > color behind the header images?
    I can see the header image stretching right across the page..
    so not sure
    what color is missing there.
    > is there anyway to download i.e. six on my computer if i
    already have
    > i.e.7? i
    > just want to be able to preview the site before i upload
    the changes. it
    > seems
    > everything works in i.e. 7.
    Yes, I used this and it works really well.
    http://tredosoft.com/Multiple_IE
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au

  • I'm buying a new Macbook Pro this week and am wondering what is the best way to copy over the software I have from my existing Macbook Pro to the new one? eg. Photoshop and Office etc. I no longer have the CDs.

    I'm buying a new Macbook Pro this week and am wondering what is the best way to copy over the software I have from my existing Macbook Pro to the new one? eg. Photoshop and Office etc. I no longer have the CDs.

    Ya know what I'm on a brand new MBP just about 24 hours old and you know whats been working amazingly for me. I have a 27inch iMac as well and i've just connected it to my network and been dragging files and apps across the network onto my new MBP. Its really working fast and its flawless. You could always do that option, Just go into sharing options and turn them on for both Macs. Then just click and drag. Of course they have to both be on the same network for this to be possible.
    Look at my network.
    Shared is what your looking at.  I click on there see all my computers files and then drag the ones i want form its folder to my MBP folders.  Hope that helps if your looking for a very simple way on a wireless network.

  • Everytime i try to open creative cloud installer i get a error code 22 i have tried turning off my firewall and no success. what is the best way forward?

    everytime i try to open creative cloud installer i get a error code 22 i have tried turning off my firewall and no success. what is the best way forward?

    is that the case-sensitive drive error?  Error "Case-sensitive drives not supported" or similar install error | Mac OS

  • Appl.  Hierarchy and Package Hierarchy - what is the Best practice ?

    Hi!
    We plan to create a Package Hierarchy in our system, but then come to think of the Application Hierachy is built the way we think of building the Package Hierarchy.  We planned to build a Main package called fex. HR and below a structure package called HR-PA and below that ordinary packages within that area. But should we rather create our own application hierarchy for this?
    Or should we assign the packages to Sap standard application Hierarchy in the HR area ?
    What is the Best practice in this area ? Have any tried to create their own hierarchies ?
    Regards, Tine

    Hi!
    You can create your own Application Hierarchy as well .
    From ABAP Workbench select Overview->Applic. hierarchy->SAP or Customer
    This is what SAP says about this :
    <i>The application component hierarchy is a method of splitting up the SAP System from a logical or <b>business</b> point of view. Packages are a method of modularizing the system from a <b>technical</b> point of view. This technical modularization can, but need not, match the logical division of the system. Assignments should be made however between these two views.</i>
    Regards, Tine

  • My wife and I share an Ipad.   We each have our own email address and calendar.   What is the best way for us to backup both accounts (we currently only have 1 ICloud account)?   Thanks for any help!    Alan

    My wife and I each have our own email address and calendar.  These are on one IPad.   The Ipad has a single ICloud account.
    What's the best way to backup both Calendars, etc?   Does ICloud automatically back up every account on the same IPad?  (I checked ICloud, but I could only find my stuff.)
    Thanks for any help!
    Alan

    First, you need to understand that there's a difference between "syncing" and "backup".  Backup is the saving of content and settings, where syncing is the bidirectional transfer of content for an account to a web-based server (like iCloud, Gmail, Yahoo, etc.)
    If you see your calendar in your iCloud account, that implies that you have set up your iCloud account to host (sync) your calendar, and perhaps contacts, email, and notes.  An iCloud account can only sync one user's information at a time so it is intended to support a single user.  You can have more than one iCloud account, and you can even have more than one iCloud account on the same device (but one has to be primary, and the secondary iCloud has limited capabilities), but a single iCloud account only supports a single user's content.
    Backup is the saving of your device's content and settings to use in case you need to recover these things, but you can't see the contents of your backup (just the size and device name).  You can backup more than one device to iCloud and you can backup to iCloud or you can backup to your computer, or both (one at a time though, you have to choose). 
    So, if your wife has her own email and calendar she can certainly do that in parallel to whatever account(s) you have for email and calendar.  But if you have only one iCloud account then only one of you can use it for email, calendar, etc.  But the backup of these accounts is really just a backup of the device's settings that link the device to these accounts. For example, if she uses Gmail then the backup of the iPad only backs up the fact that your iPad is set up to use her account, it does not backup the account itself (the content of her account is saved and preserved on Google's servers, not your device's backup).
    Does that make better sense?

  • HTML form Date field - what's the best way to capture it on the backend?

    Hi,
    What would be a good way to capture a text field that contains a date string?
    In my app I have a page with several text fields, that are populated by a calendar pop-up. On the server side I can capture them into a java.util.Date object, but Date is dperecated.
    Should I still use Date or is there a better way?
    I intend to use the date as part of an SQL query.
    Thanks.

    The class java.util.Date is not itself deprecated, however several of its methods are.
    For converting string -> date, you should use the class java.text.SimpleDateFormat. That allows you to specify format strings such as MM-dd-yyyy hh:mm:ss for converting date -> string -> date.
    If you are wanting to set day/month/year on the date object directly, instead of the Date methods setDay, setMonth, setYear, you should instead use the java.util.Calender class:
    calendar.set(Calendar.MONTH, 4);
    The calendar can then be converted to a Date object by calling calendar.getTime().
    If you are going to use the date as part of a sql query, I would recommend using a Prepared statement, and the java.sql.Date/java.sql.Timestamp class as well.
    To convert from java.util.Date to java.sql.Date)
    jva.util.Date utilDate = Calendar.getInstance().getTime();
    java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());cheers,
    evnafets

  • I want to move the move my photoshop elements photo database from an old pc to a new pc without losing the modified dates and tags created, what is the best way to transfer the database with all the information about the photos

    an old pc to a new one. How to I transfer the database file to save dates that have been modified and tags that have been created

    See:
    Use Backup, Restore to move catalog | Organizer | Elements 6 or later

  • I have the Canon Rebel EOS T3i and was wondering what is the best setting to take firework pictures.

    How can I get great pics of fireworks with my Canon EOS T3i??

    For this kind of photography, it is essential to have no movement of the camera at all.  Here are the settings that have worked for me:
    1. Tripod - this is an absolute must for any kind of night photography, including fireworks.
    2. Cable release - since you can move the camera just by pressing the shutter release, you have to activate the shutter without touching the camera.  You can do this either with a cable release or with an infrared trigger.  Be sure to get the correct cable or remote for your camera since they differ from one model to another.
    3. Use manual mode and activate Live View whenever possible.  The flipping of the mirror within the camera can also generate movement, so Live View is very helpful.
    4. Use an aperture of f/8-f/11.
    5. Use ISO 100.
    6. Focus at infinity - you can manually zoom during the exposure for an interesting effect.
    7. 4 second exposure to start and adjust up or down based on your results.
    8. You will likely need a wide focal length such as 35mm to start, and then adjust as necessary if you have a zoom lens.
    9. Other possible adjustments - set the White Balance to 5300K; set the exposure compensation to -1.0 EV. This is a full 1-stop underexposure to keep the firework highlights from burning out.
    I haven't posted photos to this forum before, but if this works, here's an example of what I mean.  This was shot last summer with a Canon 60D, 4 second exposure at f/11, ISO 100, 32mm.

  • Once and for all: What's the best way of recording vocals...

    hiya there,
    i'm listening to some of my own recordings and it keeps annoying me that i just can't get the vocals to be powerful.... And it's not my singing voice!
    I've put vocals by other professional singers over my instrumental tracks and it all sounds sharp and 'into it', whereas my vocals 9dubbed or not) keep sounding shallow and bleak. i use a good microphone, but that's it. How can i improve it all?
    Hope anyone can point me in the right direction...

    Yes, i suggest you to use a MIDI-Keyboard, even a small one (like my M-AUDIO KeyRig25) is good and fun to use. It's also better to use some specific Audio Plug-Ins which you can use in GB. There are many freewares around.
    Look here: http://www.macmusic.org/software/softwares.php?lang=en
    Here: http://www.gersic.com/plugins/index.php?daCat=-3
    Or here: http://www.dontcrack.com/freeware/
    Cheers!

  • JAR files for SQLJ and JDBC drivers: what is the best practice?

    starting a migration from IAS 10 to WebLogic 11g.
    Apparently the jar files for SQLJ are not on the classpath by default.
    java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into the lib subdirectory of the domain directory, or using a shared library reference? (usage of SQLJ is pretty prevalent in our apps, though we may be getting away from it)
    are the Oracle JDBC drivers on the classpath by default?
    if not, then the same question: put them into the lib subdirectory of the domain directory, or use a shared library reference?

    I'm looking at the setDomainEnv, especially the big note at the top:
    >
    # WARNING: This file is created by the Configuration Wizard.
    # Any changes to this script may be lost when adding extensions to this configuration.
    >
    and am getting squeamish about editing it...
    http://www.bea-weblogic.com/how-do-i-disable-wls-automatically-adding-to-classpath.html looks like the default behaviour is for WebLogic to put $DOMAIN/lib;$WL_HOME/common/lib/ext;$WL_HOME/server/lib/ext on the classpath; there is also a reference to setting weblogic.ext.dirs= when starting weblogic (which means I set the WEBLOGIC_EXTENSION_DIRS environment variable).
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/libraries.html#wp1067450 also refers at the bottom to using the domain /lib subdirectory.
    so am I correct that a good practice is to just put the jars I think I will globally need into $DOMAIN/lib, rather than putting them in $WL_HOME/common/lib/ext, $WL_HOME/server/lib/ext, or fiddling with the WEBLOGIC_EXTENSION_DIRS environment variable?
    Edited by: user8652010 on Feb 10, 2011 1:08 PM

  • What are the best Color "Display Settings" for both my Macbook Pro Retina and Thunderbolt Display??

    I have recently purchased a Thunderbolt Display for my MBPr (early 2013) and was wondering what were the best settings for both to obtain an equal color and graphic appearance. I want to have them identical for working on graphics and illustrations.
    Thanks

    I have the same laptop. There's nothing you really need to do to optimise the system. Perhaps just install the cuda drivers.
    It runs premiere like a dream.

  • My macbook 13 hard disk has been replaced with a new one. Unfortunately, i checked my cds and i dont have the installation os cd for it. what is the best thing to do?

    my macbook 13 recently crashed and i was able to replace the hard disk. unfortunately, i cant find any reinstallation cd for the operating system. what is the best thing to do now?

    Akinger wrote:
    Who said "download"?
    Buy Lion on a USB stick or ask a friend to download it for you and provide you with a stick:
    http://www.netzwelt.de/news/87609-anleitung-bootfaehigen-mac-os-x-lion-usb-stick -erstellen.html
    If you are lucky enough to live near an Apple-Store, the friendly guys at the genius-bar can surely fix your problem.
    It's not $24.99 on a stick, it's $64.99.

  • What is the best way to open emails and attachments without using wifi?

    For I-phone and I-pad, what is the best way to open emails and attachments without using wifi?  I turned off wifi in my settings but my boss thinks there may be another way and a better way to use something else instead of wifi.  Any help would be appreciated!  Thank you!

    Thanks!  That is a very good question you post.  My boss asked me that and I am assuming that he is having issues with using wifi wherever he is at.  My boss is the kind of person that when he asks something you look into it and ask him no questions...he's the only one asking questions!  But thank you for your response I will tell him the information you told me and hopefully that will help!

Maybe you are looking for

  • PHP Show if hides update fields, but they get overwritten with an empty string

    I have an issue with a page where some update fields are displayed depending on who is logged, for example: <?php if ($row_Users['UserID']=="101"){ ?> <input <?php if (!(strcmp($row_lodges['101_finalist'],"Yes"))) {echo "checked=\"checked\"";} ?> typ

  • Used iphone and need some help, please

    i got a used iphone and im tryin to set it up, but the screen isnt turning on, i mean there is little light but cant see anything. what do i do ?

  • Visor Deluxe Battery Drain

    So after getting software and crashing problems on my Visor Deluxe sorted out so it can be used as a nice ebook reader, it's now draining thru batteries at a fast rate (like 30 minutes...dead.). I've seen a number of threads from past years about thi

  • Can anyone Solve the JDBC adapter error :

    Hi experts!!!              Whn I run File(FTP) to MSSQL Server ( JDBC), I m getting an error <b> Receiver Adapter v1027 for Party '', Service 'BS_JDBC_R2': Configured at 12:16:42 2007-01-05 Last message processing started 12:17:09 2007-01-05, Error:

  • E6 and email behaviour

    Hi! I'm wondering that is anyone else experiencing the same. I have 2 mail accounts, another is IMAP and another is POP3. For the both I've set that they are retrieved once in an hour and between 8.45am to 10pm. During daytime, it works well. But the