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

Similar Messages

  • 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 ...

  • 求助: 如何使用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处设置它们的路径.

  • Save 2D array in write to spreadsheet file

    Hello,
    I want to save 2 signals coming from 2 channels in  1 file ( as a 2D file:
    column 1 for signal coming from channel 1, and column 2 for signal coming from channel 2).
    How I can do it?
    See my example please. I can save these 2 signals on 2 different files.  I
    can not find a way to put them in on file.
    Thank you so much.
    Pascal
    Attachments:
    2 signal save.vi ‏80 KB

    Since the output of AI Read is a 1D array of waveforms you have to extract the data of each waveform and create a 2D array in order to feed that to the Write to Spreadhsheet File VI:
    You'll need to check on the transpose. Note that doing this will lose the timing information. You may want to use the Write LabVIEW Measurement File Express VI instead.
    Also, any reason why you have a loop set to run just once?
    Message Edited by smercurio_fc on 03-19-2008 03:16 PM
    Attachments:
    save 2D.png ‏3 KB

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

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

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

  • 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.

  • Please help me to write a class file?

    Hi;
    I want to write a class that
    after i input an integer say X in a dialog, it will calculate and display the answer of 2 raised to power X. The smallest value of X my program need to handle is 0. Teach me please!

    Which part of the program you need help with? Is it the interface, the actual calculation, the compilation, the editing ... etc.
    I don't think you're asking someone to do the whole program for you. Be a little more specific in:
    1. What you have tried so far
    2. What's not working ...
    3. What you don't understand and need clarification with ... etc.
    4. Do you have an education in Java ... how about in programming ...
    The question, as you posted, is just too vague ...
    But then again ... its quite possible that someone will post an entire solution for you ....
    Good Luck
    Kamran

  • 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

  • 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

  • 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/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.

  • Write to Text File - unflatten channel string

    Hi all,
    This is my first post on the forums!  It's been very helpful for me but I have not been able to find a solution to my (simple) problem.
    Operating system: Windows 7 (64-bit)
    Labview 2012 Full Development
    I'm using the DAQmx unflatten channel string to get the names of the channels, and when I Write to Text File, I get the names of channels to be displayed vertically, ie a new row for each channel in a column.  I'd like to "transpose" this, but obviously you cannot transpose a 1d array.  Any ideas on how I can do this?
    Any and all ideas are appreciate, thank you in advance,
    -AK
    Solved!
    Go to Solution.

    Show us how you are doing this.
    My guess is that once you get the data, you have linefeed characters separating the channel names rather than some other delimiter such as a comma or a tab.
    Depedning on how you are going from the channel names to the file (a string, an array of strings, Write to Spreadsheet File, Write to Text file, ....) will determine the best way to fix the problem for you.

  • Problem using read from spreadsheet file and polar plotting

    Hi to all labview users,
    i am a beginner in labview and i am trying to do a polar plot.
    i read the polar plotting example in labview and it was straightforward.
    I used "write to spreadsheet file" to gather data.
    and they are in the following format
    13  10
    4  20
    8 30
    ....etc
    now. i tried using "read from spreadfile" to get the data into a array, then using "array to cluster" to convert the array into cluster, so i could connect it to the polar plot block
    however, it kept saying i couldnt connect that way, because polar plot uses 1-d array with cluster of 2 element and my source is a cluster of 9 elements....
    but doesnt the "read from spreadfile" block give me a 1-d array? and where does that 9 come from? i only have 3 rows and 2 columns in my data file....
    any guidance would be greatly appreciated.
    thx alot
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate

    Helllo,
    I've made an example to try to help you  with that question.
    Notes:
     - the file must have values separeted by tab
     - reading the values from file as you mentioned using "read from spreadfile" you'll get a 2D array and not 1D;
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Read Table and plot polar graph.vi ‏26 KB
    teste.txt ‏1 KB

  • Writing 2-D array to spreadsheet file changes value of time column when saved

    I have a program that creates a new row in a table each time the loop performs.  Each time the loop performs and a row is added to the table, the program uses the "write to spreadsheet file.vi" to save this new table over the previous table.  The array is also visible on the front panel of the vi.  The program works in such a way that you can stop adding data to the array, start adding data to a new array, then come back to the original by using the "read from spreadsheet file.vi".  My problem comes after opening the spreadsheet file.  The first column of the array, which corresponds to the time when the data in that row was taken, has different values than those that were seen when the array was originally displayed on the front panel.  In fact, all of the rows that were created the last time the program was run with that array have the same value in the time column, while all of the other columns keep their correct values.  Here is an example of what is happening...
    When I start the program, and run it for 5 iterations, I get a table like this displayed on the front panel:
    3241713920
    85.88012
    93.88012
    1.735015...
    3241713930
    85.97603
    93.97603
    1.747003...
    3241713940
    84.58855
    92.58855
    1.573568...
    3241713950
    84.48096
    92.48096
    1.560119...
    3241713960
    84.93667
    92.93667
    1.617084...
    This array is saved to the spreadsheet file with each added row.  If I initialize and build another array, then come back to this first array using "read from spreadsheet file.vi," I will receive the following table:
    3241713920
    85.88012
    93.88012
    1.735015...
    3241713920
    85.97603
    93.97603
    1.747003...
    3241713920
    84.58855
    92.58855
    1.573568...
    3241713920
    84.48096
    92.48096
    1.560119...
    3241713920
    84.93667
    92.93667
    1.617084...
    If anyone could tell me why this is happening and/or how to fix it, that would be greatly appreciated.  One option I have contemplated is just having each individual row appended to the file instead of resaving the entire array with each iteration.  However, I would prefer to do it the way I am currently doing it, so I can pass the array through each time and perform different tasks on it, such as averaging the values in columns over different time periods.  Thank you in advance to anyone who can help. 

    DWDerr wrote:
    If anyone could tell me why this is happening and/or how to fix it, that would be greatly appreciated.  ...
    This KnowledgeBase article may help.  I think things changed in LV8.20, but I could be wrong.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

Maybe you are looking for

  • Multiple signatures - only ever displays one

    I have multiple email accounts - with, understandably, the need for multiple signatures. When I hit reply from (let's call it) Account 1, the Account 1 signature is used. When I hit reply from Account 2, the Account 1 signature is used! It's pretty a

  • Macpro with a Samsung Syncmaster 930B... Any Problems?

    Greets, I want to buy a macpro. I will be using it with a samsung syncmaster 930b. Anyone running the macpro with a samsung lcd? any problems? Any input or information is appreciated. Ibook G4   Mac OS X (10.4.8)  

  • BPEL Invoke reponse issue

    Hi, I'm pretty new to BPEL. I'm using netbeans IDE. I'm having an issue with invoke. My BPEL is pretty simple process, it receives input which is a city name and then invokes a webservice from a mileage system which returns latitude/longitude as as s

  • Highlight recovery comparison

    While folks have complained about the noise in Aperture conversions I've seen no comparison of highlight recovery between Aperture and Adobe Camera Raw. Here's my own. http://homepage.mac.com/frankpryor/Aperturepix/PhotoAlbum97.html The highlight in

  • Export Mobile App to Air Exe/Dmg

    I have an application for mobile devices that I want to export as an exe or dmg. I found online to use ADT. Problem is is that I get errors (different ones depending on if air SDK i use) If i use air 3.0: AIR file at [app path]/app.air could not be c