ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Only getting one significant figure on my excel file

I'm trying to create a program that exports the data from two pressure transducers and a thermocouple into a labeled excel file with headers and it currently does this but it doesnt export the decimal points of pressure or temperature. how do i change this?

FordClark_0-1741290772466.png

Back Panel

 

FordClark_1-1741290845735.png

Excel File

0 Kudos
Message 1 of 3
(404 Views)

This node right here:

Kyle97330_0-1741297897406.png

That is "Number to Decimal string", but it actually does not use decimal points at all.  Use "Number to fractional string" instead.  That defaults to 6 digits of precision and has an input to change that number.

 

Message 2 of 3
(375 Views)

Hi Ford,

 


@FordClark wrote:

how do i change this?


While Kyle gave you the answer I might suggest improvements:

  • Learn about coercion dots and their meaning. There are several dots in your image…
  • Learn proper array handling in LabVIEW. When you want to build an array then you should use BuildArray (but not InsertIntoArray)…
  • Try to reduce the usage of DDT wires (and ExpressVIs): they hide the underlying datatype from you…
  • You can implement scaling directly in DAQmx by applying scales to each channel…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(341 Views)