LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assistant Excel Export Decimal Precision

Solved!
Go to solution

Hello - I'm trying to write data from the DAQ Assistant to Excel in LabVIEW, and it's mostly working, but I'm running into an issue where the data exported to Excel only has 3 decimal places of information. I think there is a "%3f" setting somewhere based on other questions, but I can't seem to find it for the DAQ Assistant - does anyone know how to modify the assistant so that I can export an arbitrary number of decimal places for each data point to Excel? Thanks!

 

zali147_0-1653980205384.pngzali147_1-1653980227407.png

 

0 Kudos
Message 1 of 7
(1,763 Views)

Hi Zali,

 

unfortunately you use the latest version of LabVIEW which is not used by all of us. When you want to address a broader audience you should downconvert your VI before attaching…

 


@zali147 wrote:

I think there is a "%3f" setting somewhere based on other questions, but I can't seem to find it for the DAQ Assistant - does anyone know how to modify the assistant so that I can export an arbitrary number of decimal places for each data point to Excel


As far as I can see in my LabVIEW2020 version when setting up the DAQAssistent that logging in the DAQAssistent uses TDMS files. Those TDMS files don't have any "%.3f" formatting, they store the sample data in binary!

 

How do you open those TDMS files in Excel? Do you use the TDMSPlugin for Excel?

Did you ever tried to change the cell formatting for that signal column? (I guess the problem is just with Excel…)

Can you attach an example TDMS file created from your VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(1,743 Views)

Hi GerdW,

 

Thanks for the reply! I'm not using TDMS logging - I just right click the graph and select the "Export Data to Excel" option like in the attached picture. 

 

zali147_0-1654031559852.png

 

0 Kudos
Message 3 of 7
(1,704 Views)

Also, I've attached the downconverted file - there is nothing other than a DAQAssistant module though.

0 Kudos
Message 4 of 7
(1,703 Views)
Solution
Accepted by zali147

Unfortunately for export data to excel or clipboard you don't have a way to set the number of digits of precision. You would need to adopt the logging feature or implement your own write to csv feature with proper numeric formatting.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 5 of 7
(1,690 Views)

Hi zali,

 


@zali147 wrote:

I'm not using TDMS logging - I just right click the graph and select the "Export Data to Excel" option like in the attached picture. 


Then why did you wrote about a problem with your DAQAssistent ExpressVI? You don't export data from DAQAssistent, you export the data from that graph! (That's a small, but subtle difference…)

 

You might try to change the Y scale formatting to show more digits before exporting the shown data to the clipboard.

The better way would be to use the TDMS logging in the DAQmx driver (or to write your own data export function implementing the formatting as required)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(1,676 Views)

TDMS logging solved the problem. Thank you!

0 Kudos
Message 7 of 7
(1,628 Views)