Create a dynamic Variable in LabView (newbie Java developer)

Guys,

That's my problem, I'm a java developer & c ++ and was interested in learning about LabView. But also simple as indicated by the site OR it is not as banal that I expect it to be perhaps because of my though process. So what I'm trying to get a simple sample to help me start my LabVIEW.

Example in allows Java say I prompts a user to enter a value that the user enters the [value = 20] & I would be able to create [value = 20 new items], is the value regardless of the user enters. In LabView things do not seem to work that way. So I was hoping that someone provide a nontrivial simple example so that I can better understand how to apply it.

Thanks for you comments

Hi * E *.

I come from a Java background too so might be able to help. I found that LabVIEW is less demanding on the programmer necessarily specify the capacity or the number of variables being created during development and it's a little more intuitively in the background.

What types of data are you interested? From your post, I would be tempted to use a Subvi "Initialize the array" and wire just at the entrance to size dimension user input.

In LabVIEW, it is considered advisable to use wires instead of variables wherever possible because they focus on the stream of data as part of the program.

That help a little?

Tags: NI Software

Similar Questions

  • Repository dynamic Variables

    Hi guys,.

    I noticed a problem in obiee 11g (thousands, unfortunately).

    I create different dynamic variables (repository) to be evaluated by a single query.
    If I test the block of initialization, it's all ok, and each variable to find a corresponding value from the query.

    But the programmer does not work and all the variables that remains to be equal to the default values.

    Why this behavior? Does anyone have the same problem? Solutions?

    Thank you very much.







    moved here from Business Intelligence Application *.

    Hi andysax

    I faced a similar problem when editing online a repository of 11 g. Oracle noted a bug (10394725) and developed a patch to me correct the fault. It was caused by the administration tool does not release its lock on the init block.

    A couple things to check to verify that it is the same problem. Look in your nqServer.log to see if there is an error concerning «unable to acquire an exclusive lock...» ». You edit your SPR in online mode and took a very long time recording?

    Kind regards
    Paul
    http://total-bi.com

  • How to create a dynamic form with bind variable: figure &: table_name

    My application has two LOV, one to select a schema and the other to select a table in this schema. Then I have a button that goes to a report that displays data in this table.schema.

    Now, I want to create a link to a form where I can edit the record based on the identifier of this table.schema, but it does not appear that I can create a dynamic form where I pass the schema.table_name and the rowid. Is this possible? Can someone tell how can I do this? The form builder only wants a fixed schema/table name.

    Thanks in advance.

    Stuart.

    Hi Stuart,

    If you create your section in the section #BOXBODY # it will already have to be encapsulated in a form.

    He will submit to the correct location.

    If you call your field of multi line field names, they will be stored in them.

    form field f01 is mapped to wwv_flow.g_f01

    Concerning

    Michael

  • "Not a valid error code" when you create a shared variable of data type custom

    I am trying to create a shared variable with a data type of a 2d double table. I created a custom control that contains a table with a numeric type for this 2d. Manager of distributed system v12 I select 'add a variable', then select 'of the custom control. Once select my control I get the following error: "invalid data type. You want to choose a different data type. Any advice as to why it doesn't work? Thank you.

    This seems to be recorded in the CAR #405941.  All this is a bit strange, but I'll try better possible workaround solutions I can.  I tested a large number of these myself, and here is what I found.

    1. make sure that the custom control you did was created in 2012 of LabVIEW or you save it in an earlier version.  If you save on an earlier version, you may also open the .ctl in LabVIEW 2012 and resave it (I needed to do).  I tried to create my own control in 2012, as well as save the control to a previous version, the two worked, but I don't end up with the same result (I don't understand this, but I wanted to mention it so that you know).

    2. it seems that you are able to make the variable shared by program by modifying the example of the community to adapt to your needs.  If you do not need to create many variables it may be the best option if it works for you.

    I would also try adding the variable of the LabVIEW project, you are working on that.  It wasn't a direct troubleshooting step but there are several ways of doing things in LabVIEW and, sometimes, one of them is working while the other does not.

    Edit: Example of community is here https://decibel.ni.com/content/docs/DOC-16863

  • 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

  • How to use a dynamic variable in guest of dashboard

    Hello

    I'll have a filter in my dashboard that display values only 15 (from max max-15). I created two dynamic in RPD as variables below

    Exec_Time1: SELECT max (CAST (START_TS AS TIMESTAMP)) FROM tablename
    Exec_Time2: SELECT MAX (CAST (START_TS AS TIMESTAMP))-15 FROM tablename.

    In the dashboard, I want to use the filter as timestamp between @Exec_Time1 and @Exec_Time2.


    Could someone explain how to apply this filter.


    Thank you
    Pushpa

    great (always nice marking ;-)))

    KR,
    A

  • Create Unique Session Variable based on the login page

    Hello:

    I'm building a dynamic website with Dreamweaver CS5 with Coldfusion 9.

    My question is how can I set a session variable to read a certain value. It is currently when my clients go to the login page they enter their username and password. I was able to create a session variable that contains the user name as value. So in all their pages read Welcome website "all that was their connection username. Now, I want to get the session variable to read the same table but the different FullName field. This way, that the web pages will say Welcome "FullName (based on their login user name)" I tell myself that I have to configure a query parameter, but after trying and failing for four hours to produce a successful result, I resorted to post my problem here. I appreciate the help and advice.

    My information:

    DataSource = Table 'Access' = 'Logininfo' (current) land (for the session variable) = 'User_name' (desired) field (for the session variable) = "full name".

    Currently using (server behaviors: Variable de Session) MM_Username on each relevant page for the user.

    My sign in page code is as follows:

    Head:

    < IsDefined ("FORM.username") cfif >

    < cfset MM_redirectLoginSuccess = "members_page.cfm" >

    < cfset MM_redirectLoginFailed = "sorry.cfm" >

    < "MM_rsUser" datasource = cfquery name = "Access" >

    "SELECT AccessLevels FROM Logininfo WHERE username, password, username, FullName is < cfqueryparam value =" "#FORM.username #" cfsqltype = "cf_sql_clob" maxlength = "50" > AND password = < cfqueryparam value = "#FORM.password #" cfsqltype = "cf_sql_clob" maxlength = "50" >

    < / cfquery >

    < cfif MM_rsUser.RecordCount NEQ 0 >

    < cftry >

    < cflock scope = "Session" timeout = "30" type = "Exclusive" >

    < cfset Session.MM_Username = FORM.username >

    < cfset Session.MM_UserAuthorization = MM_rsUser.AccessLevels [1] >

    < / cflock >

    < cfif IsDefined ("URL.accessdenied") AND false >

    < cfset MM_redirectLoginSuccess = URL.accessdenied >

    < / cfif >

    < cflocation url = "' #MM_redirectLoginSuccess # ' addtoken ="no">"

    < cfcatch type = 'Lock' >

    <! - the timeout of cflock management code - >

    < / cfcatch >

    < / cftry >

    < / cfif >

    < cflocation url = "' #MM_redirectLoginFailed # ' addtoken ="no">"

    < cfelse >

    < cfset MM_LoginAction = CGI. SCRIPT_NAME >

    < cfif CGI. QUERY_STRING NEQ "" > "".

    < cfset MM_LoginAction = MM_LoginAction & "?" & XMLFormat (CGI. QUERY_STRING) >

    < / cfif >

    < / cfif >

    Body:

    Connection < h1 > < / h1 >

    < p > please enter your login information the registration form in order to access your member account page. < /p >

    < form ACTION = "" < cfoutput > #MM_loginAction # < / cfoutput > "method ="POST"id ="login"> < table width ="auto"border ="0"align ="center">"

    < b >

    < td > < label for = "username3" >

    < div align = "right" > user name: < / div >

    < / label > < table >

    < td > < span id = "sprytextfield1" >

    < input type = "text" name = "user name" id = "NomUtilisateur2" accesskey = "n" tabindex = "10" >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < /tr >

    < b >

    < td > < label for = "password" >

    < div align = "right" > password: < / div >

    < / label > < table >

    < td > < span id = "sprypassword1" >

    < input type = "password" name = "password" id = "password" accesskey = "n" tabindex = "15" >

    < span class = "passwordRequiredMsg" > a value is required. </span > < / span > < table >

    < /tr >

    < b >

    < td colspan = "2" > < div align = "center" >

    < input type = "submit" name = "submit" id = "submit" value = "Login" accesskey = "n" tabindex = "20" >

    < / div > < table >

    < /tr >

    < /table >

    < / make >

    < script type = "text/javascript" >

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1");

    var sprypassword1 = new Spry.Widget.ValidationPassword ("sprypassword1");

    < /script >

    I'm sure it is something simple and will show my status as a rookie for the asking, but thanks for your help!

    A session variable is also the best route to go? I'll use this to query databases to display and allow them to change contact information, also show their invoices and request services.

    I don't know CF so forgive me, but you can create a session for fullname variable or use a query on your pages to filter the data WHERE username = user session variable. Looking at your code, it looks like you can add a session to the full name variable here:

  • Dynamic variable names

    Well, I just need to understand how to make dynamic variable names. In this case, I have a loop, and inside the loop, I need to create a table for each iteration of the loop. Something like

    < cfloop from = "0" to = "10" index 'i' = >
    < cfset LoopArray #i # = Some Value >
    < / cfloop >

    But it does not work. How can you make a dynamic variable named? I think it's probably something to evaluate them with or, but I don't know how to use them and the livedocs are meaningless to me. Thank you!

    See attached example.

  • AS2 syntax and dynamic variable names

    Hi all

    Try to learn AS2 and hoping someone can help me by explaining the problems with the following code example, and what would be needed to make it work (i.e. to create dynamic variables and some clips from a table).

    Thanks for your time!

    :

  • Dynamic variable

    I want to add pages to an accordion component. The following code does not work:

    some_number_between_1_and_10 returned by the call to the database

    var numpages:uint = some_number_between_1_and_10;
    var cnum:String;

    for (var i: uint = 0; i < numpages; i ++) {}

    VALUE = "c" + i;
    This [value]: canvas = new Canvas();
    This [value] .label = "Page" + (i + 1);
    myAccordion.addChild (this [value]);

    }

    The first use of this [value] will return the error: label must be a simple identifier.

    So how to set and use a dynamic variable?

    Doug

    You can create 'dynamic' variables in the way that you are trying to do. Variables dynamic are also bad programming style that's why AS3 makes it more difficult to do. In your case, it is best to use a table:

    pages of the var: Array = new Array();

    for (var i: uint = 0; i
    {
    var page: canvas = new Canvas();
    page.label = "Page" + (i + 1);
    myAccordion.addChild (page);
    pages.push (page);
    }

    Then you can see each page as page [0], [1] pages, etc.

  • How to create a table variable

    Hi people,

    I develop a fly activity, for each branch created, I need to pass different values (that I get from DB).

    For this, my plan would be,
    -create a load of variables, array of all the values in the table (from DB)
    -pass the array to each branch in fly activity based on the index

    As I am newbie to BPEL, I don't know how to create a table variable.

    You people could guide me please.


    Concerning
    VIKI

    To add to the response of Anne:

    use XPATH to get your value

    entry/string_array / [1]
    / string_array/input [$counter]

  • How to pass variables between Labview and Teststand

    It is probably a trivial question, but I'm new to TestStand. All I'm doing is updated to a variable in Labview and then pass this value in a local variable Teststand. A simple test that VI is attached. I get no error and it seems correct, but when I followed the variable via TS watch display is not updated. Also I am not able to read the variable outside TS. It is probably a trivial thing, I'm doing wrong, but I'm stuck.

    Too bad, it was simple. Just need to add the context of sequence as input, then set it to ThisContext TS

  • How to create a Global Variable through the Project Explorer

    Hello world!

    I know how to create a global variable (in a vi through the range of functions...).

    but I'm missing a way to create one via the Project Explorer.

    It's a missing feature or just this documentation (and the intuition of myself) are missing?

    It would be very convenient.

    THX for your time and hope that answers.

    jwscs

    Right click on my computer > new > new... > select Global Variable.

    EDIT: although I agree with Gerd (he probably wondering why you need so we can recommend a better way ), I rarely use them in easy to write once - read many applications such as security levels overall program at initialization (VER) to read later, but NOT modified.  I know it would be better to make a good class, functional Global Variable (FGV) or a motor Action (AE) but globals ARE practical and safe IF used wisely.

  • can I create a DLL file for labview that has DLL library with inside?

    Hello everyone,

    I am developing an application for the cards PCI devicenet in labview (beginner to labview) environment.  Is there a DLL file for the PCI card from the provider. But it's too complicated for a beginner to call each function in the DLL of labview. Therefore, I'm trying to re - use a VC ++ program (working properly) that calls some sellers DLL library functions.    To do this, I created the DLL file which includes all headers and libraries the provider DLL, as indicated in the attached figure. But I couln can't see the effect on the device. is it possible to create a DLL file for labview that has DLL library with inside? If this is not the case, how can I implement the program shown in figure?

    I would like to wish a huge as to advance.

    It is not something I have a lot of experience in so I don't know all the details of the restrictions or requirements etc - but it is certainly possible to create wrappers for the dll and then use them in LabVIEW - this is sometimes necessary to convert some native types/data structures in C/C++ into something that you can switch to your other DLL LabVIEW.

    There is a link here: http://digital.ni.com/public.nsf/allkb/06ECDC689DDA0F3D862574440074CD95

  • How to create a global variable?

    I want to create a global variable start button to control programs in the structure of the sequence. But I do not know how to creat it. Thanks for responding.


Maybe you are looking for

  • Qosmio G10-133 - battery not detected after upgrading to Windows 7

    Hello, I hope someone can help my frustrations here. In recent weeks, I successfully upgraded my laptop to Windows 7, an increase of memory to 2 GB, bought new power cord for laptop, new battery and resolved all the issues that Windows 7 has cast on

  • Question about Windows 8 drivers for Satellite L850 - 16 d

    Hello world I just know if the drivers available for the Satellite L850 - 16 d under the title "upgrade of windows 8" are also good for a new total installation of 64-bit windows 8, or if they are only good for an upgrade to Windows 7 64 bit. Thank y

  • I use Deep Freeze on my C drive and wan to store the Firefox profile on my D drive.

    I use Deep Freeze on my C: drive and you want to move my FireFox profile on my D: drive and have FireFox we the D: drive to store my favorites. Thank you

  • Sequence

    Hello, I have a question about a single sequence. I stop my program and I reboot, where I stopped. How do I do that? Thank you

  • BING maps look a real time?

    Y at - it options of Microsofts Bing Maps, that would allow us to display real-time maps activities.  Our company has a large inventory of cattle spread over a large area and it would be nice to make a quick trip of surveillance around the place with