Details techniques Subvi

For many functions, LabVIEW, there is required (in bold) and entered into option inputs (non-bold).

If the optional inputs are not wired, the function uses a predetermined default.

Is there an easy way to do it with the Subvi?
As you are all wiring connector on the front panel, is there a way to specify a require / optional entry?

Yes, if it's on the connector of the icon. I use that in one of my old vbery 'Event_loggers '. For special operations such as commissioning, I pass an enum that says 'init '. Most of the time it's to errors so that the default value is the value 'Post' so that it can be used without the enum.

If it is NOT on the connector of the icon then "depends" If the VI had already been called, and if something was writtien in control non-icone connector.

Ben

Tags: NI Software

Similar Questions

  • sbRIO-9651 IO corresponding length

    We plan to interface high speed ADC (1gech/s x8bit) that uses a wide interface LVDS (two samples) from 16-bit to a sbRIO-9651.  Is there a resource that provides information about the sbRIO-9651 module layout details as worst case length offset series in differential pairs and between differential pairs that exist on the module (independent of our own layout of the Board of Directors)?

    Since the interface use a common differential clock and wide 16-bit interface, I'm trying to get a sense tilt the worst case there might be between pairs differential seperatate.

    I can they use sheet date architecting to get an idea of the maximum transfer rate, but are there restrictions on the module itself that will limit rates date?

    Hi abadobid,

    The SbRIO-9651 manual specifications (table 8) should have the details of length sur-module trace info you are looking for.

    In addition, I recommend reading the Design Guide for the SOM carrier for detailed techniques, guidelines and requirements for the design of carrier card.

    Finally, for future issues are the design of specific equipment for the SOM, we have implemented a dedicated community/forum that will probably be the best place to get help.

    Community of developers of hardware for NI Single-Board RIO and module system

    Resources for the system OR on the Module

    Kind regards

  • Techniques need more details 4250XL IPS and IPS-4255

    4250XL IDS launched before the IPS technology, am I right?

    Can I deploy a 4250XL ID as an IPS, if yes, then it's true to upgrade this version IDS 4.1 to IPS ver 5.0

    I add 4 10/100/1000BaseT ports on ID 4250XL.

    Because, I have to deploy IPS to 1 Gbps throughput.

    and I could not find an IPS in CISCO will produce 1 Gbit/s with 4-port 10/100/1000BaseT.

    How many simultaneous sessions support IPS 4200 series.

    How can I use feature Redundant Power Supply on IPS-4255.

    Technical documentation 42xx is linked off the coast of http://www.cisco.com/go/ips. I don't know if IPS 5.0 information is still (it's kinda new). There is no option RPS for the 4240/4255, but recommends the use of a UPS would be justified for packaging line if you have unreliable power.

    There is no provision for failover in the transducer (other than the bypass mode), but there are drawings (I hope bound off the page that I mentioned above) to do network active / standby designs.

    The 4240 and 4255 do not have redundant storage... they have no HDD due to reliability problems. They run a flash and ram disk configuration.

  • The call of a Subvi without stopping the execution of the main thread

    Hello everyone, I have a rather simple demonstration VI, which opens a menu where the user can call a few screws, signal generation, reading and analysis, each contained in a Subvi and with their own front panel and chart controls. The idea is user just click a button and the required Subvi is in charge, I use a structure of the event to ease.

    Problem is, after I opened an option, said Subvi hogs the thread of execution and does not allow for new bodies until it is closed (this is inside a while loop it is so logical, I guess), the queue of events and the next before Panel charges only after that I have stop the Subvi. I would like to be able to simply open the front panels and let them run in parallel, without them in the meantime another at the end, is it possible?

    natasftw is right.

    A high school is a "hole" in your main panel.  You "insert" a separate VI in this 'hole' and then you see the Panel of VI inserted through the hole and mouse clicks through the hole of the Subvi below.

    You will need to run the Subvi separately, even if - by inserting just can't run.

    Aynchronous call will begin a Subvi running and then return to the calling thread with the Subvi running in parallel.

    You can then insert the Subvi in a secondary, or let it have its own window, as you choose.

    There are examples of both techniques.

  • Clean using SubVIs block diagram

    Hi guys and welcome to my first post!

    I m a bit new to labview, so be a little patient, if I do not understand everything immediately

    Im working on an existing program that is used to control an MCU on BabyLin on my front, although I have a visualization to see live changes to the system. The program works very well so far, but I m trying to clean up the block diagram. This should be done by subvis, right? I ve read a lot about the size of the block diagram should not increase my screen. Well, im at a length of about 3 x 2 screens (24 "!) after trying to use subvis and to shorten the distances between structures. The only things remaining are huge amounts of local variables and references (they existed already before I got to know the program), mainly for viewing. If I create a Subvi part containing the people of the country, it will change the references that does not make the program more readable (and small), and I guess I can't put a new Subvi on references + Subvi.

    You have any ideas what to do? I hope that I forgot something, otherwise, do not hesitate to ask.

    Kind regards

    Leo

    Bob_Schor wrote:

    To get a handle on the structure of your high-level code, write down (as if you were telling your boss or tell your wife - who knows, they might be the same person!) that you are trying to do.  Keep it pretty General.  You specified a number of steps?  So maybe the top level should be a State Machine, or a message in queue manager.  Describe you something that works at a constant speed, generating data that you have to manage "on the fly"?  Maybe it's a design of producer/consumer.

    You have a lot of initialization?  Put in a Subvi, bring the 20 son out in a bundle (it's "Boss-word" for a Cluster).  Your main program must have a few loops, with values that persist (possibly changing) during the program running in Shift Registers near the top of the loop, with tables and Clusters used to keep related items "consolidated".

    Not too bothered by the size of your routine - I recently downloaded a monster 50-monitor the Forums (I did not even try to understand), up to 6 monitors is nothing!

    Let "encapsulate the function" and "hide details" to be your guide in the reflection on the creation of the screws.

    Bob Schor

    To develop on the analogy of Bob, each talking point can be a Subvi.  In other words, code group associate subVIs.  The advantage of this is that it is much easier to solve problems because all errors will be localized to a Subvi.  Errors no longer Chase around the block diagram.  I guess you can use your current VI as an example of what NOT to do on the block diagram.

  • Selections of Subvi persisted during execution.

    I am using a Keysight tool and create a simple VI to take action.

    I am wanting to create a Subvi, which allows you to select multiple configurations for this instrument so that if the user does not like the default configurations that he can go and edit by clicking one button "configure."

    Currently my code passes in the VISA and opens the configure Subvi and you can change the configuration of the instrument, but when you close the configuration window we close the Subvi and then if the user wants to then open the window configuration again that all default values are loaded and the previous configuration is lost.

    Is there a way to persist the decisions taken by the CURRENT of the VI user for the time they use the VI, without completely changing the default selections of this sub - VI? Maybe just hide the VI and show again if needed?

    I wanted to use a side effect, but there are so many inputs/outputs that it would actually work for me unless I'm missing something.

    Thank you

    Kellen

    Measure VI

    Configure Subvi

    A common technique for the persistence of Configuration data is to have a (default) Configuration file is read by your program when it starts and loads all Configuration settings (for the most constant) you need.

    If you want to change settings, your calls to button "Set up" a Subvi, which a bed Configuration file, showing you the values, (b) invite you to change/modify these values and (c) prompts you to save the return the Disk Configuration file so that it can be used the next time.  You can decide for yourself if you want a single Configuration file that gets crushed, or if you want to maintain two or three 'common' Configuration files, and the user to choose which to use ("16 channels, 1 kHz", "8 ways, 500 Hz,"16ch 500 Hz", for example).

    A common format of 'user-friendly' for Configuration files, with the help of screws in the Palette of LabVIEW file IO, are. INI files, which (if done) are human readable.

    Bob Schor

  • Cannot change Subvi

    Hello

    I'm trying to change an existing program of LV. There a few SubVIs that cannot be changed. However, there is no possibility of using a probe or an execution Higlighting. So I'm stuck unbale to view the stream, nor able to add indicators to see what is happening. You will find the image for more details. Please help me.

    Best regards

    Hannah

    Under implement, you can activate 'Allow debugging"that will give you access to the point culminating performance and maintain the values of thread (and also probes).

    /Y

  • Pass data to Image update Subvi VI main

    I try to get under VI containing a for loop to pass data to an indicator on the main VI update. I followed this explanation...

    http://digital.NI.com/public.nsf/allkb/0F4EA104660C0AF38625726F0069B27E

    .. .and am able reproduce the example with a digital command, but I was not able to extend the example to an indicator of image output. I suspect that I use the control bad, Refnum reference or property. Can anyone suggest corrections?

    Details:
    I use a control reference [line] to a [Picture] indicator of my main VI [Center of manufacturing] to the Subvi [SUB mask display].

    I placed a Refnum control on the front of the sub - VI, he linked to a property on the block schema node, selected the property "Value" and hooked up the output of the image of a VI IMAQ to this property.

    If 'Run of Images' on the sub VI is set to FALSE, a static image 'test0.jpg' must be returned to the main VI. If 'Run Images' is set to TRUE, a loop is supposed to pass 'test0.jpg', "test1.jpg", etc. to the main VI at regular intervals. Instead, the indicator Image is empty.

    Hi MaryamAli,

    I think you are doing everything correctly but you are having your image inside the Subvi so the will of image ever seen in the main VI. Try to remove the IMAQ dispose VI in your TRUE and FALSE cases and see if it works.

    Tim O

  • Create a Subvi command library

    I do a user interface that runs different tests that involve some movement commands.  The movement controls are simply send a command string to a DLL file.  Is it possible that I can consolidate all my movement controls (like up, down, stop, pump, etc.) in a Subvi and then call some command I need in the main vi?  I hope that makes sense.  Thank you

    Of course it is!

    Oh yes - you probably want details...

    Well one thing you can do is to start with the VI you have now for talking to the camera and replace everything which is food chain IO routines now with a case structure. Then put all the different channels in the structure of the case (one channel per image, please) and the wire can control enum to the selector node on the structure of the case. Finally, create an enumeration for each operation (up, down, stop, pump, etc...). Now the string no matter what you select will be sent to the IO routines.

    Mike...

  • Loading dynamic Subvi

    Hey guys...

    Please help with this problem... Attached an image Ref

    Two things, first it is a VI method to open and close panels of façade which is the recommended technique. Secondly, as written, your code does not return all the data of the Subvi called so if there are errors, you will not see them.
    Mike...

  • Open a Subvi and run automatically

    Hello everyone,

    I ve a structure of the event in which a Subvi is called by server of VI. I Don t want the main VI to freeze I turned forward until it is turned off.

    But the Subvi is called and in edit mode. How can I call the Subvi and run automatically?

    Kind regards

    Wilbur

    Hi Wilbur,

    Good afternoon and I hope that your well today.

    Thanks for the post.

    The VI property Exec.RunOnOpen is not necessary - if you are using Server VI, this property is ignored - and your using the method run a VI in any case.

    I think that your problem is with the configuration of your reference open VI. If you set the entry to zero (0) options it works? It does for me. And if I said that admission to 8, it load in edit mode.

    The problem that I believe is in the detail of the reference open Help content. When the reference is destroyed in the server called VI VI VI is shorter.

    For example, I have a small delay between my RunVI (wait that fact - false) and the reference close VI. After the period of my called VI stops.

    What results you want to achieve? You try to call a reentrant VI? If so, please take a look at the following example

    Load and call several Copies of a Subvi using VI Server

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4192

    Please let me know how found you this information.

  • Parallel Subvi errors

    I'm trying for a program to impliment appropriate error handling data entry.  I have a Subvi, which reads from multiple variables, each of which has its own error and error.  Is it acceptable to wire them in parallel as I showed in the attached picture or should I put them all in the series?  I thought that it looked much cleaner to get all nice and neat, stacked tags but I'm more interested in learning the correct way.

    Thanks in advance.

    Sharing variables that all communicate through the same process, in order to access multiple variables at the same time can cause problems of performance due to a scheduling conflict.  It is best to serialize shared variable calls for better performance.  See the shared use Variabes effectively help topic for more details.

    In general, it is not useful parallelize small code snippets as you, unless there is a specific need for a simultaneous performance.

  • Lack of SubVis error 1003 when VI called Via a server VI

    I have a Labview application that 12E DAQmx functionality to acquire data and uses analysis contained in records vi.lib Labview vi.  The application is compiled in a Bachelor's degree in law with a high-level vi model. I used successfully the VI server technique to launch and control the high level vi using Labview 7 and 7.1.  This technique allows me to open, run, and the façade of access control during execution.  In fact, we have compiled the functionality of separate (implemented in vi) VI in a DLL server and applications such as VB6 to launch the VI, control and he abandoned. This technique worked very well for many years for us.

    Now, we have improved our Labview 2009 application and implemented NI Scope to acquire data from a digitizer PXI-5922.  We use the same functions of analysis like the previous version.  I can run this as a standalone VI, and I can also write another 'Launcher' VI which uses the VI of my VI server solution to launch the application (open, execute, and control).  The problem comes when I try to run the application outside of the Labview development environment. With the help of VB6, I can open the VI, but when I use the VI server to run it I get the error code 1003 (VI not executable). The vi appears with a broken arrow.  By clicking on the broken arrow gives me an error "Missing Subvi.

    To eliminate the 'my' application of the problem, I copied one of the models OR simulated (GenerateDisplay.vit), moved to a test directory and renamed.  I can start and run this vi of the environment of Labview development, as well as using my server VI 'Launcher' mentioned above when running in the Labview development system.  However, I get the error of missing VI again when my new test VI is launched using another application.  I have compiled my application launcher in an executable file (using project folder) and can run the executable file.  However, when my application launcher tries to run my test vi I get the same error of VI missing.  The missing vi is \vi.lib\express\express input\SimulateSignalBlock.llb\subSigGeneratorBlock.vi.

    Thus, it seems that the VI server runs the OK application executing in the Labview development system.  However, when it is launched, apart from that the vi launched test cannot locate its dependencies, which leads me to think there must be a connection problem during execution when executing.  I see all the dependencies in the project file, and these are listed in their correct location.

    Has anyone had a similar experience, or had no idea what goes wrong.  As noted above, this technique worked ok in Labview 7.x using DAQmx so I'm wondering if something changed in the way the runtime throws the dependencies?

    Kind regards

    David

    HI Vivek,

    Thanks for your suggestions.  Solution 2 of the first link (creating a source distrubution) allowed me to create a LLB containing all the dependent inside vi.  I am now able to open and run my test vi without errors by using Server VI of VB6 functions.  I have rebuilt my main application, but have a huge file (> 40 MB) when you include all the dependencies, the vi.lib, the instr.lib and user.lib files.  The application can run ok, but I am now working to optimize its size.  His looks as if I have a good working solution.

    Thanks for your help,

    David

  • extract data from a Subvi in a secondary

    Hello

    I am changing a huge existing vi-program (Subvi 300 +). Among other things, I want to change the main vi and the user interface. My main goal is to have a menu bar (listbox) to the left and the Group of experts to the right where the subvis are open whenever the user change the selection in the menu bar. With this, I invoke nodes.

    The challenge for me (and for you - if you agree) is to save the changes made by the user, so they reappear when the user to reselect this particular point in the menu.

    Secondly, I would like / need to extract the subvis settings (when the user makes a selection in the menu) to main vi so I can use the settings in the other subvis.

    Third, I like the Subvi, would open in high school or in run mode, the interface be interactive.

    I eat to a vi project, but I'm afraid that there is too much power of the computer and the memory when it should be able to call 30 different subvis. I also think that data extraction or the definition is somewhat awkward and could become quite messy when it is expanded. My solution for the interactive called Subvi is pretty simple, but I hope that another solution could appear during the debate.

    FYI, the program must be made executable at any given time.

    I really hope that someone can bring my some inputs or comments to my project-vi.

    eskrut

    You have a very good idea. I've used several times myself. But let's think things through a bit more:

    1. You want to be able to pass data between the modules plugin - which is a good thing.
    2. When you get this race, it would be another good and something useful to be able to reuse architecture. Reinvention of the wheel is a bad thing.
    3. If the UI knows what data looks like is passed between the screw plugin, it will limit your ability to achieve the Point #2.

    So let's take things a little further and say that the data transmitted between the plugins are given private plugins to hide the user interface (now to be known as the reusable application framework).

    In this scenario, the reusable application infrastructure has only one job: opening of plugins, their departure in running and put them in school. (ok, so that's three things - person is expected to the Spanish Inquisition).

    So, how do pass you data? Globals functional, databases, events, authors of the notification, depending on the details of what do the plugins, there are a lot of alternatives.

    Mike...

    PS: The event to manage the selection should have all the code to manage the plugin. You can trigger the event programmatically during initialization to get things started. Similarly, the list of selection options can be filled by programming when the application starts.

    PPS: now that reusable application infrastructure has so little to do, give some think other things he might have the time to do - such as the provision of a mechanism; standard error report to implement a standardized menu structure that plugins can cling to if they wish. or by providing some common on-screen keys that can be used by plugins.

    PPA: databases are a very good thing.

  • How to get the Subvi (the virtual path is in .exe) reference in Run Time System

    Hello world

    The problem is how to get the reference of the Sub - VI in run time system, when the Subvi is in .exe after construction.

    More details:

    Top of page vi called the Subvi dynamically, so that the Subvi is always included, and the source object is the application.exe.

    After the above configuration, the Sub - VI will be the application.exe. For example, the path of Subvi est...\application.exe\SubVI.vi

    So, how to get the reference of the Subvi in Run Time System?

    I can't do it when you use 'open reference VI' with le...\application.exe\SubVI.vi path in the run time system.

    In fact, I can create a file to include the Subvi, rather than build the Subvi in application.exe, then I can get the convenintly reference. But this isn't my favourate average.

    Thank you

    chenyin

    That is the problem. Call a Subvi dynamic means users could change, but it is also very attractive.

    The dynamic call should be used in a user control, but some parade can avoid problems.

    It depends on why you use dynamic calls...-online 2 main ways:

    -Dynamic call are used to maintain a scalable framework for the code without acting on the executable file-online a single VI distribution managed by the administrator/developer

    -Dynamic call are used to provide a collection of "external" characteristic that could be enriched by the administrator/developer. For example, you provide your customers a set of selectable custom signal filters in the executable.

    In 2 cases, you are only able to assess the skills of the users to know if there is a risk of damage, if there is a change.

    So to stay only master a parade might be to provide dynamic VI without a schema, but with the problem of maintenance, since no in-place editing and more attention to manage distribution.

    Another way is to hide the actual distribution to user-online call dynamic VI but it without name as *.vi but others (a repellent name as system of OS name ) or simply without extension in order to attract not user... but that's debatable...

    Another more difficult but more secure method is to create a consistency check before your routine (version, user, modified date,...)

Maybe you are looking for

  • privileges safari block iPad

    They are wonderful at Apple. It's been 5 days that my iPad is blocked. Impossible to activate the in privileges Mail or Safari or Notes or Messages. Huge global bug 9.3. No communications site on. All right. I tried this morning to call the Apple sto

  • not scan to computer

    my printer Photosmart Preium print-Scan-Copy will scan is no longer at the computer. Mac OS - recently upgraded to Lion and it would solve the problem, but there is no hope. I checked the updates, but he says that I am up to date. Can someone help me

  • HP pavilion dv7 - 4283cl keyboard shortcuts to turn off the system

    Greetings, I have a client who has a "HP Pavilion DV7 - 4283 CL Entertainment Notebook"; as such, she stated that she allows to turn off his laptop by pressing CTRL + RIGHT ARROW keys (three times).  Now all of a sudden she said that this does not wo

  • 3050 j610a all in a bad impression, cannot find & quot; own & quot; menu

    Hello My 3050 j610a but often prints smudge or leaving negative horizontal lines (IE not totally printing letters). Before I try new ink carts, I want to 'clean up' carts. The manual line gives the foloowing tips, but I can't find the way to 'Actions

  • V228g USB in reading only unbale to get in shape

    I use usb HP V228g 16 GB for these past two years, but recently, I don't know what happened that my USB became read only so I'm unable to write anything in the USB. I tried many software of linux and windows as well to format it but no use. Please le