LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pb labview 2009 Number and string store data in file

Hi,

 

I m using labview 2009 in order to save data from instruments of mesure. My program generate Charts of string data that i would like to store in a file of table data. But when i read the file i don't see the digit after the digital point. So i forgot a part of the information which are very important for me.

Futurmore before the instalation of labview 2OO9 the program was ok with labview 8.5;

 

What can i do to solve this problem?

Have any modification with labview 2009?

 

Thanks in advance for your answer.

 

0 Kudos
Message 1 of 5
(2,695 Views)

Hi marcooo,

 

could you please attach a [snippet of] the text file you have written with your VI? And attach the VI you're using for reading the file?

 

One hint:

The "write to spreadsheet file" has a "transpose?" input. When using it you could omit the transpose array function...

Best regards,
GerdW


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

HI,

 

In attachment file you will find the data before the saving operation in data file.

We see in the file after the result. We have forgot all data after the decimal point, so we forgot a part of infortion that are very important in my application.

 

Thanks in advance for your help

 

Marc

Download All
0 Kudos
Message 3 of 5
(2,646 Views)

The problem is that you aren't using a decimal point in your text file but a decimal COMMA.

 

Set the format string of the Read From Spreadsheet File (I'm assuming that is what you are using because you didn't post the VI as you were asked) so that it uses the comma as your decimal separator.  The help file will tell the correct syntax to make that happen.

0 Kudos
Message 4 of 5
(2,636 Views)

Hi marcooo,

 

you're a German LabVIEW user?

 

When the problem came up after installing LV2009 you should open the options window and deselect "Use system decimal point".

Or (my preference) switch the regional settings of Windows to use "." as decimal separator (which is what you want when dealing with measurement data and hardware...)!

 

The format string you should use is "%,;%f", but that is explained very well in the context help!

Best regards,
GerdW


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