Complete the table of reference

Hello

What I want: complete a table that is inside a container and named function of input parameters.

What I tried:

I created an object reference, Locals.obj_temp, which stores the set I want to fill the inside of the container.  I seem to be able to get the number of items, define the limits of the table, insert items, etc., but I can't figure out how to put values in there actually.

I learned today that I can use ' * ' for dereferencing the ref of the object, so I use

InsertElements(*Locals.obj_temp,"[0]",1),

to add an item correctly.

But, I don't know how to make the value I want it to be, and not not not the default value zero as shown in the picture.

for what it's worth, this is how I make the new table inside the container and obtain a reference to it.

Parameters.UniqueFCs.NewSubProperty(Parameters.UniqueFullTable[0][Locals.m],PropValType_Number,True,"",0),
Locals.obj_temp = Parameters.UniqueFCs.GetPropertyObject(Parameters.UniqueFullTable[0][Locals.m],0),

I found a way to do it.

I created a temporary table as Locals.Arr1 and clone to the container parameter I want.

For all of you who found this thread, I have

Locals.Arr1 //my table temp I empty at each iteration of my loop for external

/*
code that fills Arr1
*/
Locals.obj_clone = Locals.Clone("Arr1",0), //create a clone of obj of Arr1
Parameters.UniqueFCs.SetPropertyObject (Locals.name_temp, 1, Locals.obj_clone), //copy Arr1 table in my output tray (my container is called UniqueFCs)

Tags: NI Software

