Distribution dynamically to user input; best practices?

Hi all

Using LabVIEW 2013 (32 bit). Taking my first foray in LVOOP and I am currently designing our user input. This user of VI entry is distributed dynamically. The goal is to allow the user to "mix and match" different parts of the application as much as possible. The request is for a controller of a biological system. In particular, we have the notion of 'Controller', a 'model' and a 'Patient'. All patients have the same characteristics, but the controllers and models only share an external interface. Some controllers can control to a set point, some of a range, some to a set of ranges depending on the time and the current status of the Patient. As such, I would like to have some kind of dynamic dispatching on the phase of input from the user. The way I thought to do was via sub-panels, with a tab control to allow the user to move between different parts of the installation.

This is a model of the façade of the user input:

http://i.imgur.com/sMZ7xFD.PNG

So if you have a controller of some, this interface panel controllers user come in a secondary, through a kind of dynamic distribution. This would allow you to move seamlessly between the controllers and have always a consistent user experience, for example, 1 controller can have you choose a range to control (two digital figures), while the controller 2 can have a control point (just a digital), as follows:

http://i.imgur.com/6QpKXco.PNG

http://i.imgur.com/u2mla8N.PNG

You can assume that we have access to instances of the controller class, the class Patient and the model class at this stage of the dynamic allocation.

When I tried to implement this, I came across some problems:

http://i.imgur.com/2ZZqdka.PNG

The error is: "call by reference: refers to a dynamic member VI; The stream of strictly typed reference VI entry connector includes a terminal dynamically a reshipment, which is that he is part of a method of a class of LabVIEW. Dynamic member screws are not supported in this version of LabVIEW by calling the reference node. »

I understand the problem, it's may be too general for LabVIEW manage cleanly, but is there a way for me to maintain the "kindness" of dynamic distribution in this case accurate?

What I did do a VI 'protected' which was the dynamic distribution to get the reference to the GUI VI.  This way I could make the object show GUI of the parent if I wanted to rather than making yet another screen.  This VI was called by a public VI that only the top parent class should manage (static shipping).  I did not use the asynchronous call, but I think it would work.

Tags: NI Software

