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

Tags: NI Software

Similar Questions

  • Closing Subvi memory during execution main vi

    I call you a Subvi as pop-up main VI which I'm passing some values also main vi, there is a button leave on suvi with which I am stop the Subvi, but what happens after the Subvi with exit button, I'm not able to run again, even though I am the appellant again once it opens as a pop-up window , but is not in the running state. I think that I have to close the Subvi memory, but I don't know how to do this.

    and if with exit button, I tried to make a structure dealing with FP Open property node with fake State with this window closes once but when I try to call him once again, it doen not appear.

    I searched a lot of messages on the forum too, but no permit, I do not know how to do this.

    Below is the Subvi.


  • masking steps during execution

    I have a sous-suite that I point the user to when asked to isolate a card failure.  To give them some flexibility, I got a popup that gives them a certain number of options (see attachment).  I have an m.o. that indicates the individual steps these select/run (i.e. '1' or '3' in the png).  Control flow (denoted by '2') is the noise they don't really need to worry and may / will cause confusion (and possibly problems for me if they select them accidentally).  Is there a way to hide these measures flow during execution control so that the user sees '1' and '2' (and other similar 'valid' selections?

    If there wasn't a need explicit to have the flow control logic, then I'd be tempted to compact all in the post of the Popup Message action.

    By setting the Popup Message Action to go to the step, , use Custom Condition (TRUE):

    And by using the following Expression:

    Step.Result.ButtonHit == 1? RunState.Sequence.Main ["MR_RPack_R55"]. UniqueStepId:
    Step.Result.ButtonHit == 2? "" "RunState.Sequence.Main ["End_PCI_Isolation"]." UniqueStepId:
    Step.Result.ButtonHit is 3? RunState.Sequence.Main ["MR_R103"]. UniqueStepId:
    Step.Result.ButtonHit is 4? "" "RunState.Sequence.Main ["PCI_Intf_PT"]." UniqueStepId: «»

    It should be appropriate level following the Popup Message.

    (SequenceFile attached).

    I hope this helps.

    Charlie

  • Edit/delete/add scene coordinates in the table during execution

    Hello world

    I managed to build table allows you to store and record the coordinates of the stage and remind to control steps. However, I need change/remove/add details of scene during execution. I also need to allow the user to directly edit the coordinate from the scene of the array. Wondering what someone knows what is the best way to do it? Or is it better to use the matrix or Cluster? Thanks in advance.

    Best regards

    Han Yen

    Han Yen wrote:

    Thanks much altenbach for all the advice. I tried to do a table 2D control. I've been playing with table in the control. However, I still can't find out how can I detect that I change the data in the table 2D with the more recent issue during execution? How can I then update my current table with the latest data?

    Well, the 2D table is updated immediately and you do not all the other tables.

    Do you mean that you want to update XAbs, etc. where the just changed line is already selected?

    In any case, here's a simple project, perhaps it will give you some ideas. I would recommend using also the tables for XYZPos, entrances etc. and the XYZabs. This simplifies the code because you reduce the number of terminals and table operations.

    Let me know if something is not clear to you.

  • modify VI during execution

    Dear users of LabView,

    I have a fairly general question about the development of a project, which requires a continuous control of the material. To be more precise, I develop LabView control and DAQ software for calorimeters in high volume in the last 2 years. Such a system requires several PID controls, and it has many subsystems. Because of the large heat capacity, it takes about 3-4 days to launch the system. So if I need to edit for example something in control of the final of a specific subsystem, I stop the LabView code, I have change the specific part, I restart the system, I wait for 3 days, and then I can see the result of my changes.

    My question is the sort of General: what is the good, let's say "best practice" to avoid such a dead time?

    Is it possible to change a VI during execution?

    I understand that if I run the independent screw, that dealing with subsystems, I could avoid this problem. But if I already have a compact 'main' VI, including all the subVIs, what can I do?

    It would be nice to have a sort of "hot swapping" feature in LabView, so during the execution of main VI of my project, I could change the Subvi that I want, and when it is ready to activate, the runtime would swap with the old version.

    Thanks for the tips and advice!

    Best wishes

    Hello

    It all depends on how works your vi...

    The only way I see is to use dynamic calls: a vi called dynamically is editable even if appellant vi is running.

    If you change the callee until the caller calls the vi vi.

    Is how the appellant under vi (this includes the values of connectors and run the VI):

    Best regards

  • How can I draw several plots by using the XY graph during execution?

    Hello

    I want to draw several plots in the graph XY to the means of execution user will select the number of plots that he wants to draw, depending on this value, I have to get these values and use table generation and then I give to graph XY.

    During execution, but how to do this?

    Please help me in this regard.

    Kind regards

    Herald

    Why start a new thread?

  • For a control that can be initilaized during execution

    In the case of an enumeration or a constatnt ring. The options to select should be listed when programming

    The option to select is possible during execution.

    I have a table, and I can send the 1st column of values in the menu drop-down, select one during execution.

    Help, please.

    Hi, Mike Grugh,.

    I don't know how to do it with a table drop-down list boxes, but if the number of lines in your file, then you can try the attached example.

    Kind regards

    Amine31

    (Give the congratulations to the right answers and Mark as a solution if your problem is resolved)

  • What would cause a constant changes during execution typedef enum

    Hello

    In my program I had a problem with a constant of enum for a selection of the tab value change during execution.  The enum is as part of the initialization of the program and when I step through the loop and then you see the property node of the climax to the value tab and in the next step of the enum changes its value.  I'm under LV 8.0

    Any information will be greatly appreciated.

    Gary


  • During execution of the backup and maintenance on one of my computers, I noticed a folder and the file that I can't identify me...

    Original title: identity of unknown folder

    During execution of the backup and maintenance on one of my computers (Windows xp home, sp3), I noticed a folder and the file that I can't identify.  The name of the folder is cc68f6b7a7ca948eefb018f001 and the name of the update.exe file.  The properties of the file that it is a Windows Service Pack installation.  I tried Googling the name of the folder, but found nothing.

    Can you tell me with regard to this issue, and what, if anything, I have to do?

    Thank you.

    When some programs (including Windows) installs things, it can create a temporary folder composed of 20-30 random letters and numbers or random numbers and letters in the root of the drive of the volume with more free space.

    This explains why the records are sometimes on your C drive or any other drive - the most space?

    For example, you can see a similar to or called folder:

    D:\9470bb12e8a4f3447657236478e41c5

    There may be other folders and files in this main temporary folder such as amd64 and i386 platforms.

    They should normally be deleted when the installation is complete, but sometimes they are not - especially if the installation fails.  They are harmless but annoying.  You can think something is wrong when there are no or fear, that the files are really necessary.  To avoid confusion, you can delete the temporary files.

    If your installation has failed or the installation does not remove the folder to the random name when it finishes running again installation will be another folder at the random name.

    You may be able to identify installation (out of curiosity) by looking at some of the contents of the folder and decide if this installation was not serious, just remove the files/folders.  If the installation does not work for some reason, run again just installation will create a new temporary folder to the random name so the old temporary folder is really useless.

    Records are sometimes tough to remove.  Even if you are an administrator on the system, you might get a "sharing violation", "access denied", "used" or type similar message when you try to delete temporary folders.  Facilities sometimes use different permissions that can have a regular user with the administrator group.

    There are many methods to try to remove the folders, and some require third party programs to install or change some windows settings that could compromise the security of your system if you do not change them back when you're done.

    Start your system in Mode safe mode (by pressing the F8 key several times just before XP attempts to load) is one good method to try to remove the files because it does not have to make any changes to your system configuration or by downloading third-party programs.

    If you are running XP Home Edition, the following section on turn off "Simple file sharing" does not apply to you since in XP Home, Simple file sharing is always turned on.  If you are running XP Home Edition, skip the next few paragraphs and resume where it says:

    "If no part tool above work try a third popular called Unlocker.

    If Safe Mode does not work you can change the security of the folder when you start in Normal Mode to give your username full control over the files by navigating to it in Solution Explorer, click on tools, Folder Options, view and in the advanced settings window, uncheck (at the bottom of the list) use simple file sharing (recommended) and click OK.  This disables him recommended simple file sharing on your computer if you want to turn it back on when you're done to make everything you do.

    Right-click on the files of interest, click Properties and click the now visible security tab.  Change the properties, but you need (for example, select your user name, and check the box to allow full control), click OK to apply the changes.

    With usage share of active simple files (recommended) the checked the properties of the folder tabs are:

    General, sharing, customize

    With the use of sharing files simple disabled (recommended) box unchecked, the properties of the folder tabs are:

    General, security, customize

    Now, try to manipulate/delete the folder.

    It's a good idea to go back to the Explorer and the cheque in the box easy to use sharing files (recommended) when you have finished making everything you do.

    If none of the above works, try a popular third-party tool called Unlocker.

    Unlocker can be downloaded here:

    http://www.emptyloop.com/Unlocker/

    If you use Unlocker, be sure to install because he wants to add a bunch of options, addons, shortcuts and other extras that you don't need.

    You must add the shell extension so when you right click on the offending file, you will have a Unlocker option to choose.  I would just install it long enough to clean up the leftovers and then, I usually just uninstall and all parts of it.  You can always install it again another day if you like.

    Unlocker can be uninstalled when you have finished using it.

    Reboot when finished to ensure that boring records are really missing.

  • Search fields added during execution

    Hi all

    I use Jdeveloper 12 c on internet explore 10 with 11g database on 64-bit.

    I followed the link as a tutorial.

    Oracle JDeveloper 12 c (12.1.2) tutorials - developing rich Web Applications with Oracle ADF

    step 8

    Develop control data EmpDetails1 and expand the node named criteria below him. Select all the searchable attributes and drag it to the new page query.jsf . Create it as a query > Panel request ADF.

    I had two problems

    1. the generated fields are too big, I want to control their width, but I don't see any field in the search box, instead, I see "search fields added during execution.

    2. I want to o excluding some areas. How to make since I can't see any generated field.

    Kindly guide me with this.

    Thank you.

    (1) the width of the fields is controlled to the view object. To change the width, you change the width to display the attributes in the suspicion ui tab.

    (2) this ID controlled of the view object. To hide an attribute in the query panel you uncheck "queryable". See JDEV: af:query hide some attributes of query panel but show them the results table | JDev & ADF Goodies

    Timo

  • Problem with pl/sql procedure, trying to get the value of the user during execution

    Hello

    Using oracle 11.2.0.3

    Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

    uses of SQL & Enter_Product_Number

    anonymous block using: Enter_Product_number.

    However, get problems when trying to create a pl/sql procedure, use one of the above

    relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

    How can we have a procedure from pl/sql that can call and receives a value of user during execution?

    Only way around what I can think of is to pass parameters to the procedure

    Thank you

    create or replace procedure ins_into_issues is

    v_nd_rec_cnt number (10);

    v_normal_rec_cnt number (10);

    Start

    Select count (*)

    in v_nd_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & old_nd_product_number;

    Select count (*)

    in v_normal_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & normal_product_number;

    -code below commented above works.

    end;

    Hello

    what something like this:

    create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
      v_nd_rec_cnt     number(10);
      v_normal_rec_cnt number(10);
    begin
        select count(*)
          into v_nd_rec_cnt
         from refmast.issues i
         where i.iss_product_num = in_old;
      --
        select count(*)
          into v_normal_rec_cnt
          from refmast.issues i
         where i.iss_product_num = in_normal;
    end;
    

    concerning

    Kay

  • Filter the Table during execution and keep uncommitted line changes

    Hello

    I have a requirement which has been quite difficult for me so far.

    I use the first version Jdev 12 c.

    I have a table of AF that is connected to a ViewObject that is used for sending new data.

    When I add lines to this ViewObject, I put a field that I intend to use for filtering so that the number of lines is not displayed at the same time.  This field comes from a selection of LOV.

    I want to be able to change lines are displayed in the table based on what is the current value of selection LOV.  This isn't a problem for me, and it works perfectly using a view criteria and a variable transitional EO I put in place.

    My problem is that when I select a new value in the LOV and change to bind the variable view criteria, I want all changes uncommitted to the lines to be preserved in the View object.  Currently, the lines are not keep their changes, and I need to do this, because after that the user has entered data for a large number of lines, there will be a commit to the database for all new lines added.  Is this possible or should I look for an alternative?

    I also tried to use a table filter in the link of the page layer, but I get an error that I can't debug. It is marked as Houston-34014.  In this method, I try to access my bean in pageFlowScope to filter the table.  This bean variable is updated when the LOV selection changes.  Error messages settings are {0 = oracle.jbo.Key [-220-225], 1 = root}.  I also read that this filter parameter is a static filter and does not dynamically during execution.

    Any help would be appreciated, thanks for reading.

    Hello lhymel

    I think that your problem is solved, so please close this thread and open a new thread for tuning related problem

    Thank you

    -Ashish

  • Fill the programmatic view object during execution

    Hi all

    I have a requirement to switch between the three different data source during execution in a single page. The user interface and the field names are the same for these three cases, but data from various sources (queries).

    So, imagine that we have 3 objects in view which has implemented read-only (object request depending on the view) and we want to fill a display object at the main performance as a data source for my page.

    My idea is to use "Prgorammatic view object" for this data source and then fill dynamically the contents of one of the three objects view read-only based on a setting in the user's selection.

    First of all, I want to know if it is thin approach and if yes, then get some points on the implementation or any other sample.

    I found this example:

    http://techiecook.WordPress.com/2011/05/17/programmatically-populate-view-objects-in-Oracle-ADF/

    Thanks in advance,

    Nasser

    Hello

    It is more a case of use for Adaptive connections. See:https://blogs.oracle.com/groundside/entry/towards_ultra_reusability_for_adf

    You can use EL to change the name of the ViewObject that an iterator in ADF queries its data. If the switch is on the link layer and there is no need for programmatic view objects. Unlike in the article of the blog above, VO 3 exist in your case then you don't need to create on the fly. Just change the name of VO in the managed bean referenced

    Frank

  • Can I create multiple dynamic entries during execution?

    Can I create multiple dynamic entries during execution?

    Oracle 11g
    Request Express 4.0.2.00.06

    Here's my problem:
    We have a table that contains metadata about the files (paper or electronic).
    We hope that we can need more columns in the table at some point and do not want to change the table or the application.

    So to do this I would like to create:

    A table called TBL_FILE with columns:
    NUMBER of TBL_FILE_ID (this will be the primary key)
    TBL_FILE_NAME VARCHAR2 (1000) (this will be the name of the file)

    A second table will be called TBL_FILE_META with columns:
    NUMBER of TBL_META_ID (this will be the primary key)
    NUMBER of TBL_FILE_ID (this will be the key to forign to the files table)
    TBL_META_COLUMN VARCHAR2 (30) (this is what would be the name of the column if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2 (1000) (this is the value of this record and the column "would be")

    If a person can have as many meta data in the file to add columns to the table.
    The problem is how can I allow users to add as much data as they wish with them having to re develop page.

    Other things to note is that we would like this be on one page.
    I know how to add we can create inserts several rows using a SQL (editable report).
    However the TBL_META_VALUE in the TBL_FILE_META column will sometimes be a selection list and other times one text box or a numeric field.
    So I don't see now a SQL (editable report) would work for this and I can't create a table of elements on the page running I can?

    No idea how I might accomplish this? Is there a better way to do this?

    It is a term or a name for what I'm doing by creating these "virtual" columns in another table?
    I found this method looking at the workflow tables Oracles.

    Welcome to the Oracle Forums!
    >
    Can I create multiple dynamic entries during execution?

    Oracle 11g
    Request Express 4.0.2.00.06

    Here's my problem:
    We have a table that contains metadata about the files (paper or electronic).
    We hope that we can need more columns in the table at some point and do not want to change the table or the application.

    So to do this I would like to create:

    A table called TBL_FILE with columns:
    NUMBER of TBL_FILE_ID (this will be the primary key)
    TBL_FILE_NAME VARCHAR2 (1000) (this will be the name of the file)

    A second table will be called TBL_FILE_META with columns:
    NUMBER of TBL_META_ID (this will be the primary key)
    NUMBER of TBL_FILE_ID (this will be the key to forign to the files table)
    TBL_META_COLUMN VARCHAR2 (30) (this is what would be the name of the column if it existed in TBL_FILE)
    TBL_META_VALUE VARCHAR2 (1000) (this is the value of this record and the column "would be")

    If a person can have as many meta data in the file to add columns to the table.
    The problem is how can I allow users to add as much data as they wish with them having to re develop page.
    >
    Creation of dynamic Page elements is not available. You must create surplus items and hide/show, etc. But you cannot change the element Type. Overall, too many restrictions in this approach.
    >
    Other things to note is that we would like this be on one page.
    >
    The limit of 100 points will hit you if you go with extra page element. With the form of tables that should not be a limitation, unless you're exceeding the limit of 50 APEX_APPLICATION point. G_Fnn points and limitation of the 60 column of the region report with "(analyze the query executing only) use generic name column" in the dynamic region.
    >
    I know how to add we can create inserts several rows using a SQL (editable report).
    However the TBL_META_VALUE in the TBL_FILE_META column will sometimes be a selection list and other times one text box or a numeric field.
    >
    If the type if the item is variable, that doesn't mean that you have to type a way to store the item. Metadata of meta data.
    >
    So I don't see now a SQL (editable report) would work for this and I can't create a table of elements on the page running I can?
    >
    Yes, you can do it. Update report / query in a table can be built from the metadata using the SQL query that returns the PL/SQL function . It will be a bit of coding in PL/SQL where you use metadata and metadata of Meta data to restore your SELECTION with the right APEX_ITEMs. He might have a decrease in performance associated with it, but it will not be a serious degradation.
    >
    No idea how I might accomplish this? Is there a better way to do this?

    It is a term or a name for what I'm doing by creating these "virtual" columns in another table?
    I found this method looking at the workflow tables Oracles.
    >
    I guess it's just a good TNF. This is the master model / retail Design, sounding more modern? ;)

    Kind regards

  • ORA-04088: error during execution of trigger ' SYSTEM. SET_CURRENT_SCHEMA_PM'

    Hello
    10 g R2 on Win 2008 Server DBSNMP can not connect:
    sqlplus dbsnmp@MYDB
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Aug 18 07:35:19 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Enter password:
    ERROR:
    ORA-04088: error during execution of trigger 'SYSTEM.SET_CURRENT_SCHEMA_PM'
    ORA-01403: no data found
    ORA-06512: at line 5
    But I have:
    SQL> select username from dba_users where username like '%DBSNMP%';
    
    USERNAME
    ------------------------------
    DBSNMP
    
    SQL> grant connect to dbsnmp;
    
    Grant succeeded.
    What could be the problem?
    Thank you.

    First of all investigate what is this trigger as below

    select TEXT from dba_source
    where NAME='SET_CURRENT_SCHEMA_PM' and type='TRIGGER'
    and owner='SYSTEM'
    

    You can also disable this trigger, then try to connect again.

    alter trigger SYSTEM.SET_CURRENT_SCHEMA_PM disable
    

Maybe you are looking for