LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I configure a table such that it takes data from a existing chart?

Look at the Write to Spreadsheet File.vi.

0 Kudos
Message 11 of 23
(1,234 Views)
I've read through that many times and I don't know what it means to "enter the numeric data you wan to write to the file in the 2D data control."
0 Kudos
Message 12 of 23
(1,227 Views)

You wire the data you want to write to the input. You can wire either a 1D array or a 2D array.

 

For you, it might be simpler to just use the Write to Measurement File since you have dynamic data. Just dropt the function on the block diagram and connect the same wire you have going to the table to the signals input of the Write to Measurement file.

0 Kudos
Message 13 of 23
(1,221 Views)
Can I stream data into the file constantly rather than going point by point?  And how do I open this file once I create it?
0 Kudos
Message 14 of 23
(1,216 Views)

You are creating data point by point and if the Write to Measurement File is inside the loop, you will be streaming the exact same data that is being written to the table.

 

What you use to open the table will depend on the format you select in the properties of the function. If you select Text (LVM), you can open it with Notepad, WordPade, Excel, etc.

 

p.s. I don't understand your sample compression function. You are aquiring a single value with the Instrument I/O Assistant. What are you trying to compress?

0 Kudos
Message 15 of 23
(1,204 Views)
You're right, I don't believe I need to compress anything.  When I try to open it using open office spreadsheet, I don't get a time column and a current column like I have in the table.  I just get a bunch of nonsenseand no numbers.  Am I doing something wrong?
0 Kudos
Message 16 of 23
(1,198 Views)

Why don't you post your updated code so someone can see what you've done an also attach the file you've created?

0 Kudos
Message 17 of 23
(1,195 Views)
Not sure how to get my code (sorry, new user) bu here is my updated file.
0 Kudos
Message 18 of 23
(1,191 Views)
Sorry, forgot the attachment.
0 Kudos
Message 19 of 23
(1,189 Views)

Of course it's nonsense. You selected Binary with XML Header. As I said, the first option - Text (LVM) is the one you want. Binary (TDMS) can be used with a plugin.

 

Uh, code is the same thing as your VI.

 

 

p.s. check your other options. For example, you've selected not append to the existing file.

Message Edited by Dennis Knutson on 06-29-2009 09:46 AM
0 Kudos
Message 20 of 23
(1,180 Views)