LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data to excel file

Solved!
Go to solution

i am trying to save data to excel file attached file shown bellow.

However I couldn't do that.

please tell me the solution.

0 Kudos
Message 1 of 11
(3,471 Views)

Hi xaviar,

 

However I couldn't do that. please tell me the solution.

The solution to what? "I couldn't do that" is surely no LabVIEW error message…

Your VI runs fine for me. (After I renamed it using only pure ASCII chars for the filename: keep in mind using asian chars will likely give problems to the rest of the world!)

 

Why can't you save your data?

What is the problem?

Did you get any error messages?

 

Best regards,
GerdW


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

Dear GerdW

 

Thank  you for your reply.

 

As you said, this program is working 

but when it finish running the program,

data was not saved even if i open excel.

 

Could you tell me why data was not saved to excel?

0 Kudos
Message 3 of 11
(3,458 Views)

Hi xaviar,

 

Could you tell me why data was not saved to excel?

No, I can't.

As I wrote before: your VI is running fine for me. I get an Excel XLSX file in the exact place I configure in the ExpressVI…

Best regards,
GerdW


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

Dear GerdW

 

Can you save the data in the specified excel file?

 

0 Kudos
Message 5 of 11
(3,448 Views)

Yes.

 

That's what I get after running your VI for some seconds:

check.png

(I added the plot in Excel to visualize the data…)

Best regards,
GerdW


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

Dear GerdW

 

in my case, I got an error message when I push the running button.

 

Do you know why ?
error message.jpg

0 Kudos
Message 7 of 11
(3,441 Views)

Hi xaviar,

 

Do you know why ?

No. Don't know where this message is coming from…

 

Just an idea: Do you have Excel open when starting your VI? Can you make sure Excel is closed!?

Best regards,
GerdW


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

Dear GerdW

 

Do I have to keep open Excel file while running the program?

 

 

0 Kudos
Message 9 of 11
(3,436 Views)
Solution
Accepted by topic author xaviar_nao

Hi xaviar,

 

no, you don't need to keep Excel open.

- You don't need Excel at all when running this VI.

- If Excel would be opened and if Excel is used to analyze the file created by your VI it would block your VI from changing this file: that's why I suggested to close Excel…

Best regards,
GerdW


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