Similar Questions

  • Complete the table 2D-report dynamically

    Hello

    is there a way to create a Table 2D mode report dynamically with the method "Data.GetChannels"? ".

    I've got this starting position:

    -in the Dataportal are up to 5 groups (maybe less...)

    -in each group is a channel 'speed' and 'time', which has only a single value

    No, I want a 2D in report Table that looks like this

















    Time 100 200 Group 3-time-value
    Speed 25 30 String value in a group 3
    more channels 1 2 String value in a group 3

    I can do this by using textlists for each col, but the handling is very bad if a channelname Exchange.

    An alternative workaround blend groups temporarily to one group, but I hope there is a way to use the Data.GetChannels("Group*/Speed") command.

    Greetings,

    Martin Kozlowski

    Hi Martin,

    In general I would discourage you to use channels with only 1 value.  In almost all cases, it is best to store this information as a property of the channel or group.

    You can still get something like what you ask to leave your 1 value existing channels if you create columns of table which is of type "Expression", set up the table to be in a display of 'Horizontal' alignment, the value of the number of scale of lines the right number of groups and use expressions like these :

    @Data.Root.ChannelGroups (D2TabRow). Channels ("Time"). Values (1) @

    @@str (Data.Root.ChannelGroups (D2TabRow). Channels ("Noise"). ("Values (1), d.dd") @ «»

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Count when the boolean function is true / complete the table

    Hi all

    I think that this is a task fairly easy, but for some reason, I can't get it to work.

    The problem is explained below:

    I have 3 slider that gives either 0,1,2. I have a button "next" which is actually a Boolean button. Every time I click on the 'next' button, I want the values of the scabbard 3 (0,1,2) to go into a table. The array index is decided by how many times I clicked on the button "next". Basically if I click Next the first time, the values should go to the 0th row, when I clicked on the second time, he should go to the first line, etc... This should continue to happen until I click on the button stop, when it should display the table populated with its index corresponding to me.

    I tried to use a program for a Boolean County who continually keeps count how many times I pressed the next button. But this loop continues indefinitely. Otherwise, it starts from 0. I don't know how to do it well.

    The program is presented here with comments.

    Help, please

    Gayatri

    You should really use a structure of the event.  Keep the table in a shift register and simply use table build to y to add whenever the next value change event will occur.  Have another event for the stop button.

  • PLSQL - complete the table of records using the constructor

    Hello

    Stripped of example of what I'm doing. I know I've done this before, but my SVN is arrested for maint atm. Don't know why I get this error:

    Thank you.
    DECLARE
        
        TYPE t_Record IS RECORD
        (
            Table_Name  VARCHAR2(30),
            Num_Rows    NUMBER
        );
        TYPE t_RecordList IS TABLE OF t_Record;
        
        v_Record        t_Record;
        v_Tables        t_RecordList    := t_RecordList();
        v_Schema        VARCHAR2(50)   := 'SYS';
        
    BEGIN
    
        FOR i IN (SELECT * FROM all_tables WHERE owner = v_Schema)
        LOOP
        
            v_Tables.EXTEND;
            v_Tables(v_Tables.LAST) := t_Record(i.Table_Name, i.Num_Rows); -- Line 19
        
        END LOOP;
    
    END;
    
    ORA-06550: line 19, column 36:
    PLS-00222: no function with name 'T_RECORD' exists in this scope

    Documents is not the builders functions, something like this might work (unless you want to use objects instead):

    v_Tables(v_Tables.LAST).Table_Name := i.Table_Name;
    v_Tables(v_Tables.LAST).Num_Rows :=  i.Num_Rows;
    
  • How to determine the strict reference to the table of waveform

    Hello

    I want to change the properties of a waveform by programming. I used to get all references maps of waveform a function of range in my script VI VI. Then I typecasted references to more specific class (strict-single track) after this trial I was able set properties such as data history. Everything works fine but if I add a graphic that is multiplot, that this approach does not work.

    The problem is that in the table of references, there is reference to a graph in multiplot waveform, and this reference is not possible typcast to the more specific category (strict-single parcel).

    My question is: how to determine if the reference in the table is matching the proper waveform (single or multiplot) charts.

    In the VI attached is a code that demonstrates my problem.

    Thanks a lot for the replies

    Jan

    Thank you for advice. VI point 2 from your answer, I created and it works. The solution is attached.

    If I understand it correctly. I need to know the type of chart to come.

    My first idea was to create a VI in Drop that initializes all the graphics of VI on chart type independently.

    But this solution is fine because I will only use graphics-single plot and multiplot(two elements).

    Thank you

    Jan

  • How to import the list of virtual machines to complete a table in a workflow

    When you run the followingworkflow/library/vCenter/batch/run a workflow on a selection of objects

    How import you a list of virtual machines to complete the table of virtual machines?

    At this moment we are manually by selecting the virtual machines and adding them to the table individually which is very tedious. We would simply import a list.

    There is a certain ways that you can do what you're trying to do, but from your description, it looks like a wrapper will work best.  I enclose a simple workflow that loads the table from a csv file.  There is no error checking going on, but it should help you get started and you can expand on it from there.

  • Help for the reconciliation of the table in a sequence

    I need assistance with the values of an array 1 d of channels read. Table 1 d of strings contains the names of the columns in a different table.

    This must be included in a file, but only once. IM is able to do, but the only problem, the table 1 d of strings contains the previously stored values.

    These values are from a list box, which is frozen as soon as the user clicks on the button OK/START in VI. I would like to print the values of frozen listbox, but it prints the values of the unfrozen ListBox instead.

    The problem is clear to me, I should create an empty array of strings and stores this value, but where in the order this is done?

    I have attached the VI, 'Header' is the table I'm talking about.

    Thank you

    Eureka

    Solved!

    I tried to complete the tables of empty strings in the header sub - VI writing and it works!

    Thank you

    Eureka

  • Check if the table contains a value

    Hi all

    I have a table in TestStand that contains numbers. Numbers are generated by a VI and are ranked randomly.

    (1) how can I check to see if the number "6481" is in this table using a step of TestStand?

    (2) is it possible to put this empty table in TestStand, and then complete the table to the size needed when the VI move back the numbers. (i.e. do the table to the size that the VI generates during execution)?

    See you soon,.

    Chase

    I think you will be interested in this Jürgen!

    I managed to do it in 'one step', using a loop.

  • Problem with creation of table of references notifier by using a loop

    Hi all

    I am attaching two try_ChannelsOn2ndMonitor.vi screws out of the random values to four graphics and ChannelGraphsOnSecondMonitor2.vi receives these values through an array of references Notifier and refers to four corresponding graphics. Essentially, the graphics in the two screws are supposed to - and do - displays the same values.

    As a first step, using a loop to create the table of references of the notifier, I was unable to get the four graphs in the sub - VI to produce the desired values. They showed only the values in Figure 4 in the main VI. I tried to use the indexing, and then I tried using Shift Registers associated with the function of 'Building the table', but none of these methods worked. Finally, the only method that worked was that you see in try_ChannelsOn2ndMonitor.vi, which was to create four reporters simultaneously and combine them using 'building the table '. My question is: why is it not possible to create the array of references notifier by using a loop and always get the correct functionality? I spent a few hours I wondered about this.

    All of the comments related to my use of the notifiers, notifying bays or the reference of VI in the Structure of sequence are also appreciated. The structure of sequence is only there because the sub VI must be taken out of a second monitor; I essentially disabled it by setting the FP. State to 'Standard '.

    Thank you!

    Nemanja

    The table is still the order of the references notifier - so that you know the correct order.

    When you say "it will continue execution as soon as one of the notifications is received", do you know if it means he will send this notification for each registrant, or just for the appropriate warning system?

    I'm waiting on multiple notification - if you expected to return (and continue to run) once it receives all notifications I don't think it's what he does based on my understanding of the documentation.

    OK, now that I have had a good look, I probably slightly different framing the code - I propose the Subvi out of the while loop and then put a while loop around the code in the Sub - VI. Something like this:

    That's what I wanted to say to have individual loops for the Subvi - terminal error is connected to the judgment for loops (and thus the VI) stop running when you release the notifier. That should remove the need for static VI reference as the VI remains before the end of your first level VI - then you can move your code of positioning inside the Subvi.

    Using the sequence of structures here as you have done to make sure that the code block happens before your start of loop is very good, another common method is to wire the error out in (or at) the border of the loop - in a more complicated application, you would maybe put this code in a State 'init' of a state machine.

  • Reconstruction of the table should be performed after removal of most of its data?

    Hi all
    We are on Oracle 10.2.0.4 on Solaris 10. There is a table in my DB of production that has 872944 number of lines. Most of his data is now useless, that it must keep, based on a date column in the table just last a month of rest data and delete data. Thus, after the array will be just 3000 lines.

    However, as the table was huge earlier (872 k lines before you remove), the deletion of data releases his oracle blocks and reduced the size of the table? Otherwise, this will help in the reconstruction of the line (redefined online) table so that the query that performs a full scan on this table goes faster?

    I checked using an example of a table that simply deleting data does not remove the oracle blocks - they remain in the user_tables for this table and complete the table scan cost remains the same. I think that after this deletion, I have to do a re-definition of table online, which is the right decision so we have a query that makes the full table scan?

    Thank you

    If read you about the orders, you will find that they require a DDL lock. Your users should not notice this.

  • How can I set up a table of reference for comparison of the measure?

    Hello

    The configuration of my inspection VBAI code section indexes automatically through a series on the exposure time.  The intensity of the image, to each exposure time, is compared to the parameters of current at the time of the exposure range.  (This is due to the many colors of part) When both the parameter corresponds to the intensity of the image AND the exposure time, he acknowledged the best exposure time setting, and it stops and is then ready for inspection tests.  Different pairs of time of exposure and intensity parameters are part of the code of the algorithm.  When the new colors are added, the code must be expanded.

    I would like to know if a reference table can be put in place so that the code finds the correct corresponding pair in the table.  Then, it should only add rows to the table.

    Thank you

    I'm not sure that I fully understand what you want to do, but it looks like you might be able to take advantage of the new feature of table in VBAI 2012. With this, you can create two variables 1 d digital... one who is an array of values of exposure and the other which is an array of measures of intensity. In the part of the configuration of your control, you can either use two table operator not (to get the same index in each array), or you can use a step of the calculator to get exposure to acquire with time and intensity expected to compare to.

    You can also use step INI of read/write on the last tab to update these variables of two table with values of exposure/intensity since an INI file is easy to update the INI and get your up-to-date without changin the inspection automatically set variables you need to add more combinations.

    Hope this helps,

    Brad

  • create table of references to the elements of the array to another

    I was trained by support OR read an array of image files in a table of indicators of the photo and then in order to save memory, establish a table of references in the table of elements "indicators photo so that I can use them in a subsequent loop."    Does anyone know a quick way to create this array of references to a table of indicators of the photo?

    That's what I think is meant by this recommendation, but it was written improperly.  I needed another view of people to him and got him - Thx

  • Is it possible to create interactive drop-down lists that reference the tables on pages separate from the PDF?

    I'm looking to create a user to input PDF in the drop-down lists are used to search for tables, however, I'm not very familiar with the options that are available or if this is even possible?  Also, is it possible to write a substantive code that could read the text of the user entered to perform a search or even solve an equation? Can someone let me know if these elements are possible and/or let me know what adobe program may be required to accomplish these tasks? Thank you!

    PDF documents have no concept of "tables" as MS Word or MS Excel has. There is content that looks like a table.

    Acrobat JavaScript knows tables and form fields. So we could have a table in JavaScript and complete a series of fields that looks like a table. You can use JavaScript to find the table.

    JavaScript in Acrobat can accept user entries in the fields and pop-up windows.

    It is possible to solve theoretical equations the user if the good rating or coding is used.

    D.P. Story is an evangelist generated LaTex PDF to create PDFS with mathematical symbols, and he also created the AcroTex product that allows to create educational tools that includes mathematics calculation self placement tests.

  • Complete the URL for popupURL of a table/Page element?

    Hi all
    Someone please tell me if the URL to run a report BEEP can be filled with a table/page element when using popupURL and if so, how?

    Background:
    I have a Table called TBL_LETTERS with a column varchar2 REPORT_URL
    I have a Page (Pg 303) that fills a Page of text element (P303_REPORT_URL) with a URL string appropriate to the table.

    Here's my problem:
    I would like to replace my function javascript to work (see below):

    Run myLetter_40()
    {
    popupURL ("& BI_URL. Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf= & _xpt = 1 & P_CASE_ID = & P303_CASE_ID. & P_PERSON_ID = & P303_PERSON_ID. & _xt = MM_40_xf = rich text ');
    }

    with something like:

    Run myLetter_40()
    {
    popupURL ($x("P303_REPORT_URL").value);
    }

    .. .but it does not work.

    With my knowledge of limited javascript, I can only imagine that the variables with success a value in my first example of assigned function do not succeed to my second, I'm probably just passing through all this as a simple string (like this: + & BI_URL.) Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf= & _xpt = 1 & P_CASE_ID = & P303_CASE_ID. & P_PERSON_ID = & _xt = MM_40_xf & P303_PERSON_ID = rtf +), but would appreciate very much all the advice.

    What I need to
    a. create the string of REPORT_URL differently in the table so that when it is passed to the Page element it includes the required variable data?
    b. something completely different?
    c. the forget, it is not possible!

    PS. I use Apex 3.2.1
    Thank you in advance.
    Sue

    Published by: smp245 on August 21, 2012 14:19

    Hi Sue,

    you could build the url with javascript like this:

       popupURL('&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=' + $v('P303_CASE_ID') + '&P_PERSON_ID=' + $v('P303_PERSON_ID') + '&_xt=MM_40_xf=rtf');
    

    the javascript $v function belongs to the Apex javascript library and gets the value of an element of HTML page.

    Kind regards
    Erik-jan

  • Table of misinterpretation of the SQL Developer Reference

    I use SQL Developer with Oracle 11 g DBMS 2.1.1.64.
    I've noticed recently that even if the DBMS allows you to create a table and a function with the same name, if I try to type a variable % TYPE by using the table, that I have just mentioned, there is a compilation error. For example, there are cancel_tag_range and cancel_tag_range of the table function. Then I do this variable declaration:
    v_current_tag cancel_tag_range.start_tag%TYPE;
    that translates into error "PLS-00225: reference of the subprogram or cursor 'CANCEL_TAG_RANGE' is out of range."
    that is, SQL Developer interprets as a reference to the function, not the table.
    It seems to me that the SQL Developer should know how to handle this. After all, the DBMS let me name 2 objects the same - which I think should be a problem because they are different object types - one is an array and the other a function. In addition, the context of the statement should specify that the table is referenced.
    Why does this happen? And there at - there no way to get around this other than rename one of these objects? Thank you.

    SQLDeveloper use the PL/SQL compiler in the DBMS so the error comes from the DBMS. You'll have to rename it, I suspect.

Maybe you are looking for