How to get an array of integers to user in the User Interface

Hi all. I'm not a very experienced user of the CVI. I have almost exclusively coding in LabVIEW but have a client who wants all of their work in the CVI.

I've been very fruitful so far (set up a Modbus API from scratch that supports all types of connection) but am confused on how I can get the integer multiples of the user without limiting the number of integers I can get. Essentially, I need to be able to get an array of integers to the user.

General information, I am building a user interface to test my Modbus API. There are Modbus functions to 'Write multiple registers' and 'write multiple coils. I want the user to be able to enter all the values they want to write in one command.

What is the best way to get an array of integers through the user interface?


The easiest way is probably to allow user input in a textbox control numbers: items can be separated by spaces, commas, or even a line break (using ctrl + Enter). You will then need to extract the string from the TextBox and analyzed for numeric values using any non-digit character as a separator: strspn (string, '0123456789'); can be used for this.

More complex, another possibility is to use a table control to receive user input: you Dresses an empty table with a reasonable number of roews, or you need some codes to add new lines as long as the user fills all those already existing. On the other hand, it will be easier since data recovery in a simple statement, you will all return values: GetTableCellRangeVals (panelHandle, PANEL_TABLE, VAL_TABLE_COLUMN_RANGE (1), table, VAL_COLUMN_MAJOR);

Tags: NI Software

