LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rounding numbers to the nearest integer in Excel

Solved!
Go to solution

Hi GerdW

 

I have done that in message 6, and it still rounds the numbers.

Best regards

Oesen
0 Kudos
Message 11 of 20
(914 Views)

Hi Osman,

 

in message 6 you included a text in the message and in message 10 you wrote something about opening and saving a file (I presume in Excel)...

 

Please attach the text file as it is created from your VI...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 20
(902 Views)

Im a bit confused, but let me explain it in this way.

 

Now i open a new notepad document, and save it as example.txt in the desktop

 

I change the filepath to example.txt

 

integer.png

 

I test my VI and get the results below:

 

 

integer.png

 

 

Best regards

Oesen
0 Kudos
Message 13 of 20
(889 Views)
Solution
Accepted by topic author Oesen

Hi Osman,

 

please try the attached VI.

I replaced WriteToSpreadsheetFile with ArrayToSpreadsheetString and WriteText.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 20
(885 Views)

Thanks for the help GerdW..

 

I works now !!!

 

So i always need to use array to spreadsheet, when i will have some data from a array to excel ?

 

 

Best regards

Oesen
0 Kudos
Message 15 of 20
(879 Views)

Hi Osman,

 

WriteToSpreadsheetFile should do the same as my example.

But maybe you accidently changed something in that VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 20
(877 Views)

Hmmm.. i can see that it doesn't include my headers in the excel file now

Best regards

Oesen
0 Kudos
Message 17 of 20
(867 Views)

Hi Oesen,

 

ok, I forgot to set the file position after opening the file for saving your data.

 

Either include a SetFilePosition after OpenFile or write the header data after OpenFile using the same appraoch like me!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 20
(863 Views)

Something like this ?

 

integer.png

Best regards

Oesen
0 Kudos
Message 19 of 20
(852 Views)

@Oesen wrote:

Something like this ?

 

integer.png


Change that start enum to end and you will be fine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 20 of 20
(842 Views)