Variable LabVIEW can be used as those found in a Java program?

I created a program of decoding in Java which reads in a number or code, and returns the decoded version of this number.

I tried initially to create this program inside LabVIEW herself but was prevented by my lack of experience and knowledge of what LabVIEW may or may not do, and how to approach the problem in LabVIEW.

My stumbling in LabVIEW seem to be tables and variables work. I probably do things completely wrong, more than likely because I'm thinking in Java instead of LabVIEW.

Any help that can be given is most appreciated. I've also attached a text document with my code Java inside. It is not perfect, but it works.

If I need to clarify anything just ask.

Once again thanks for any help in advance.

In LabVIEW, the wire is the variable. The way in which you pass parameters to the functions (subvis) is with a wire through the side of the connector. Ditto to return results.

Forget that local variables exist! Many new programmers come from a text based programming background discover local and global LabVIEW variables far too early. As the tape, they can be useful. But it is possible to write huge complex applications without touching. And the code is much simpler than the programs less complexity that use local and global variables.

Since you are new to LabVIEW, you can become a very good programmer if you keep the following in mind. It's a little confusing, but "local variables" and "global variables" are not really variables in labVIEW as they are in Java. The sons are the variables. These things from the rectangle, you create controls or indicators look more like a function for the control or the indicator. They cannot exist without an owner indicator or a control; It is unfortunate that they are called variables, but they are a relic of the stone age when the code was carved in the walls of the cave.

Tags: NI Software