Similar Questions

  • How to get an array of SQL data


    I need to get a say DBMS output output of a SQL SELECT query say * OF EMP in the form of a table (with borders and titles).

    Is this possible in Oracle to return a table with borders and titles?

    user13410062 wrote:

    Hi all

    I don't know what am I missing in my question, which is confusing. The only thing I'm looking for is invoking a procedure/function of TOAD/SQLPLUS that can turn a TABLE formatting based on a query (SELECT * from insert_table where insert_table is-)
    CREATE TABLE insert_table
    Number of S_No
    Varchar2 (128) of the player.
    Number of Ranking_Points
    Country varchar2 (128)
    Now the output is visible in the result of the query or DBMS_OUTPUT as

    >> > >

    1 Rafael Nadal 12390 Spain
    2 Roger Federer 7965 Switzerland
    3 Novak Djokovic 7880 Serbia

    To add to what anton said...

    When you submit a SQL query to the database, the statement is executed and the data is returned to the calling program.  The database has no awareness of what this program is, or how this program can restore the data on the screen, and the database itself is not any output device to display data.

    Thus, the data can be returned to various programs for example

    SQL * Plus - a terminal/command line screen, which usually uses a font to fixed width and standard characterset

    TOAD - a windows based application that has a "data grid" to display the data, you get

    SQL * Developer - windows-based application

    Oracle APEX - one based on web front end that makes HTML given to it, or can take the data and rendered in the HTML form for you.

    PowerBuilder - an application environment that could choose to display the data in DataWindow, store the data in data warehouses, be an intermediary providing data as a web service or be rendered web pages with data, etc..

    .NET - like PowerBuilder, it might choose to make the data are however required.

    Java - like Powerbuilder and .NET, it might choose to make the data are however required.


    Thus, each of these environment renders data on the screen but he wants and will do it in a style that suits.  Some methods that work in an environment do not work in another environment, for example, you could provide data with the tab character included in the data and SQL * Plus can restore data with tags in it, but something like TOAD, perhaps will not and displays a character box indicating an "unprintable" character etc..

    That's why you can't just ask a question say you want to provide a query and get a table with headings etc. displayed, because the table with headings etc. depends entirely on the final user interface until you choose to use.

  • someone has any idea how to get Apple to allow apps that EFFECTIVELY controls the use of the children?

    I'm just frustrated.

    I have a child of 12 years and a house full of i-products.   The problem arises because I want to allow him to use a planning application and some other apps education during school time, but not the games and the wifi and so on.     We got the House and I would continue to allow the use of the i-device to school, but it doesn't seem to be an app that will enough allow me to the things of the lock upwards.    I don't have the time to constantly monitor, it's ridiculous.

    Sometimes there are ideas as to the allow him to use educational applications and its music from itunes, but not anything about wifi, or any other games or Web sites.    There are other times where I'd like it to be allowed to use iMessage and not much else.

    The problem is that there is something out there that allows this level of control.    Apple has rolled out their "our Pact" that does not come close, but it's a start.     And no other control parental app or program allows control level "app." they will allow you to lock all applications (which are not integrated in the iOS) or not, but I can not choose.     Restrictions are unnecessary and won't allow me to lock the wifi or not to allow the addition of new locations of wifi.

    It's to the point that they I need to new devices, I'll phase out home iOS devices, unless I can get a control.

    Someone at - it a have a way around this?    Someone has any idea how to get Apple to listen to?

    For an application to the time-, you can use guided access

    Use access guided with iPhone, iPad and iPod touch - Apple

  • How to get a license for 10 different users systems...


    Can someone help me how to get the genuine license valid for 10 to 20 systems. how much will it cost me?

    Hi Chavigny,

    Thanks for posting in the Microsoft community!

    Customer contact to improve assistance about the copy of volume license.

  • How to get a variable of a sub - VI all the way to the top level vi (GUI)

    Hi all

    I am currently working on controlling the movement of the six axes with labview through RS232 communication. These axes are controlled in order so not more than one axis moves at a certain point in time. To do this, I need to query the axis status bit to see whether or not the move is done. Basically a while loop to stop "asking" for the State when the statusbit is '1 '. This is done by a somewhat deep nested vi in software architecture (low level vi). The behavior of this vi is necessary because it blocks the execution of the remaining vi until the movement is finished. Therefore, I am sure that no command is sent to move a second axis during the movement of the axis of another.

    I want to do is to bring the traffic all the way to the front of the user interface so that the operator can see if the axis is in motion or not. But the problem is that the vi that handles these requests status only publishes the output data when the while loop stops, in this case when the movement is completed. And I would like to know the status on a regular basis, for example every 100ms or so?

    How can I get the value of the bit on the status in the GUI? I have to place another vi on the upper level which requires also that the status?

    Any help is much appreciated,

    Best regards.

    You can pass a reference to what ever VI main control/indicator panel you want to display it on.  Then in your Subvi loop, use this reference with a knot of property value for updating control/indicator light panel.

  • How to get rid of internet shortcuts mass contained in the document library?

    I tried to add a folder my documents. Seem to have merged now all my "Favorites" in the toolbar with my documents.

    Documents are now full of internet shortcuts and I do not want the files.

    Use the working documents and they need to see that word or powerpoint or pdf files, not stuff from the internet.

    Don't know how I did it or how to get rid of all these files.

    Can anyone help please? Thank you


    I don't know what you have enabled.

    Do a system restore, if necessary using the safe, before the problem started.

    How to access Safe Mode

    See you soon.

  • How to get windows8 installation CD/DVD, I have only the product key?

    I have the windows8 pro product key, but I don't have OS CD/DVD or recovery drive. How to get the installation for windows8 CD if I wanted to format my laptop and windows8 re - install?


  • How to get rid of squatters data that appears in the text boxes?

    How to get rid of pre-selected information that appears as a drop down choice in the text box?  The data that I placed in the areas of text continuously appears as an option to select text box.  How can I prevent the previous data entries to appear in the future?

    I think you should maybe just disable the AutoComplete feature in Acrobat.

    Edit > preference > forms > AutoComplete and choose

  • Tecra A9: How I get saved keys FN-esse to work all the time?

    How can I get my saved keys FN-esse to work all the time?

    It is without having to use the Toshiba Assist button to bring up the Fn-esse chart on my desk?

    Hi Cameillia

    Please excuse my question, but what do you do exactly?
    You want to use the FN + F1 - F9 button functionality without using the FN key?

    Sorry, but I think that it is not possible

    But if you use Vista OS, then you can use the mouse cursor and might point up, display area and could activate the Vista FlashCards.
    The FlashCards support the same functionality as the use of the keys FN + F1 - F9


  • How to get rid a widget that is stuck on the desktop?

    As you can see, in the case of dashboard, widget highlighted is the right and the X only works on that one.

    I don't know how it got stuck on the desktop, restarting does not help, and I can't get rid of it.

    I've read other old threads here, but being old, old solutions do not work in El Capitan.

    Someone has an idea? Thank you!


    Went into system preferences > Mission Control > Dashboard (overlay, space, off) - OFF - overlay and then again.

    The additional widget was inside the dashboard and I managed to close it with the X.

  • How to get a copy of invoice or invoice for the Sony Vaio lapotop purchased

    How can make the copy of invoice or invoice for the purchased Sony Vaio laptop.

    I lost the email with the details of the Bill.

    All I have is the order number.

    Please suggest me a way to get your hands on a copy of invoice or invoice

    Hi Aditya,

    If you bought the computer of a contact online, Sony Store, even for the available options.

    If my post answered your question, please mark it as an "accepted Solution".

  • How to get a list of all files/folders on the Sansa Clip +.


    I have a lot of MP3s on my Clip +, but realize that I put there duplicates in different folders. My plan was to use a command prompt to get a list of all the files on the device, and then use a utility that shows me duplicate names and the locations of the files. I could then simply delete the Clip +.

    The problem, it is that the Clip + is simply presented as a 'portable' in Windows Explorer (Windows 7 Home) - there is no way to assign a drive letter :-( Which seems a bit odd, as it is, after all, plugged into one of my USB ports... I used the dir command on all drives assigned in my computer as "devices with removable storage". One of them must be the port to which the Clip + is attached, but they all say "device is not ready". So the Clip + is not identified in this way.

    Is it possible at all to get a list of the files that are on the Clip +?

    Thank you!

    That's how the Clip + shows when connected in USB MTP mode.  If you connect mode MSC (defined in the control panel), Clip + comes as a disk.

    But: the problem you have is, Windows displays only the files that have been transferred in the Clip + under USB mode then logged in as.  I don't know if this applies to designated offices, but - you could try and see.

    Another solution would be to copy all of your files on your computer, under MTP mode; Delete the files on the Clip +. move the Clip + mode MSC; and then transfer the files to the Clip +.  Now, you should be able to see the files under Windows (always connected in MSC mode) and can run the utilities that you had planned.

    I hope this helps.

  • How to get back my old programs and games after the upgrade to Windows 7?

    I just upgraded from Windows XP 32-bit to 64-bit Windows 7 Home Premium and I followed the instructions on the Microsoft site. After installation, all my shortcuts were gone and the old programs and games, I had were put into a file called "windows.old". How can I get the programs and games in new windows? I don't want to download and reinstall EVERYTHING I had before.

    You need to reinstall... 32 to 64-bit is a change of platform and requires a clean installation. Data are stored in Windows.old

  • How to get Access Celan (NAC) reports on users stuck in temporary role?

    I use a clean access 4.7.2.

    If a user does not mett a requirement and is unable to remedy, he is stuck in the temporary role.

    I checked the "device > own access management reports are", but this doesn't show any user having the status of failure with the red flag.

    The report shows a successful connection with the green flag only.

    How can I get a report on the CAM on the failures of analysis?

    Thank you


    We had this problem and told to press Cancel (and then confirm) in the upper right corner of the Agent after the failure of posture assessment. When we did it, the full report showed cam within seconds and could then be used to manually fix the machine.

    Hope that helps!

  • How to Get at & T facing up and running with the X 1 carbon

    Just got my X carbon 1. It has a 3G WWAN installed but not SIM card.

    I understand that I need to get a SIM card and AT & T plan, but I can't understand how do everything what I found on the Web AT & T sites or Lenovo.

    Should I call? If Yes, who? And exactly what do I ask as I'm afraid finding someone who has no idea what I'm talking about.

    Thank you very much.


    1. download the sim card from your carrier with service to mobile broadband active (internet) on this subject. Insert sim card in the phone.
    2. I assume you have the Ericsson h5321gw wwan card in your laptop. Install the appropriate drivers for your card 3g laptop Lenovo' site using ThinkVantage System Update.
    3. open System Manager of network connections in the task bar, you should see the 3 g with your carrier network ' name, mouse right click on it, options, profile tab, APN field should consist of correct string. If not ask the APN for your support of the carrier channel.
    4. or you can use an other connection managers as Lenovo's access connections (to the new profile for 3 g network) or something of your provider.
    5. enjoy.

Maybe you are looking for