How to make an array of strings?

Hello

In my VI, I send 3 channels or more than one server to a client via a TCP/IP connection. the problem is that when I press the Send button I need all the channels to be sent together so I guess I need a table, but unfortunately I do not know how to build the table. I join my example in this post.

I appreciate the help!

Rambaldi.


Tags: NI Software

Similar Questions

  • How to create an array of strings listing by program?

    How to create an array of strings listing by program? I'm trying to programmatically create an Enum containing a list of tests to run, based on the selection of the user.

    My code ranging from control on LAVA has a demo VI to convert an array of strings of an enum.

    Tone

  • How to import an array of strings of labview in DIAdem spreadsheet/table

    How to set up a model of tiara so when you use labview express of tiara, the values are imported into a table.

    I have values such as gain, cut-off frequency and success/failure that exist in tables generated by the collection of information by a system of 7 EEG electrodes.  I want to create a table/worksheet in tiara that imports the data by using the DIAdem of LabVIEW express function, in a table or spread sheet?

    Notice to lovers?

    Hi eximo.

    The express block DIAdem report makes it easy fill the text boxes and the 2D graphics in DIAdem of variables (son) in LabVIEW.  Unfortunately no paintings 2D or 3D graphics are implemented in the express block DIAdem Rerpot.  So, you have 2 options.

    Option 1: If you do not have too many channels that you want to display, you can agree that several text boxes in the form of a 2D array and the use of the DIAdem report express block as it was planned (sending data to it by sons of LabVIEW).

    Option 2: at some point as you continue to add items to your report, you'll probably end up here.  The express block DIAdem report was designed to connect wires of LabVIEW with simple reports of DIAdem.  But there is a hook that you can use to run a VBScript script rather than load a REPORT model in DIAdem report express block *. File TDR.  With a DIAdem of VBScript, you can accomplish anything in tiara.  In addition to wiring up a way to VBScript instead of a path to the REPORT model, you will also need to send all the data you want to report on a TDMS file and have DIAdem read data from this file, instead of receive data directly from the LabVIEW of wire to the terminal of express block entry.  It's a little more complicated, but it will do absolutely everything you want in DIAdem and start this report of LabVIEW.

    I enclose an example of Option 2, but I'd be willing to help you adapt to your data and reporting needs if you are going to post or email ([email protected]) your data set and a rough *. File TDR that you want in the REPORT.  It's pretty slow here at the office at Christmas, so I have time...

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • How to convert an array of string elements to a cluster with elements named different data types?

    I'm looking for more help with the conversion of an array of elements of the chain in a cluster containing elements named different data types.

    I am importing data from an Excel worksheet.  He is coming in LabVIEW as separate (channels) 3 tables: 1) Variable name, (2) three possibilities Int, double, String) data type and the value 3), with the clues in each table corresponding to a separate variable (I have about 180 variables to import).  My ultimate goal is to convert the string array of 'Value' in a cluster.  But I want the correct data type in the cluster and I also the elements of the cluster name to match with the string 'Variable name' table so that I can use the Unbundle based on the name in my main VI.

    Please see attachment a Subvi for more details.  I did the size of the new items of tables 5 for simplicity.   I realize that labels property cannot be changed during execution and I don't think I need to do.  I just want to use the production cluster (mainly the unbundle by name) to help design my main VI.  I will need to 'read' and 'write for' the cluster during execution, but I won't need to change the names of the items.

    I was also wondering if there is a better way to import data from Excel?  Is it possible to import directly into a cluster immediately rather than put everything as strings?  I have attached a Subvi showing how I currently bring in data (found on the forum somewhere).  It comes as table 2D, which I divided into 3 separate tables that I mention above.

    I am open to any suggestion.  Thank you very much.

    -Mike

    Instead of trying to create a cluster, I think I would use only variant attributes.

  • Array of strings to a menu control

    Hello

    I want to display my name of the worksheet in Excel as a menu choice for the user. How to make an array of strings as a menu control? Example I got 5 journal name and how can I do as a control?

    See photos attached.

  • Return an array of strings of call library function node

    Hello

    I'm having a few problems getting the following work.

    I have a camera from a manufacturer that came with its own .dll and header files. I'm calling the LabVIEW .dll file (2011). In total, there are about 50 functions, and there is a rest that I can't go to work (probably because I understand enough about the topic to interface with an external code).

    The description of .dll is delivered with the following text:

    #define length

    #define MAX_CONFIGURATIONS

    Prototype: int ConfigListGet (char (& sConfigurations) [MAX_CONFIGURATIONS] [length]);

    and the header file with:

    extern "C" __declspec (dllexport) int RepRateConfigurationListGet (char (& sConfigurations) [MAX_CONFIGURATIONS] [length]);

    The function should return an array of strings to the list of configurations.

    The problem I have is that I can not understand how to return the array of strings for the node of the library function call to LabVIEW. I looked a little on the web and the examples in LabVIEW and I can't find anything specific to return an array of strings in this way, so if anyone can point me in the right direction I would really appreciate it.

    Also, if I click with the right button on the node library function call and click on "File Create.c", I would be able to create the prototype of function even that above? I tried this but no luck. Was the closest I came:

    int32_t RepRateConfigurationListGet (char sConfigurations [], uint8_t MAX_CONFIGURATIONS, uint8_t MAX_LEN);

    Thank you very much in advance for any help!

    D

    Hello!

    I tried once using an array of U8, converting it to a string and then split into an array.

    Here is my old piece of code (the split part can be cleaner ;=))

    Kind regards

    Marco

  • Convert 2D array of strings of digits in decimal table 2D

    How to convert an array of strings of decimal places decimal table 2D 2D?

    Thanks in advance

    -DP

    BatchTest Corp.

    NEITHER Alliance Partner

  • Newbie to Flex... Arrays of strings

    I have an XMLListCollection which is populated from a database that contains the data of the census. Each entry is a person having a race, occupation, marital status, size of the family and year. I want to do an array of objects or strings (I worried really, as long as it works) where each entry in the array is a unique value on the ground. For example, if my database contains people who have family sizes 3, 4, 5, 4, 4, 3, 4 and 5, then I want my table to have 3 values, 3, 4 and 5. Right, the code would negotiate with duplicates, but once I have it so make an array of strings of the values themselves, I'll deal with duplicates. The database is initially loaded in XMLListCollection stats.

    To do this, I have the attached code.

    The display is as follows: the first label out 27, which is correct, since it is the number of items I have to put in the table. The list is filled properly, with all the years showing as they should. The context menu is empty, which boggles my mind. And finally the length of the years array returns 0. I'm very, very puzzled as to why all this is happening. Help, please.

    The problem that you are running is because you're using a table instead of a collection of ArrayCollection. The tables do not updates broadcast when it y of changes to data that is the biggest advantage in my opinion of why you want to use an ArrayCollection collection. Example as follows to illustrate my point.

  • How to read formatting excel worksheet as an array of strings

    I use the report tool to read an excel spreadsheet in an array of strings of LV.  It works fine except that it reads the precision of digital cells (~ 10 digits of precision).

    In my workbook I have displayed accuracy the value 2.  Is it possible to read the table such that it is displayed instead of the way it is stored internally?  (BTW, I understand how to do this)

    manually by parsing the string array and limit myself to the accuracy but would prefer to use excel itself to determine accuracy)

    sachsm,

    This should allow you to get the text from a cell or a range of cells.  Sort of do a "paste special" 'values '.

  • How do the function of table 1 d search case-insensitive for the array of strings

    How do the function of table 1 d search case-insensitive for the array of strings

    Hi Karine,.

    convert the two (table and search for the string) to lowercase before using this feature...

  • How to insert values of array of String in BPM

    Hello

    I have defined an array of strings in the business object, created a data object and want to fill/insert values inside. I searched a lot of messages and tried several options but no luck.

    My BO:

    " < xs: Schema targetNamespace = ' http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "elementFormDefault ="qualified"xmlns =" http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "" xmlns: XS = " http://www.w3.org/2001/XMLSchema " xmlns:bpmo =" http://xmlns.Oracle.com/BPM/bpmobject/ " > ""

    < name XS: complexType = "SimpleArrayBOType" >

    < xs: SEQUENCE >

    < name XS: ELEMENT = "attr1" nillable = "true" type = "xs: String" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < xs: element name = "SimpleArrayBO" type = "SimpleArrayBOType" / >

    < / xs: Schema >

    Add a script task and tried different ways to fill in the values.

    Basic ['a', 'b'] also fails with the error expected "-result tree fragment" rather than "string".

    How to manually enter the values?

    Thank you

    Chandra

    Because your input is coming from a few strings and not a table, you can just add a Script activity to your process and to define table of your target XSD using XML.

    To do this, you must add a Script to the activity-> in the "Application" tab click on 'Data Associations'-> dragging the "Expression" icon above your target object on the right side (not the table but the table parent)-> open the XPath expression box in the Middle-> click 'XPath Exp' in the drop-down list at the top.

    I used your XSD to create the XML file for the logic below:

    oraext:ParseXml (concat ('))

    http://www.w3.org/2001/XMLSchema-instance '.

    "" xsi: schemaLocation = "http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO xsd/mySimpleArray.xsd.

    xmlns ="http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO" >. "

    ', bpmn:getDataObject('string1') '

    ', bpmn:getDataObject('string2') '

    '))

    When I 'bpmn:getDataObject('...')', you should rather to insert your data object variables both your process chain.

    Hope it gets you going,

    Dan

  • How can I hilight a section of an array of strings?

    I have a VI that displays an array of strings.  The display is about 20 high of 20 channels of wide channels, while the berries in it are much more important.  I compare two files to find the differences.  When differences are found, I want to somehow hilight or focus on the block or the string that is different.  Is there a way to do this?  Is there a way I can visually hilight part of my array of strings?  I looked through the nodes of different property, but could not find something for this.

    Thanks for the help,

    Jeremy Backer

    Hi JMBacker,

    I don't know if tables can highlight a particular section.

    But you could do a thing.

    Display table in a table, and then display the background color of these special cells where the differences lie.

    Ritesh

  • How to divide a string into an array of strings in separate tables

    Greetings,

    I have an array of strings which displays strings in a text file. I read each line of the text file and put it in an element of the matrix of the chain.

    Now, I'm trying to divide each string for each part of the chain, then put in a separate table. Each element in the chain is separated by a comma. I hit a brick wall at this point and would like to help please?

    The purpose of this is so that I have 4 tables that will be ready their item values and set variables based on these values until I went through all the elements in each array.

    Attached example.

    Also my VI is attached.

    Thanks in advance for your help.

    Then just use Index Array on 2D array provided.

  • How to display strings in the array of strings 1-d double

    I have some strings in the string table 1 d and I need to display channels duplciate present in the array of strings 1 d... pls let me know... I'm using labview 2010 worm

    Matt wrote:

    I have attached the VI

    Well, there are several possible solution. Do you think all the elelemts that are not in the course of exit or do you only each. For example, if the table contains 3 of the same element, do you want twice in the double output?

    I suppose you want only there once, so just the existing code to scale accordingly. See attached example. If you want all, remove the internal node of case and research and blindly add all items in doubles.

    Note that there is full of the most effective ways to do this, but the current code is sufficient for small tables.

  • An array of strings of compensation fileglobal

    I have an array of strings to dimension fileglobal 2. How we it clear whenever the sequence is called, use a loop for? It used to not be a problem, but now seems to have old data in it all the time.

    Thank you

    JVH

    You can get rid of an expression:

    GetArrayBounds (Locals.Array, Locals.OriginalLowerBounds, Locals.OriginalUpperBounds),
    SetArrayBounds (Locals.Array, "[0]", "[]"), / / make the table empty to clear it.
    SetArrayBounds (Locals.Array, Locals.OriginalLowerBounds, Locals.OriginalUpperBounds) / / restore the picture to its original size

    Hope this helps,

    -Doug

Maybe you are looking for