LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel file for continuous data of DAQ

 

I am using Mixed Signal Graph to acquire the data of 8 analog channels. The data is continuous and I display it in intervals of 5 s. When I Export Data to Excel file, it only exports the current data. How can I save all the acquired data in the same excel file.

 

Secondly, "export data to excel" feature seems missing in LabVIEW 2009. Is it so ? Is there any alternative in LabVIEW 2009 ?

 

Waiting.

0 Kudos
Message 1 of 12
(8,230 Views)

Hi Bill,

 

Would it be possible to upload your vi? I have attached a vi showing writing to a spreadsheet in a while loop. Idk if this will help with your situation, but moving your write to spreadsheet function inside your while loop and indexing the path might be what you have to do.

 

Bret

0 Kudos
Message 2 of 12
(8,209 Views)

forgot the vi...here it is

0 Kudos
Message 3 of 12
(8,208 Views)

Are you using the graph options available in 2010? Export data to Excel ? If yes, try this have a loop and use shift register build current and previous waveforms and when loop stops use export to excel option.

0 Kudos
Message 4 of 12
(8,200 Views)

Hello,

 

I have attached an example from the LabVIEW Example Finder that demonstrates the use of the 'Write to Spreadsheet' Vi. You might also consider using the 'TDM Excel Addin' of which I am including information about below.

 

Editing TDM(S) files with the TDM Excel Add-In


TDM Excel Add-In Tool for Microsoft Excel User Guide

Moving Beyond Microsoft Excel for Measurement Data Analysis and Reporting

 

Hope this helps,

Patricia B.

National Instruments
Applications Engineer
Message 5 of 12
(8,151 Views)

Hi BretD, please help. thanks. 

0 Kudos
Message 6 of 12
(8,118 Views)

 Hi BretD, 

Thank you very much. I figured out that "Append to File" was not set to True. Thanks again. 

 

I am stuck in the following. I will be grateful if you can help further:

1. I need to clip the negative portion of 2 waves in Mixed Signal Graph. The data is dynamic data type. How can I see the contents of this data type? and how can I change it e.g. if data value is less than 0, i need to replace it with 0. I have tried Comparison, select blocks but to no use. 

I then used "Value" Property node of graph but it shows the last value of 1st wave only.

2. How can I generate the GUI of the LabVIEW VI so that it runs independently?

 

Many thanks in advance 

0 Kudos
Message 7 of 12
(8,111 Views)

Hi Billo000,

 

Dynamic data types are convenient, but they take more work to manipulate.  Please see the following forum post where this topic is discussed.  Essentially, you'll have to convert the DDT to an array before you can modify it.

https://forums.ni.com/t5/LabVIEW/Waveform-vs-Dynamic-data/td-p/201654

 

In regards to a standalone exe, you would need to install the Application Builder Module to build it.  You can create an exe from the VI and deploy it to another system.  Please see the following:

https://www.ni.com/en/support/documentation/supplemental/19/introduction-to-the-labview-application-...

 

 

Regards,

 

 

Che T.
Applications Engineer
National Instruments
0 Kudos
Message 8 of 12
(8,060 Views)

Hello,

 

What if we want to control the size of the excel file we are creating so that every 5mb to create a"_part2" and so on...

My problem is that i am acquaring data and only when i stop the program the file is created and then can be checked.

Could i check the size of the file while is being written?

Using LabVIEW 2011.

 

Thanks a lot

0 Kudos
Message 9 of 12
(7,939 Views)

It dawned on my that it was as simple as to create and start filling the file before checking and then, after the check to give it the final inputs (ex .csv) 🙂

0 Kudos
Message 10 of 12
(7,935 Views)