Combine the elements of a 2D array online

Hi all

I'm pulling in a date column and a column of time since a text file, creating a 2D data table, and then I'm stuck trying to merge the two columns.

For example, I need to take the Date and time the row 0 of the 2D table data are combining in index 0 a 1 d table. Then I need to convert this "timestamp" in seconds. An example is attached.

Any help would be appreciated

Erik

Do you need an array of strings? Which characters will separate the data at the time?

Conversion of seconds using the time of LabVIEW from 12:00, January 1, 1904 is pretty straighforward well that is correctly time and seconds dividers can be difficult. Conversion at any time requires more effort.

Lynn

Tags: NI Software

Similar Questions

  • Adding timestamp with all the elements of a 2D array

    Hello

    I want to add a stamp in real time with all the elements of a 2d array before writing on a worksheet. My 2d array consists of amplitude and frequency.

    kindly guide me how to do this.

    Best regards

    RASHID

    That it should be now.

    Kind regards

    Kevin

  • Add the element of matrix / 2d array

    Hello forum users.

    I'm working on an application that uses a mobile robot to draw area.

    To do this, I have 16 records sonar once per second. These sonar readings give a coordinate X and Y hence is an obstacle.

    Now what I want to do, is make a matrix / 2d table I qualify by 501 501 k size and have all the elements of this matrix be zero. For each of my readings of sonar, I want to add 1 to a specific cell in the matrix.

    (example lets say that this robot detects the first object at position 400 x 400, this cell instead of zero would have a value of 1).

    The final product should be a 3d mesh/surface chart that updates the robot moves around the room (updated at intervals of 1 second).

    I know that this could be done in Matlab, so I thought that I could use the MathScript node, but that I can export my front mesh function?

    Thanks for the help

    Here's a quick code showing a 2D histogram displayed in 2D or 3D.

    Modify if needed. Of course if you want to cap the z to 1, use simply 'replace the subset of table' with '1' as element instead of the current structure of "in place".

  • combining the subtables in a single array

    I am currently using labview 8. And calibration purposes, I needed to break down a sub-table individual table so that each of them could be calibrated individually. From there on, I want to recombine the subtables in a table so that I can datalog. How can I do for this. Please see my attached VI

    If you look in the lower right of the while loop I break the table into a set of two sub-tables, and from there I tried to use the VI for construction combine. However, from there I don't know how to proceed. and my final goal it to attach to the VI 'writing on a file' in the structure of the case at the top of the while loop, so that I can save the data.

    Kind regards

    Michael Sugimura

    Of course we only need a knot of "index Board"...

  • Combing of the elements of an array into a single string

    Hello world

    I would like to combine all the elements of an array into a single string. For example, I have a table of 5 elements in the chain

    A

    B

    C

    D

    E

    I want to merge all the elements of a unique string of ABCDE.

    I tried to use the 'Worksheet picture String' function but the tabs separating caused me a problem even if I removed the by ' search string and replace.

    Thanks in advance for your help.

  • Access to the elements of an array passed as object reference

    Hi all!

    I am quite new to TestStand and therefore, my question might be simple enough but I was not able to find the solution by looking at previous posts.

    I have a sequence that passes a custom array (of data type) to another to make basic on the table stuff (reverse the order of the elements, for example).

    I want to move to the sequence called an object table reference

    The problem is that I am not able to read the array element inside the sequence called using the object reference.

    I found the way get the number of items, but I'm not able to access the item

    In addition, the TestStand GUI is able to let me see the array pointed to by the object reference that is passed within the known sequence, so it is possible to access... but how?

    I want to do operations on the object reference passed within a 'No return' TestStand if possible.

    Thank you very much.

    Andrea

    In other words:

    How do I access the field 'temperatureTag' item number '0' from the object variable reference referenceToClone?

    Locals.referenceToClone [0] .temperatureTag does not work...

    I don't know what is the recommended method to solve your problem. When you try to few alternatives, I was able to get the value required by the following expression (tested with TestStand 2014):

    Locals.referenceToClone.GetPropertyObject("[0]",_0).temperatureTag

    Try and tell me if it works for you.

    Use this workaround with caution.

    -Shashidhar

  • How to replace (assign) a part of the elements of an array in TestStand?

    Hello

    I would like to replace or assign values to the elements of an array.

    For example, I have a local variable with 6 elements, Locals.A = {1, 2, 3, 4, 5, 6},

    and I would do it is {1, 2, 13, 14, 5, 6}.

    Accordingly, I add an expression and write "Locals.A [2.3] = {13: 14}", but it failed.

    Is it possible to replace a part of a painting?

    My real question is I want to pass parameters to a sequence to a local variable of the MainSequence, like the picture as an attachment.

    I hope that I can assign the parameter (table 5 elements) for the range of 5th to 9th item of the local Variable.

    Could someone give me any suggestions? Thank you very much!

    (1) I meant move the entire table and in the subsequence programmatically update only a subset of the items.

    For 1 or 2, you'd have to write a loop as interates on and updates the items that you are interested in. There is no simple syntax that will do what you want. You can use a loop but, rather than make a statement of entitlement for each item.

    -Doug

  • Calc independent PtByPt on the elements of the array

    Hello

    I have a double table as input, and with each iteration of the main VI, I would calculate the average and standard deviation separately on all the elements using PtByPt VI.

    Fortunately, in my case, I know that the size of the array is maximum 11. My solution works, but I would like to know what is the best approach, if I have to deal with a wider range, and especially if I don't know the maximum size in advance...

    That's my solution and the VI.

    Thank you!

    PS: I have renamed the extension VI VI lives to fool the buggy uploader...

    It is not too difficult to change the screw 'PtByPt' to be RowByRow by changing state data.  But I would probably go the dynamic road first if I knew the number of columns where bounded by a reasonable number.

  • 'Replace the element of the array' replaces not only indexed items

    Hey masters LabView,.

    Fairly new to Labview and I'm trying to sort out how to create a table of images. I know that the total number of images I want in my 'stamp' (not the buffer of LabView), so I'm the initialization of an array of this size. Can I bring this table in a loop For with a shift register, and I want to capture images and write them in the table of the buffe continuously (a comment: I do a circular buffer, but I don't want to implement in LabView, because there a lot of things that I don't need and I will eventually have to the process to be as thin as possible).

    Here's the problem (I assume an implementation, that does not decompose LabView):

    I expect:

    AN element of the array, in the position indicated by the index of the loop [i], is replaced by the image newly caught

    I get:

    All THE elements of the array becomes the image newly caught.

    (I can tell because I taste under the table, grabbing a single image from a constant "Check Array" index - may 7, for example.) But my index of the loop [i] value is 13, and the subsample becomes again the image newly caught.

    What a ridiculous thing I am doing wrong?

    Any help would be greatly appreciated.

    Ah, I just noticed something.  Initialize you an array of references at the beginning of your program, but it is a complete picture OF THE SAME REFERENCE: you must call the IMAQ Create in a loop so that you actually get unique references in your table.  You must have a different NAME for each image.

  • Comparison of the elements of the two 2D arrays

    Hello!

    I am trying to compare the elements of both 2D and find at least one pair of elements that are identical. Browsing the forum I found a method suggested by Altenbach (http://forums.ni.com/t5/LabVIEW/Compare-elements-in-an-array/m-p/458622). However, it works well with 1 d arrays. That's why I rearranged the original code for my case, but unfortunately the attempt failed. Could someone please take a look at my VI and suggest a solution?

    Thank you.

    5 is correct. Create indicators for arrays of I32 2D coming out the loops with the table inside the cluster. On line 1, column 0 on both of these tables, you will find the value 5. That's what generates your code, but it is probably not what you want.

    Look at what I added at the bottom of the BD, the 2 identical and identical on the FP Indices.

    Lynn

  • multiplying the elements of an array with their index

    How can I multiply the elements of an array with their index values.

    Thanks in advance.

    Hi aksoy,.

    Multiply the elements with their index:

  • Drag and drop the element of the array of Clusters

    I have a project that includes an array of 'tests', each of which is a cluster that contains an array of 'numbers', a matching the regular expression string and an array of "tasks" (all of them, is in turn, a group of elements).

    It is:

    • Tests (table of):
      • Cluster:
        • Reference numbers (an array of strings)
        • Regex (string)
        • Tasks (table of):
          • Cluster:
            • Task type
            • Basic channel,
            • Measuring channel
            • Other channels

    I wish I could drag and drop to rearrange the task table in an individual event.  (It is a nice-to-have rather than a urgent request - more for my own learning that no matter what).  For now, I've implemented "Move up" and "Move down" buttons

    Examples are fine for a single cluster that includes a table or an array of objects.  As soon as we have an array of clusters, it is difficult to access individual items within a specific cluster.

    Who that it be completed can drag and drop into such a facility?

    Curiously,.

    Geoff

    Hello GeoffF,

    It's certainly doable and you can even use the standard start drag and drop methods/events, the trickiest part is to determine the table of the elements that are selected on the mouse towards the top/mouse downwards and the swap of manual handling.  Fortunately, there are a few decent examples of how do this out there already, I suggest you take a look at this one:

    Example of community: determine the Index of the clicked element Array in LabVIEW

    https://decibel.NI.com/content/docs/doc-22434

    That should give you the selected table indexes, and then all you have to do is to move the elements around around the drop event.  I have attached a very basic demonstrative example that uses this code I just linked (you need to download that as well) and the events referred to swap two elements of the array.   The attached code is just thrown together, you'll want to design something more robust and scalable to any sort of actual use.

    Kind regards

  • Extract the supplied index value of array element

    Hello

    A similar question might have been asked before, but I couldn't find one that exactly matches what I want. Also, I'm using labview 8.5 so could not read most of the views that you guys tied with other solutions.

    The files that I use are attached. Test_FIFO_TimeTagging-Nov16 - try1.vi is the main vi.

    The absolute time in milliseconds in the table of resorption. As can be seen, it is derived from the berries Micro2 and Macro2. I want the user can specify the duration, that is, whether the current item in the table of absorption has a value greater than the value of the user entered, so I want the index of this item in the resorption so that I can use this index to create Micro2 and Macro2 subtables that contain only items from index 0 to index I get resorption.

    I do not know how to retrieve the index of an array given the value of the element, so can't go forward.

    Thank you

    Kaiser

    Hey Kaiser,

    the function that you need is 'threshold 1 d table '. (I guess that your time values are sorted, otherwise using subdashboards makes no sense...)

  • Coordinates of the elements in the array

    Hello
    I'm playing with mouse click coordinates, especially because his Friday afternoon , but also because it might be useful

    In the attached code, I want to click on one of the channels of my table control and what element of the array corresponds to (which later will be used to draw the other pieces of the code based on the content of table)

    I can use the position of the table and the coordinates of the mouse and everything works fine.
    BUT... only if I select the zero element until I run the code. If I select another element, then run the code, I get wrong results.

    -Are there a way to get the coordinates of the element zero of my table regardless of what the user has done?

    I can think of workarounds using the coordinates of the control table (rather than details of the chain), but it is affected by the label size/visibility control feels so less reliable.

    Using version 8.5.

    Thank you
    Ian

    There is a utility VI of the repository of LAVA located here.

    Dealing with this problem:

    Tone

  • Why all the elements of the array does not appear?

    Hello

    I'm learning about the handling of tables.  The example finder includes this one, 'build array_forum.vi', which shows the two modes, concatenate and adding, I understand, HOWEVER, I can't understand how they built this vi.  For example, I can find the Array function to build, but I do not understand how they created the "digital data table 1" "data table 2" digital... etc, and I can't find the functions on the pallets that cause display "build the CONCATENATE entries table". ".  Where are these blue functions?

    Where these functions are found in the palette, and how we build them like that?

    The other vi indicated here, 'for loop array_forum.vi' is my attempt to reproduce, but it doesn't show all the elements of the array; However, it only displays a SINGLE element, the last element of the array.  How can I view all the items in the table I am creating using the FOR LOOP?  I am doing something wrong with the LOOP FOR?

    Thank you

    Dave

    Right-click your scoreboard, uncheck the "Display as icon" and see what happens.  There are two ways of viewing terminals, most of us like the simple point of view, the default value is the display of the icon.

Maybe you are looking for

  • Satellite A100-498 hangs after suspension or hibernation

    Hello everyone I just bought a new satellite A100-498 and just realized that whenever I leave the computer for a while and he needs to go in hibernation or suspenson, he's going, but when I get back and try to restart, it begins to restart, but it cr

  • Problems starting with the Satellite A100-662

    Hello I appeal to your jurisdiction after a first contact with the Toshiba support on the phone.My problem is the following: your computer Satellite A100-662 begins at random, sometimes it starts the first time, and other times it starts only partial

  • Y400 RAM Upgrade 8 GB to 16 GB-14900

    I'm looking to install 2x8GB sticks in my Y400. I'm looking to get the best possible speed, so I was eye - lying to the top the following: http://www.Amazon.com/1866MHz-PC3-14900-notebook-KHX18LS11P1K2-16/DP/B00E1XGCCW/ref=cm_cr_pr_product... I am we

  • Pavilion G6-2235us: Log on to Windows 8

    I have difficult to reload windows after a new HD in my laptop the girls, who did everything. The configuration of the type of made me login to my account of Ms. The only way to use the laptop is now with my login. How can I change this for her. It a

  • How to connect as administrator

    At the start of Win7, I login as administrator with the password. But when I try to install some programs It says I have to log on as an administrator. so I can't install or run the program.  Help