Similar Questions

  • What is the first version of labview can be used with a USB-6001

    What is the first version of Labview, which can be used with a USB-6001?

    According to the user's Guide, you must DAQmx 9.9 or later version.  The oldest version of support DAQmx 9.9 is LabVIEW 2010 (DAQmx and LabVIEW version compatibility).

  • Can I use another photo (NOT in Photo Gallery) program in Windows 7?

    Windows Photo Gallery is terrible.  Icons, not photos and just a mess in general.  Can I use another program in Windows 7?

    Try Movie-Maker, also, WMP can import videos & photos in its default view, you can import

    a folder either for WMP display in his library...

  • LabVIEW can be used for programming of the Texas Instruments MSP430 microcontroller for applications of sensors?

    I want to ask how can I configure msp430-rf2500 after installing the visa drivers (Device Wizard). I m not getting the data from the msp430-rf2500 while I m get this data into the hyper terminal. Please guide me!

    Hello

    If you are able to read the data in hyperterminal, and then you will be able to read in LabVIEW. Have you looked at the basic reading and writing VI series in the examples? If this isn't the case, it would be a good starting point.

    Make sure you have good flow baud rate, the port COM etc.

    Also, will not be able to use the COM port while it is used by hyperterminal - please close hyperterminal and then use LabVIEW LabVIEW.

    If you've tried all this, your postal code so that we can help you

    -CC

    p.s. the button clicked the 'Me Too' by chance - I blame not having is not a cup of tea this morning!

  • variable binding can be used for the table in an explicit cursor

    I have an application that accesses a table on several different servers. I created a ref for the slider cursor variable and a varchar2 variable to define my query. variable I_server is a parameter to my procedure. Is it possible to rewrite the v_query using bind variable for the table/Server? I have included below v_query.

    v_query: = "SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs," |
    "rp.mon_sft_cat, rp.mon_start, rp.mon_hrs, |
    "rp.tue_sft_cat, rp.tue_start, rp.tue_hrs, |
    "rp.wed_sft_cat, rp.wed_start, rp.wed_hrs, |
    "rp.thu_sft_cat, rp.thu_start, rp.thu_hrs, |
    "rp.fri_sft_cat, rp.fri_start, rp.fri_hrs, |
    "rp.sat_sft_cat, rp.sat_start, rp.sat_hrs, |
    "rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft, |
    "rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl (ei.wip_permanent_sched_seq, 0) ' |
    'FROM ' | I_server | "rp, wip_emp_information ei, |
    'wes, wip_emp_status_type West wip_emp_status' |
    "WHERE rp.usr_id = ei.employee_id' |"
    "AND wes.employee_id = ei.employee_id' |"
    "AND wes.status_type = west.status_type' |"
    "AND west.description =" STOREKEEPER "' |"
    "AND wes.effective_date = (SELECT MAX (wes2.effective_date)' |)"
    "OF wip_emp_status EMTE.2 |
    "WHERE wes2.status_type = wes.status_type' |"
    "AND wes2.employee_id = wes.employee_id' |"
    (' AND wes2.effective_date < = trunc (SYSDATE))' |
    "AND wes.status = rp.wk AND"Y"= 1'; -wk = 1 is the schedule for next week

    Rp_sched_cursor OPEN FOR v_query;

    If your intention is to do this:

    v_query := 'SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs,' ||
    ' rp.mon_sft_cat, rp.mon_start, rp.mon_hrs,' ||
    ' rp.tue_sft_cat, rp.tue_start, rp.tue_hrs,' ||
    ' rp.wed_sft_cat, rp.wed_start, rp.wed_hrs,' ||
    ' rp.thu_sft_cat, rp.thu_start, rp.thu_hrs,' ||
    ' rp.fri_sft_cat, rp.fri_start, rp.fri_hrs,' ||
    ' rp.sat_sft_cat, rp.sat_start, rp.sat_hrs,' ||
    ' rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft,' ||
    ' rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl(ei.wip_permanent_sched_seq, 0)' ||
    ' FROM ' || :b0 || ' rp, wip_emp_information ei,' ||      --- Note the bindvariable...
    ' wip_emp_status wes, wip_emp_status_type west ' ||
    ' WHERE rp.usr_id = ei.employee_id' ||
    ' AND wes.employee_id = ei.employee_id' ||
    ' AND wes.status_type = west.status_type' ||
    ' AND west.description = ''WAREHOUSE EMPLOYEE''' ||
    ' AND wes.effective_date = (SELECT MAX(wes2.effective_date)' ||
    ' FROM wip_emp_status wes2' ||
    ' WHERE wes2.status_type = wes.status_type' ||
    ' AND wes2.employee_id = wes.employee_id' ||
    ' AND wes2.effective_date <= trunc(SYSDATE))' ||
    ' AND wes.status = ''Y'' AND rp.wk = 1'; -- wk = 1 is next week's schedule
    
    OPEN rp_sched_cursor FOR v_query USING i_server;
    

    So the answer is: no, you can do that.

    But then, my question would be: why would you do that?
    I guess that you have many "different servers. A cursor on the server will not hurt you.

  • Where can I find a list of all environment variables that can be used in the getenv() function?

    Hello

    I tried to find a list of all the environment variables to the OM of InDesign, alas, without success. I have already stumbled on what follows.

    $.getenv ('computername');

    $.getenv ('username');

    Even in the wonderful Jongware of object model (Adobe InDesign CS5 (7,0) object model JS: Table of contents) there is no information on that.

    I am looking for reference library containing these values. I have no specific in mind script task.

    Any help much appreciated!

    Olli

    You answer me here. In the good old Wikipedia there is a page on this. Check it out:

    Environment variable - Wikipedia, the free encyclopedia

  • can not use support mode bye as says. the program is still running does not appear on the desktop

    mode of stand bye will not stay because 1 program still works how to find and remove this program

    Hello

    Before we perform a Windows XP repair installation, you can try the following methods and check.

    Method 1.
    If this problem started occurring recently, you can restore the computer to a previous state.
    Reference:
    How to restore Windows XP to a previous state
    http://support.Microsoft.com/kb/306084

    Method 2.
    If the problem persists, then create a new user profile and then copy your current users assigning to this profile. For more information, see:
    How to create and configure user accounts in Windows XP
    http://support.Microsoft.com/kb/279783

    How to copy data from a corrupted to a new profile in Windows XP user profile
    http://support.Microsoft.com/kb/811151

    How to recover damaged Windows XP user profile
    http://support.Microsoft.com/kb/555473

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Can I use WebWorks for UI instead of Java?

    Hello

    I'm currently writing a small application and that it is difficult to get a nice UI to research using the Java SDK.

    I was wondering I could use the WebWorks kit to create the rich UI using HTML and Javascript? My main question is the way in which that interact with the Java API?

    For example, what would be involved in control of the NFC app WebWorks?

    Thanks in advance

    Awesome!

    Would you know of any sample code I could watch.

    See you soon.

  • When we need to use a query variable and how to use it?

    Hello

    When we create a line of dashboard, we set the variable, there are two types: variable presentation and application.
    I'm confuse when we need to use a query variable and how to use it?

    Thank you
    Anne

    Hello
    The variable 'demand' can be used if you want to use session related information specific to you.

    See below a:
    http://gerardnico.com/wiki/dat/OBIEE/logical_sql/obiee_set_request_variable_dashboard_prompt

    FYI... example of
    for the example query variable (a good post Nico)

    http://gerardnico.com/wiki/dat/OBIEE/set_variable

    for the variable of presentation with example

    http://gerardnico.com/wiki/dat/OBIEE/presentation_variable

    Thank you

    Deva

  • I already use the creative cloud for my mac table.  I wanted to buy a computer mac laptop.  Can I use my Adobe Creative cloud even for laptop?

    I have a table of Mac computer I have creative cloud with the programs I pay every month.  I am looking to buy a computer mac laptop.  Can I use the my creative cloud for this programs?

    Hello

    You can install the software on two computers. These two computers can be Windows, Mac OS, or everyone.

    If you install on a third computer, you will be asked to turn off this feature on the other two computers.  You can then re-enable one of the two previous computers and use Cloud Creative apps on it.

    If you regularly need to use creative cloud on more than two computers, it would be better to buy an additional subscription.

  • Bridge.exe - not found entry point can access procedural _crtCreateSymbolicLinkW not found in the DLL C: \ Program Files (x 86)------Norton360------engine64------22.5.5.15------MSVCP110.dll

    Windows 10

    Fred for my English. I I would like to translate by Google

    Norton software has been re- installation is needed. No solution.
     
     
    When starting up pictures through Adobe Bridge , the following message : Bridge.exe - entry point not found
    Can access procedural _crtCreateSymbolicLinkW not found in DLL C: \ Program Files (x86) \ Norton360 \ engine64 \ 22.5.5.15 \ MSVCP110.dll
     
    This also happens when I start Adobe Bridge directly

    On the Internet, has found the solution.

    The average of MSVCP110.dll file in windows / system32, replaced by the file MSVCP110.dll to C:-Program Files (x 86)------Norton360------engine64------22.5.5.15------MSVCP110.dll

    The file in Windows was older

  • A HMI TCP can be used only with Labview with no material of CAP?

    Hello

    I have an application where I have a DAQ card in a PC running a Labview application. I want to have a TCP HMI display in the next room where info can be displayed as well as entries digital operator. Is this possible? If so is there an example how to do that.

    Thank you

    John

    Hi John,.

    Yes, it is certainly possible (I guess this PTC is National instruments, and you use the LabVIEW Touch Panel Module).  The best way to proceed would be to use shared variables to send information about a PC for the TPC network.  Here is a quick tutorial specific for the TPC-2006 and LabVIEW 8.2, but the process is similar across other HW.  Additional information on variable support shared for different versions HW and LabVIEW can be found hereand in the sections of links on this page.

    Finally, there are examples of shared variable communication that install with the Touch Panel Module.  Head to the example finder (help > find examples...) and navigate to the Toolbox and Modules > Touch Panel > Networking > General.  Here you will find some examples of shared variables.  There are also some examples of TCP & UDP in this matter of networking which are another option.

    I hope this helps!

    see you soon,

  • WARNING: Incompatible Arg. You can't use stack Variables If generating series is not defined

    What does this message mean?

    "WARNING: incompatible Arg. you can't use stack Variables If generating series is undefined."

    Where can I put generate series only?

    Thank you

    Derek

    Hi Derek,.

    Not all LabVIEW C Generator settings are compatible with each other. In this case, you must define generate series only (aka 'disable parallel execution') If you want to generate the code uses the variable stack.

  • Can I use NEITHER-DAQmx 8.6 with LabVIEW 2010?

    Can I use the software version 8.6 OR DAQmx on LV 2010? Or do I have to use the corresponding versions?

    NOR-DAQ and LabVIEW (for Windows) version compatibility

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

Maybe you are looking for