Write traces to spreadsheet file mis-wiring

I want to extract the data from the DSC database based on a user- or program- defined time range and write that data to a text file. I have the first stages of that set up here, but there is a broken wire (cluster type) that I don't understand what about it is broken.
According to the help dialog for "Write Traces to Spreadsheet File", the trace information cluster shown in the vi should be correct. But it is not and is marked as a false connection. What is wrong???
Attachments:
extract_data_from_database_-_sent_to_NI.vi ‏52 KB

Change the order of the objects inside your cluster. Disconnect the cluster wire from the write traces to spreadsheet file vi. Right click on the terminal and select create constant. Turn on the context help window and move the cursor to both wires and note the order of the items in the datatype of the wire.

Similar Messages

  • Write/read from spreadsheet file

    How to write and read bach 2D array from spreadsheet file?

    The Write to Spreadsheet File.vi and the Read to Spreadsheet File.vi that ship with Labview are fairly self-explanatory - also check the File I/O examples included with Labview.

  • Alarm & Event Query To Spreadsheet File VI doesn't work correctly (DSC 7.1)

    I am using the Alarm & Event Query To Spreadsheet File VI to write alarms/events to an Excel spreadsheet. However there are two things it does wrong:
    1. Global variables in the header are not correctly inserted. I am using the header "{creationDate}{delimiter}{creationTime}" but none of the variables are translated to their actual values. The same header in Write Traces To Spreadsheet VI works correctly, so I assume it is only the Alarm & Event Query To Spreadsheet File VI that isn't working.
    2. My display format is set to display the date of the alarms but it never appears. Set time/ACK time, etc all appear, just not the date.
    Can anyone explain what might be wrong?

    Hi AndrewWilliams,
    I have been looking into this problem for you and I can't quite figure out exactly what it is you are trying to do. Could you possibly send me your VI's (for the Alarm & Event Query To Spreadsheet File VI and for the Write Traces To Spreadsheet VI) so I can get a better idea of it.
    Have you looked at the Export Alarms to File VI in the LabVIEW examples that are installed with the DSC module. This is a very good VI and it might help you to see any faults in your code.
    Hope this helps, I look forward to speaking to you soon.
    Best regards,
    Peter H.
    Applications Engineer.
    National Instruments.

  • Adding 2 arrays to a Spreadsheet file Help!!

    I'm trying to write to a spreadsheet file and I want the date and time in one column and the data from my channels in another. I'm running the problem that my time is in a string format and my channels are in a number format. Attached is what my program currently looks like.
    Any help would be great..
    Thanks,
    Pier
    Attachments:
    Array Problem.jpg ‏121 KB

    Paulo,
    I dont understand what you mean about putting the write to spreadsheet in. Do you mean putting it in twice would solve this or not? I'm looking for a top header to be as follows:
    Time/Date | Channel 1 name | Channel 2 name | etc....
    Could you possibly show me what you mean with the previous example I sent you.
    Thanks,
    Piero
    Hello,
    You have your file wrong formatted, because, the first time you write to it, you write as a normal text file, and that will be how excel will interpret it. You have to replace the "Write characters to file.vi" by the "Write to Spreadsheet file string" that I sent you.
    If you allow me, I would like to make some extra comments on your code:
    1 - When you connect an array to a for loop, there is a property of the tunnel (the point where the array goes in the loop) that is auto-indexing. Right click it and select it. This replace all those index array that you have inside your for loops and the array size wired to the N input of the loop. This will automatically index the array and the loop will automatically run n times where n is the number of elements of the array.
    2 - I'm not sure about this, because I didn't run your program, because I don't have a DAQ board installed in this PC, but I think that the secont For loops that you have (the little one) is doing nothing there.
    3- try to keep your code more clean, you have it spread for a very big area with a lot of empty spaces and apparentl~y there is no flow from left to right in your code that makes it more difficult to understant it.
    Hope this helps,
    Paulo

  • Need example with write to DATA log file programmatically?

    Hi all,
    I would like to request for an example of writing a datalog (*.DAT) file which could do this.
    Datalog file.
    NAME: AGE: SEX: (header)
    john 16 M (data)
    marie 55 F
    Dolah 34 M
    The program can also let me to add in new data and then store in the same file.dat. The data (hopefully) can be written to the bottom of the last saved entry of data. (eg. after the row Dolah).
    I need to do this so that I can open and read back the datalog file and use the data for other purpose.
    Please help,
    juni

    You've got some examples in Fundamentals>File Input and Output but one of the easiest things to do is to modify Write Strings to Spreadsheet File.vi to write strings as detailed at the bottom of the diagram and then save it to a different place and with a different name.
    Attachments:
    Spreadsheet_File_Write.jpg ‏17 KB

  • Write to Spreadshee​t File

    Hello,
    I am trying to write to a spreadsheet file. 
    There are two things which I am trying to do which the current .vi doesn't do. 
    1. Ask for a file name outside of the while loop. At the moment this occurs inside of the while loop.
    2. Append to file (by setting to True) doesn't work as every time the while loop is iterated in this example it asks me for a new file name. Shouldn't it just append to file without asking for a new file name on every iteration.
    Thanks,
    Solved!
    Go to Solution.
    Attachments:
    SWIR spectrometer solo save.vi ‏33 KB

    If you don't specifiy the file path, then the Write to Spreadsheet File asks for the file.  That just the way the function works.  If you go into the Advanced File Functions palette, you will find a File Dialog function.  Put that outside of your loop and pass the resulting path into the loop and to the Write to Spreadsheet File.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Write to spreadsheet file.vi is storing data in one row only.

    The 8 points of data is going into one column in the spreadsheet. In the "Write to spreadsheet file string.vi" how do I write the 8 points to one row for each cycle?
    I got this VI from NI's web a couple of years ago and forgot how to modify this part. I usume it is within the write file.vi.
    Thank you in advance
    Skip

    I just reread your original post and the way the "Write to Spreadsheet File.vi" that ships with LV works by default is to put 1D arrays into rows. I read your post backwards and told you how to put the data in a column. Sorry.
    In any case, perhaps you need to make sure the Transpose input ISN'T true, and that the delimiter IS a tab.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Some Doubts in write into spreadsheet file function

    hi,
    i have some problem with writing the values into excel file...if \ found then the values after will write the values in next rows...
    for eg. if i give 78/58\46/86 then i will write as in picture i hav attached..
    Attachments:
    Mod 1.vi ‏23 KB
    Untitled.png ‏135 KB

    The Write to Spreadsheet File is not the same as writing to Excel -- for that, you should use the Report Generation Toolkit (and there have been a number of posts here, as well as examples that ship with LabVIEW).
    That being said, it is not clear (a) what you are trying to do, and (b) what is (or is not) happening.  The image you attached looks OK ...

  • Error 6 occurred at Open/Create/Replace File in Write Spreadsheet String.vi- Write To Spreadsheet File (string).vi- Untitled 1

    Hi I'm getting the above error when attempting to get a file path control to write to a spreadsheet vi?
    The spreadsheet is opened in open office but saved as a .xls in the documents folder.
    The spreadsheet only contains one row and three columns each with text contained but when I run the VI and then open and view the actual speadsheet all three headers appear together in the A1 cell before the title error message appears.
    Is Labview not compatible with open office? Perhaps someone can confirm if this is indeed the case?
    Thanks in advance...

    Solved. One just needs to click seperate by tab in the import dialog than opens in OO calc.

  • Bug in writing Integer Data in Hex in Write Spreadsheet File

    It appears that Write to Spreadsheet File forces all data to I64. Try writing an I16 or I32 array with a negative number. Format specification to 4x, 8x or whatever is ignored and you get a full completent of 16 bytes with a lot of FF's at the beginning making it I64 
    Chief Scientific Officer & Ex-Head
    Advanced Centre for Materials Science
    Indian Institute of Technology
    Kanpur 208016
    Phones: +91-512-2597830, 3927830(Off), 2574628 (Res), 9336117477 (Mob)
    Fax: +91-512-2597459
    E-mail: [email protected], [email protected], http://home.iitk.ac.in/~sg

    Hi;
    it's not a bug it's a feature :-)
    Whenever you want to format numbers the formatting routine will try to leave as much digits as needed/possible. When you format I8 then 2 digits are ok, I16 needs 4 digits and so on.
    You can easily test this behaviour when using the 'Array to spreadsheet string' function (it's also used inside 'Write spreadsheet file'). When saving negative integers as Hex formatted ALL digits are needed to describe the number and so you get all of them in your text file!
    The only problem is: 'Write to spreadsheet file' only knows about I64. Whenever you want to save negative numbers you get 16 digits regardless of format string.
    Solution:
    Change the 'write to spreadsheet file' as described before or do the formatting on your own by using 'array to spreadsheet string'!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • May i write data to a spreadsheet file at different times

    I'd like to write two sets of data at different times(not simutaniuosly)into the same spreadsheet file. I tried to re-open the spreadsheet file which i created when i wrote in the first set of data, to write in the second set of data. But it didn't work. I don't know what's wrong with my program. I have selected APPEND when I tried to write the second set of data in the old file.

    not nay errors appear.
    the following is a similar easy copy of the program. I don't want to post my original program because too many subroutines.
    Tanks a lot to Mikeporter
    Attachments:
    easier_copy_of_my_program.vi ‏28 KB
    gen3.txt ‏78 KB
    P4SG-1Z(MOB-FRE) ‏14 KB

  • Write comment and headers to spreadsheet file

    Hi, 
    I am using Labview 2010 to run IV measurement. After getting IV data (2D array), I am using "write to spreadsheet file.vi" to save my data. However, I want to add some comments and time&date into that file. How can I do that?
    Thanks,
    Joyce

    See the attachment.  What do you get at the output of the concat string?  Is it 0.00 at that point?  Post your code if you are able.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home
    Attachments:
    Joycezh.png ‏12 KB

  • 求助: 如何使用write to spreadsheet file.vi 和 read from spreadsheet file.vi, 并且如何定义它们的路径???

    请问如何使用write to spreadsheet file.vi 和 read from spreadsheet file.vi,我知道spreadsheet file.vi只支持.txt文件,但我应该在哪里设置它们的路径呢,请各位帮忙指点,能不能具体说明下,谢谢...

    write to spreadsheet file.vi 和 read from spreadsheet file.vi,支持.xls文件.
    可以在path处设置它们的路径.

  • Help on fonction Write to spreadsheet file

    Hello,
    I come on this forum to find a solution for my issue.
    I have made a VI which acquires an input voltage and where the user can modify some parameters.
    For each iteration of my while loop, I want to save the data in a csv file that's why I'm using the fonction Write to spreadsheet file.
    But when I want to use this saved datas in csv format with Excel, the data were saved in string format so not a numeric. My purpose is to have some numerical datas and not strings because I can't do graphics or calculs.
    As you can see on the csv saved file, only the iterations of the while loop (column C) are in a numerical format.
    Here is my problem, thank you in advance for your help
    Attachments:
    VI.png ‏22 KB
    Excel_saved_file.png ‏11 KB

    Looks like you're using regional decimal signs, try "%.;.3f" as format
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • 求助: 还是一个如何使用write to spreadsheet file.vi 和 read from spreadsheet file.vi, 并且如何定义它们的路径的问题???

    在定义路径时有两个路径框,一个是FILE PATH,另一个是NEW FILE PATH,请问我应该定义哪个呢???定义好后就可以直接往spreadsheet file.vi中存储和读取记录了吗???还需要再做任何其它的工作吗???谢谢...

    定义file path就可以了,new file path 是这个VI的输出

Maybe you are looking for