Similar Questions

  • Best practices - dynamic distribution of VI with LV2011

    I'm the code distribution which consists of a main program that calls existing (and future) vi dynamically, but one at a time. Dynamics called vi have no input or output terminals. They run one at a time, in a subgroup of experts in the main program. The main program must maintain a reference to the vi loaded dynamically, so it can be sure that the dyn. responsible VI has stopped completely before unloading the call a replacement vi. These vi do not use shared or global variables, but may have a few vi together with the main program (it would be OK to duplicate these in the version of vi).

    In this context, what are best practices these days to release dynamically load of vi (and their dependants)?

    If I use a library of project (.lvlib), it seems that I have to first build an .exe that contains the top-level VI (that dynamically load), so that a separate .lvlib can be generated which includes their dependencies. The content of this .lvlib and a .lvlib containing the top-level VI can be merged to create a single .lvlib, and then a packed library can be generated for distribution with the main .exe.

    This seems much too involved (but necessary)?

    My goal is to have a .exe for the main program and another structure containing the VI called dynamically and their dependents. It seemed so straighforward when an .exe was really a .llb a few years ago

    Thanks in advance for your comments.

    Continue the conversation with me here is the solution:

    Runs like a champ. All dependencies are contained in the packed library and the dynamic call works fine.

  • to access the QML attached objects in C++ and best practices for the handling of the user interface in classes

    Hello

    I have in fact 2 queries

    (1) how can we access attachedobjects defined in QML in C++?

    (2) I'm loving development on Blackberry 10 C++ is one of my favorites. But I'm a bit lost when it comes to managing the user interface in classes. For example when we create the project through momentics we have a class called ApplicationUI. It manages all the (default) user interface commands, we in C++. as for example creating the document qml and setting as root user interface, etc. I am now working on an app that have NavigationPane as root, and then I continue to push pages (like the screens). But now the code for all pages is inside my ApplicationUI. What is the best practice to keep the UI for each page logic in a separte C++ class?

    I also develop for Android that a separate class for each activity, this code does not mingle for each activity. Please guide me how can I keep logic of user interface of each Page into a separate class of C++?

    regarding your second question:
    I think this is the simplest approach to keep all things in the UI in QML. You can easily put things into separate files.

    If you want to use c ++ to the user interface: can be done, too. just put it in separate classes and include those in your application class.

  • Best practices for adding form fillable form designer EULA & forcing acceptance by the user

    What are created the best practices for adding a license agreement end user to a form with LiveCycle Designer. and to force the user to signify the acceptance of the EULA before access inside the form?

    Time, I have the kludged with a series of four message boxes (which is necessary because my LICENSE agreement, like most) is too long to fit in a single messageBox).  3 first message boxes have OK/Cancel buttons.  If the user clicks OK, she gets the following message EULA box; If she clicks cancel the form closes.  The last post (fourth) area a Yes/No buttons with the corresponding behavior.  It seems that the work (I think?), but it's ugly.  Is there an "easy way" to do it with a single drop-down dialog box "I agree" and "I refuse" custom buttons?

    I've seen references to Tools like this but they are marked as obsolete or abandoned due to security or other unspecified concerns.

    Best, Blake

    Another way might be, keep the form pages hidden at the beginning and only display a single page that has text box that contains the EULA with accept and refuse to scroll buttons. IF someone refuses, you can keep the rest of the hidden form or display message boxes to force acceptance of the EULA.

    If anyone agrees, you can simply hide the EULA page, and display form pages.

    I hope that used here too scripting required to reach it either.

  • Dynamic stamps with the user input does not work in Acrobat DC

    After the update to Acrobat DC our dynamic personalized stamps no longer work. Pop ups to enter the data of the user are not more. When you open the PDF stamp if they work, but on the stamping stamp is affixed just without asking for user input via javascript.

    Any ideas on how to solve this problem? Is this a bug? Disabled Adobe functionality?

    K

    You should place as the custom calculation of one of the fields script and modify the code to check the stampName property.

    Search for information on dynamic PDF badges. There are many examples and code snippets out there in how to do it properly.

    There is even a whole book dedicated to this topic by Thom Parker.

  • How to get the user input to dynamic Action confirmation message?

    Hi guys,.

    I use apex 4.1.

    I added a page dynamic Action confirmation message box. How can I get the user input to the confirmation pop up?

    Thank you

    Hello

    you do not directly get user input. But you should still be able to get what you want. Suppose you have a dynamic action which fires for a 'change' (or other) and who has two or more actions

    (1) confirm
    (2) execute the PL/SQL Code

    If the user clicks Cancel/no in the confirm dialog box, APEX stops execution of this dynamic action and not run "run the Code in PL/SQL.

    Hope that helps
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • 1 hr, 2 users - best practices project

    Hello

    I was the only writer to our company for 6 years and more. I finally have someone to help me; However, this introduces a new challenge. We're going to * two * work on the same project HR, and we will use VSS to source code control. I don't know how we "share" this single HR project.

    Someone at - it of the best practices for when you work in this kind of situation?

    I have questions such as:

    • When the other person creates the Index keywords, what happens if I removed files - how will this affect the addition of keywords?
    • When the other person creates excerpts from news or new variables defined by the user, should immediately check them and let me know so that I can do a get latest and have new clips/variables in my project?
    • How do we manage the two of us working on the same project and saw that he had to extract / archive files, create new topics, etc - what should be our "workflow"?

    Thanks in advance for ANY help/advice anyone of you can provide!

    I like rule of Care author: keep things simple and robust. This topic covers the three basic methods of sharing help authoring tasks. In order of complexity:

    1. creation series. If you do not need to have the two authors of the project at the same time, you can just take turns working on the project. Just move the files back if necessary. It is the simpler and more robust approach.

    2. merger proposals. If you need simultaneous creation, then, Yes, it's an approach simpler and more robust than the source control. However, this works only if you can partition your hardware and your clearly demarcated into two or more parts work assignments. Mergers can be a great solution, but it does fit all cases.

    3. source control. If several authors need simultaneous access to the same material, then source control is the simplest answer.

    Here are a few tips and observations, based on my experience with RoboSource Control, in no particular order:

    1. source code control works best on small projects of medium size. Largest may be unstable.

    2. set up to restrict an author file extractions only. Allowing the two authors to work simultaneously on a single topic is bad.

    3. If possible, try to work in different areas of the project that are not. Remember that a single change in a subject can ripple on many related topics. (For example, if you change the name of file to a topic, all the links in this topic must be changed.) If someone else takes care of one of these topics, you will not be able to complete your initial change.

    4. backup of your projects regularly, even if they are in the source code control.

    5. create an administrator account to use just for that purpose. Do not use this account for the creation of the ordinary. All do not give administrator privileges.

    6 appoint a person as administrator. Have at least one backup administrator. It will be the people who put up user accounts, to substitute the extractions ("I need this file, and Joe's on vacation!"), resurrect the old files, adjust source control conflicts, etc..

    7 archive files as soon as you are finished with them. Don't let them verified any longer than necessary.

    8. If you have large scale projects, your virus scan utility can really degrade performance during certain operations, such as the initials "get" of the project files. If this is the case, you may be able to configure your antivirus program to be more respectful of these activities of source control.

    9. the authors of aid must remain in close communication. The other did know what you are doing, especially if you do something drastic like move folders. Be prepared to check something in the case of someone else in need.

    10 give a lot of thought to the structure of your project. Examine the structure of files, naming conventions, etc.

    11. some actions are more intensive than others source code control. (Move, delete or rename folders are biggies.) Your project is vulnerable, even if these changes are underway. If something is wrong until the process is completed, you can end up with a mess on your hands. For example, let's say there is a network problem while you move a folder, interruption of your connection with source code control. You may find yourself with HR thinking that the folder is in one place, while control of source code it is in another. The result is broken links and missing files. Time for the administrator to intervene and fix things. It is almost never a problem for small projects. It becomes a real problem for large projects.

    12. If you get near a date limit, DO NOT choose this time to reorganize and rename files and folders.

    13 follow the appropriate procedure for adding a project to source code control. Bad really do spoil you. It is easy to add a project to RoboSource Control. I can't speak for other solutions to source control.

    14. it may be necessary to rebuild your cpd file more often than with uncontrolled sources projects.

    15. I just lately that you must back up your source files?

    HTH,

    G

  • Best practices MMO. Download music and heavy files on disk hard users?

    Best practices MMO. Download music and heavy files on disk hard users?

    I just downloaded a Hello Kitty MMO application to search (for my kids of course).

    I am developing my application of teaching of English with LOADS of classical music, mp3 and heavy bottom BGS phrases. The best idea would be client to download them to their drive hard is to say that I wouldn't need their flow and therefore save a fresh wealth of bandwidth from my ISP?

    See you soon

    You will need test and see what works best for you... as I said, the files are cached and used in the cache whenever possible. However, there is a limit to the size of the cache, and if your files are huge then yes there is probably more sense to download. Or get a better reception where bandwidth is not a problem...

  • Single user, working on both machines, best practical question

    I use Dreamweaver at home and at work.  I'm working on my sites only.  I have just started working with DW and don't know the best practice to achieve.  The way I do now is through a folder synchronized on both machines that hosts the site.  The establishment is a local folder on the two machines that automatically syncs on the WWW.  I created a site on my machine at home with a folder root for the site and the images and then created another site on my work machine and was pointing at the root sync folders.  Is the best practice for this set to the top.

    I guese that im afraid of is the feature of auto update of links and such to within DW.

    Thank you!

    I have the same configuration and DW Check In / Check Out feature works for me.

    This requires a local copy of the site on home and work machines more copy remotely on the web.

    I have check no matter what files I need to work, modify and then download and archive when I'm done.

    DW manages everything.

  • Key design or best practices for beginners?

    I'm a noob to NoSQL and just started playing with Oracle NoSQL.  Is there a guide or best practices around the design of the keys (values dynamic vs static in the major/minor) or how nested keys, or whether it is preferable to individual properties of key by an entire object by key (such as a Document DB) stored?

    For example, a database that contains basic user information and the products they own.  Is a unique id for the user (such as a user name), sometimes it could be there IP, as the keys and the other information about the values.

    Nobody

    ID/username

    -IP address

    -Title

    -Countries

    -Company

    -The products belonging to

    -The products evaluated

    Products

    -ID

    -Name

    -Category

    -Training

    Thank you... Jay

    Hi Jay,.

    Have you looked at in Chapter 3 of the GSG yet?

    Chapter 3. Record design considerations

    As a general rule, the major key is used for the hash of a shard and the minor tone is used to search for records within the brightness. You want to keep your size as small as possible key.

    There is also, sizing and planning included in the distribution that you might want to take a look at spreadsheets.

    Charles

  • Addition of secondary storage to a guest VM - best practices

    Greetings-

    I have a scenario about the addition of additional storage to an existing client VM and any input would be greatly appreciated.

    My implementatino - four ESXi 4.1 Update 1 guests and a vCenter 4.1 Update1 - Enterprise Edition

    Currently, I have a Windows 2008 R2 guest VM installed on a 256GB / 1 MB data store (DS01) block size. The C: drive is 60 GB in size. Recently, we have added approximately 2 TB (1.86TBs) of storage to an existing HP P2000 G3 MSA. I should add that this particular virtual machine storage. This additional storage will house the data user files (doc, PDF, etc.) only and not other operating systems or applications will be installed.

    My thought was to generate a data store (e.g. DS02) with a block size of 8 MB and set her size 1.86TBs size (maximum). From there I add a second virtual disk to the VM guest (via the virtual settigs machine), by specifying "DS02" data store and then import/initialize the disk in Windows 2008 R2 disk Mgr.

    My reasoning is correct? This would be 'best practice' or is there a better approach?

    Any input would be appreciated grealty.

    THX in advance

    Joe

    Nothing of the image based backup solutions backup a RDM in physical compatibility mode. To include a ROW in the backup, you must configure virtual compatibility mode for it.

    Please keep in mind that the data store that contains the basic configuration of the virtual machine must have the block size that is appropriate, given that the snapshot files are created on the default data store.

    André

  • ADF Faces & BC: best practices for project implementation

    Season greetings my fellow JDevelopers!

    Our group of software works with ADF for about 5 years and over the years, we have accumulated a good amount of knowledge in collaboration with JDeveloper and ADF. A large part of our current structure of demand was resurrected in the early days of JDeveloper 10 where there are more codes samples floating around, then there was the 'best practices' documentation. I understand that this is a subjective question, and varies from one site to another, but in my view, there is a set of common practices, our group began to identify as essential to the rationalization of a development process (reusable decorated with user interface components, modular common biz logic, the development with svn, continuous integration/build team, etc...). One of our development objectives is to minimize the dependence between each engineer as everyone is responsible for the client and middle tier application without losing the consistency of coding. After speaking with a couple of the ACE to the last openworld, I understand a large part of our planned architectural requirements are filled with JDeveloper 11 (with the introduction of models, declarative elements, bordered of workflow, etc...) but lack of time on the results expected to come, we are still almost a year away before moving to this new version. Here's some of our group/application.

    JDeveloper version: 10.1.3.4
    Number of developers: 7
    Responsibilities of the developer: build both faces & collection bc

    We currently have two applications in our production environments.
    1.A flavor of the dynamic module from Steve Muench jdbc connection credentials
    2 core application ADF Faces & BC

    In our Core ADF Faces application, we get the following structure:

    OurApplication
    -OurApplicationLib (common framework files)
    -OurApplicationModel (project BC)
    src/org/ourapp/module1
    -src/org/ourapp/module 2

    -OurApplicationView (project faces)
    OurApp/public_html/module1
    OurApp/public_html/module2

    SRC/org/ourapp/support/module1
    SRC/org/ourapp/support/module 2

    SRC/org/ourapp/pageDefs /.


    Total number of application Modules: 15 (including a RootApplicationModule that references the specific AMs module)
    Display of number objects total: 171
    Total number of entities: 58
    Total number of files BC: 1734
    Total number of JSP pages: 246
    Total number of pageDefs: 236
    Total number of cases of navigation in faces - config.xml: 127
    Total number of application files: 4183
    Application size total: 180megs

    Are there other ways to divide this application? IE: module specific projects with distinct faces-config files/databindings? If so, how can these files be "hooked" together? A couple of aces has recommended that we must separate all files of the entity in its own project that make sense. In addition, we look at maven builds that must remove the pesky model.jpr files that gets constantly "touched". I would love to hear how other groups organize their application and anything else, they would like to share as a best practice ADF.

    See you soon,.
    Wes

    After discussions in the summer/fall by members of the ADF methodology group, I have published a wiki page ADF Coding Standards that people may find useful:
    [http://wiki.oracle.com/page/ADF+Coding+Standards]

    It aims to ADF 11g and is intended to be a living document - if you have any comments or suggestions please post them to the ADF methodology ([http://groups.google.com/group/adf-methodology?hl=en]) google group.

  • Best practices Apple ID

    I help the family members and others with their Apple products. Probably the problem number one revolves around Apple ID I saw users follow these steps:

    (1) share IDs among the members of the family, but then wonder why messages/contacts/calendar entries etc are all shared.

    (2) have several Apple IDs willy-nilly associated with seemingly random devices. The Apple ID is not used for anything.

    (3) forget passwords. They always forget passwords.

    (4) is that I don't really understand. They use an e-mail from another system (gmail.com, hotmail.com, etc) as their Apple ID. Invariably, they will use a different password for their Apple ID than the one they used for other email, so that they are constantly confused about which account to connect to.

    I have looked around for an article on best practices for creating and using Apple ID, but could not find such a position. So I thought I would throw a few suggestions. If anyone knows of a list or wants to suggest changes/additions please feel free. Here are the best practices for normal circumstances, i.e. not cooperate accounts etc.

    1. every person has exactly 1 Apple ID.

    2. do not share Apple ID - share content.

    3. do not use an email address of another counts as your Apple ID.

    4. When you create a new Apple ID, don't forget to complete the secondary information to https://appleid.apple.com/account/manage. It is EXTREMELY important questions your email of relief and security.

    5. the last step is to collect the information that you entered in a document and save to your computer AND print and store it somewhere safe.

    Suggestions?

    I agree with no. 3, it is no problem with using a addressed no iCloud as the primary ID, indeed, depending on where you set up your ID, you may have no choice but to.

  • Best practices for the .ini file, reading

    Hello LabViewers

    I have a pretty big application that uses a lot of communication material of various devices. I created an executable file, because the software runs on multiple sites. Some settings are currently hardcoded, others I put in a file .ini, such as the focus of the camera. The thought process was that this kind of parameters may vary from one place to another and can be defined by a user in the .ini file.

    I would now like to extend the application of the possibility of using two different versions of the device hardware key (an atomic Force Microscope). I think it makes sense to do so using two versions of the .ini file. I intend to create two different .ini files and a trained user there could still adjust settings, such as the focus of the camera, if necessary. The other settings, it can not touch. I also EMI to force the user to select an .ini to start the executable file using a dialog box file, unlike now where the ini (only) file is automatically read in. If no .ini file is specified, then the application would stop. This use of the .ini file has a meaning?

    My real question now solves on how to manage playback in the sector of .ini file. My estimate is that between 20-30 settings will be stored in the .ini file, I see two possibilities, but I don't know what the best choice or if im missing a third

    (1) (current solution) I created a vi in reading where I write all the .ini values to the global variables of the project. All other read only VI the value of global variables (no other writing) ommit competitive situations

    (2) I have pass the path to the .ini file in the subVIs and read the values in the .ini file if necessary. I can open them read-only.

    What is the best practice? What is more scalable? Advantages/disadvantages?

    Thank you very much

    1. I recommend just using a configuration file.  You have just a key to say what type of device is actually used.  This will make things easier on the user, because they will not have to keep selecting the right file.

    2. I use the globals.  There is no need to constantly open, get values and close a file when it is the same everywhere.  And since it's just a moment read at first, globals are perfect for this.

  • Best practices of a partition of HDD on Windowes Server2008 and Windowes 2012

    What is the best practice for partition of HDD on Windowes Server 2008 and 2012 Windowes

    Could be interesting to ask more http://social.technet.microsoft.com/Forums/en-US/winservergen/threads that you can get more answers.

    That said I would say that very much depends on what you intend to do with the server, and of course how much space you have available.

    For a general server I would probably go with two volumes, the C:\ drive for the file system and a second volume for your data, for example E:\. I recommend at LEAST 30 GB for the C:\, 40-50 GB preference, since updates, patches, etc will burn way over time and it's much easier to start big than to try to develop later.

    If you are running the Terminal Services, then you will probably need a larger C:\ amount as a large part of the user profile data is stored there in order to run lack of space fairly easily.

    As I said, it depends on what you do, how much space and disks you have available etc, it isn't really a one-size-fits-all answers.

Maybe you are looking for