How is cluster of 5 elements converted to spreadsheet?

I have a bundle output as a Cluster of 5 elements.  The cluster is displayed on the front panel.  I desire to convert that to write that information to a spreadsheet that can be opened with Excel.
Please email me at:  [email protected]

Hi DocNord,
easiest would be to create a tab seperated textfile of your values: Unbundle the elements, convert them to text with tabs between the single elements and write it to a txt-file.
More hints:
- When all elements are of the same type you can/should use an array instead of a cluster.
- There are functions to write spreadsheet files directly from 1D/2D arrays.
- There's a function to convert a cluster (of elements of same type) to an array (and also vice versa).
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How do I convert a 1-D array of cluster of 5 elements into a 2-D array of numbers? (history data from a chart)

    Hello,
    in my vi I have a chart with 5 Plots displaying measurement data.
    The user should be able to save all the history data from the chart at anytime. (e.g. the user watches the chart and some event happens, then he presses a "save"-button)
    I know, that I can read out the history data with a property node. That is not the problem. The problem is, how do I handle the data? The type of the history data is a 1-D array of cluster of 5 elements.
    I have to convert that data somehow into a 2 D-array of numbers or strings, so that I can easily save it in a text-file.
    How do I convert a 1-D array of cluster of 5 elements into a 2-D array of numbers?
    I use LabVIEW 7.1
    Johannes
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Solved!
    Go to Solution.

    Gerd,
    thank you for the quick response and the easy solution.
    Look what I did in the meantime. I solved the problem too, but muuuch more complicate :-)
    And I have converted the numbers to strings, so that I can easily write them into a spreasheet file.
    Johannes
    Message Edited by johanneshoer on 04-28-2009 10:39 AM
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    SaveChartHistory.JPG ‏57 KB
    SaveChartHistory.JPG ‏57 KB

  • How to name elements and create cluster of named elements

    I wanted to detail the steps I found, so that others could more easily follow what I found going through these discussions.  While there are numerous examples, they lack details such as function names and how to achieve the steps.  Most of them seem to cover only arrays.  I welcome corrections.  I'm not saying this is the best way; it is, however, a simple detailed description of one way to do it.
    I wanted to create a cluster of various data types that could then be manipulated by name.  Unfortunately, simply wiring an existing cluster to a Bundle by Name.vi does not assign the existing labels of the elements to the name field of the cluster.  I don't know why.
    1.  Create an input cluster with dummy constants of the proper data type for each element.
    How do you create an input cluster?  Searching functions finds no "Input Cluster" function.
            The only way I found was to place a dummy Bundle by Name.vi , right-click at the top of the leftmost of the two rectangles and select Create, then Constant. The result looks like the attached Creating Input Cluster.PNG
             You might as well delete the Bundle by Name.vi at this point, because the changes make to the input cluster will only be reflected when it is connected to a NEW Bundle by Name.vi
             Next, for my purposes, I needed constants for DBL numeric, string, and array of strings.  I started by placing  one DBL and one string constant on the block diagram.  I copied these to create the ones I needed. Make the labels visible and type in the names corresponding the Bundle Names desired.  
             Since there is no function called "String Array constant", it is necessary to place the "Array Constant" function on the Block Diagram, then drag a string constant into the empty right hand square of the Array Constant.  It immediately changes color to show it is a string array.
              Drag each of these constants into the input cluster so that they appear in the order desired.  It is a bit of a pain because the square resizes tightly around the existing elements after each insertion.  You have to keep expanding the box at the bottom by dragging its sizing handles, so you can be sure each item is added to the bottom of the list.  When done, my input cluster looks like Completed Input Cluster.png attached.
    2.  Place a NEW Bundle by Name.vi on the Block Diagram.  Wire the input cluster to the top of the left rectangle of the function. Drag the down sizing handle of the Bundle by Name.vi until all the elements of the cluster are visible.  You will see the names and it will look like Bundle by Name with assigned names.png attached.
    3.  All that remains is to connect the data wires for the individual elements to the left side of each named block and wire the output cluster.  The result is shown in Complete design producing cluster of named elements.PNG attached. (Since only three attachments seem to be allowed, this last will be in a follow-up post.)
    Attachments:
    Creating Input Cluster.PNG ‏3 KB
    Completed Input Cluster.PNG ‏3 KB
    Bundle by Name with assigned names.PNG ‏8 KB

    I wanted to add a brief statement about EDITING cluster controls because newcomers to cluster usage (like myself).  The HELP is good on creation but says nothing about modification.  While it has been posted other places, I think a "newbie" might appreciate getting this info here.
    To edit a cluster control, open the CTL file, then
    Add a control by creating the control on the front panel, then save the control.
    To remove a a control, delete the control, then save the control file.
    (Simple enough)
    To modify an existing control
    1.  Move the control out of the cluster into a blank VI.  
    2.  SAVE the cluster control file (CTL).  
    3.  Modify the control in the blank VI.
    4.  Drag the modified control back into the cluster control.
    5.  SAVE the cluster control file (CTL)
    NOTE WELL: don't skip step 2. 

  • How can I write a 1d array of cluster with 3 elements to a file?

    Hi,
    I have to make a "Power spectral densities" analyse from my waveform data. The results from this VI is an array of cluuster with 3 elemments. Now I want to write this array of cluster with 3 elements to a file. And later it must be able to use this file with EXCEL!!
    thanks

    Hello schloronzo,
    make a for loop feeded with your array. Inside the for loop unbundle
    the cluster, "format into string" the 3 values, adding the result to
    the ones before and collect them in a shift register. Then save the
    resulting string to a txt-file. If you make a good format string then
    Excel is able to read your txt-file (use tab a separator and CR/LF
    after each 3 values aka "csv format").
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 1D Array of Cluster of 2 Elements Write to Spreadshee​t

    Hi all, first time using LabView in many years.  I am trying to write a VI that will acquire data from our cDAQ (right now just trying to get it to work with a single thermocouple in a NI 9211, but eventually will be 8 X thermocouple, 4 X pressure transducer), display it in realtime on a plot, and then when the acquisition is stopped, output the data to a file for later use.  I am currently using the Base LabView package.
    My problem (as I remember it was 7 years ago when I last used this) is with the data types not working together.  This is my thought process currently on building this VI.  Everything is inside a While Loop with the Wait function at 1000ms.
    - Acquire a point of data using the DAQ assistant
    - Send that point of data into a bundle
    - Send the iteration count into the same bundle (as a timestamp)
    - Send the resulting cluster of 2 elements into a Build Array function
    - Send the resulting 1D array to a shift register in the While Loop, as well as to an XY graph for realtime plotting
    - Wire the incoming point on the shift register back into the Build Array function
    In my mind, this allows the XY graph to plot the complete array every iteration, giving a realtime view of the signal.  Everything works fine up to this point.  My problems are:
    When I stop and restart the program, the shift register is not cleared, so the existing data in the array remains on the graph.  I know I need to initialize the shift register to clear it, but I cannot figure out what to wire to it that will be compatible with the data type (I just get broken wires with everything I tried).
    Similarly, I cannot figure out how to output this data to a spreadsheet after I Stop the While Loop.  I think I should wire the "Write to Spreadsheet File" VI to the outgoing shift register, but again, I can't get compatibility with data types (source is a 1D array of cluster of 2 elements).
    I have attached my current program "Production" to this post.
    I look forward to the help!
    Brad
    Attachments:
    Production.vi ‏46 KB

    Hi Brad,
    I would suggest you change your architecture. First, to answer your questions:
    1.
    In order to ensure that your shift register is not reading the last
    value from it's memory location, you just need to create a constant for
    the shift register. To do this, right-click at the input of the
    'left-placed' shift register and create a constant.
    2. The Write
    to Spreadsheet is expecting a 1-d or 2-d array while you are wiring a
    Dynamic Data Type. Use the Convert from Dynamic Data Type to convert
    the data into the appropriate waveform after which you can get the
    waveform attributes which includes the values and the timestamp data. Or, you can use the Write to Measurement File to write to a .lvm file which can be opened in Excel as well.
    Changes to your architecture:
    Since
    you are using a lot of channels, I would advise you use a
    producer/consumer architecture. You can have a look at this
    architecture by navigating to File -> New.. and searching for the
    Producer/Consumer template. You will notice that this architecture uses
    queues. The way you will design your VI is to use DAQ to acquire the
    data into your producer loop, convert this data into a waveform and
    then send this data to the consumer loop via queues. In your consumer
    loop, you can write this data to a file. At this point, I would
    encourage you to write to a binary file instead of a spreadsheet file. The write will happen faster and you will be using less space on your hard disk when compared to ASCII writes.
    I know this can be real confusing for a beginner, so be sure to post back if you have any questions.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Attaching a Cluster of 2 elements data type to dynamic data type wire.

    Hey Folks,
    How do I attach a cluster of 2 elements data type of wire with a Dynamic data type wire?
    Or a Build XY Graph to a curve fitting2.
    Thanks for the help.
    Ty

    Hi Ty,
    Try to use the "Express-VI Curve Fitting" which is at: Functions-> Signal Analysis -> Curve Fit.
    You have to put this VI before the "Build XY Graph".
    Otherwise, u can convert the siganls types by using the "Convert from Dynamic Data"
    which is at : Functions-> Signal Mamipulation -> Convert from Dynamic Data.
    Hope it Helps....
    The Bush-Man

  • Conversion cluster of 4 elements to cluster of 2 elements

    Hello
    guys
    Id like to get help fom you guys, im try to convert cluster of 4 elements to cluster of 2 elements .
    how can I do that?
    I show what Im trying to connect
    Im using infrared array and I want to count the objects . Ive connect it to analog port arduino and i want it to count the object in the room 
    Thank you

    jonhde077 wrote:
    This is the probelem guys how can i solve it 
    No, that's not the problem. You cannot simply "convert" something until the LabVIEW compiler no longer throws an error unless it actually makes sense. If you have four elements and only want to retain two, there are many possible permutations. What are the four elements, what is their datatype, and what do they represent. What kind of data does the other connector expect?
    LabVIEW Champion . Do more with less code and in less time .

  • How to instantiate a DOM Element in Forms to call Web Service?

    Hi All,
    I need to call a Java Class that has been converted into PL/SQL in order to run a Web Service.
    The PL/SQL function looks like this:
    -- Method: GetPIValue (Lorg/w3c/dom/Element;)Ljava/util/Vector;
    FUNCTION GetPIValue(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPI');
    mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Lorg/w3c/dom/Element;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, JNI.GET_CLASS('org/w3c/dom/Element'));
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    where "a0" is of org.w3c.dom.Element argument that is passed into the function as an obj_java.jobject.
    How can I create an ELEMENT object and call this function by passing this Element and its related Attributes. I have tried the following so far but I am getting this ERROR "Unable to call out to Java, Argument 1 can not be null.
    Element.setAttribute(param_1,
    'piTAG',
    'A3TI006.pv');
    It seems to be Complaining about "param_1" and it CANNOT BE NULL. How can I initialize or Create such an Object in Oracle Forms?
    Does any one have a Sample on how to Create an Element Object in PL/SQL?
    Your help is much appreciated.
    Regards,
    Baz

    Hello,
    I am sure that Jan is certainely THE expert. It would be so great if he would find time to blog a litttle bit on this topic, that generates, in fact, a lot of questions ;D
    Francois

  • How can I get photoshop elements to open my nef images?

    How can I get photoshop elements to open my nef images?

    The D3200 requires at least ACR 7.1, which isn't compatible with any version of PSE prior to PSE 11, so no, you can't do this directly in PSE 9.
    You could upgrade PSE, use the Nikon software to convert the files and then open the resulting images into PSE for further editing, or download the free Adobe DNG converter to convert your NEFs to DNG files that your version of PSE can understand.

  • How can I edit in Elements 10 or Premier Elements 10, slide shows created in Elements 8?

    How can I edit in Elements 10 or Premier Elements 10, slide shows created in Elements 8?
    Fortunen

    When you installed version 10 did you convert your previous catalog?
    If so, your projects should appear in the PSE10 Organizer. To search for them type PSESS into the search box.
    You should then be able to open the project by double clicking on  its thumbnail.
    Then choose Output >> Edit in Premier Elements

  • Connect 1 D array of cluster of 2 elements with dynamic data

    Hello
    The type of source is 1D array of cluster of 2 elements and the type of sink is dyanamic data. Can any one guide me how to connect these 2 elements together. Any response would be highly appreciated. 
    Thanks 

    First, this question would more appropriately be posted to the LabVIEW Board. It is not a signal conditioning issue.
    The dynamic data type (DDT), sometimes referred to as the "evil dynamic data type," completely obscures the internal data structure. The only way someone could help is if you tell us what the source is expecting the internal data structure to be. The only objects which want DDT inputs are Express VIs, which are also good at obscuring thier contents. Implementing the sampe funcitonality with standard VIs might be a better approach.
    You also have not completely specified the source. What are the data types of the cluster elements? 
    Lynn

  • How do I stop elements11 automatically converting raw B

    Rather than convert in Elements I sometimes take photos in B&W yet whenever I import RAW files Elements converts them to colour. Can someone advise how to stop this?

    wystman a écrit:
    Rather than convert in Elements I sometimes take photos in B&W yet whenever I import RAW files Elements converts them to colour. Can someone advise how to stop this?
    First learn what a raw file is:
    http://help.adobe.com/en_US/creativesuite/cs/using/WSBD0EDB3C-9472-48d2-A3B1-7C06FABF0A2B. html
    A raw file only stores greyscale values of pixels under coloured filters. A raw file is not exactly an image, and its data holds color information.
    So, if you set your camera to B&W, no raw data values are changed at all. A tag will be added to the metadata to tell you have set your camera to output B&W jpegs.
    If you set your camera to B&W and output a jpeg the camera itself does the raw conversion to B&W.
    So, the ACR module in Elements does not convert to colour, it leaves the color that has been captured. From there you can convert to black and while in the ACR dialog, you don't even need to open the image in the editor. Simply move the saturation slider to the left.
    With many cameras, you have various modes or presets to get various B&W effects. You can get them by using the raw converter supplied by your camera maker; very often, you can get a similar effect by using the third tab in the ACR dialog (camera profile).

  • How do I get the PDF Convert feature of Adobe Acrobat Pro Extended 9.4.4, which makes a PDF of a web page interactive, to work in Firefox 4.0.1?

    I just installed (on my Windows 7 Ultimate (64 bit) operating system/Intel i5 CPU M560 2.67 GHz) and am now using as my default browser Firefox 4.0.1 because Internet Explorer 9 was giving me so much trouble--lack of display of web content, lack of PDF reproduction when web content displayed, screwball formatting display, etc., all of which has been remedied by the mere installation of Firefox 4.0.1.
    How do I get the PDF Convert feature of Adobe Acrobat Pro Extended 9.4.4, which converts a web page to an interactive PDF, to set up and work on Firefox 4.0.1?

    You can not do that using Adobe Acrobat 9. Adobe never made a create PDF add-on for Firefox for use with Adobe Acrobat 9. They created a Firefox add-on for use with Acrobat X, but currently that one does not work with Firefox 4 though Adobe are working on an update.

  • How can I install photoshop elements on a 64 bit windows system?

    How can I install photoshop elements on a 64 bit windows system?

    You just use the appropriate install disk/ download. See this:
    Install Premiere Elements, Photoshop Elements
    Or are you asking about some specific procedures?
    Mylenium

  • How can I use photoshop Elements 8 to make a DVD to play on a regular TV-DVD? [was:DVD-CD-r]

    How can I use photoshop Elements 8 to make a DVD that will show on a regular TV-DVD set-up

    You can't do this in PSE by itself. I'm assuming you have windows, so output your slideshow as a wmv file and then use Premiere Elements to finalize the disc, if you have that. If not, use whatever you do have (if you can burn DVDs, you have software). Even windows dvd maker will do this.

Maybe you are looking for