LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use Write To Spreadsheet File in labview?

Changing the extension of a bmp file to get around the ban on them is not appropriate behavior. I, for one, will not look at the image or answer your question.
0 Kudos
Message 21 of 38
(5,633 Views)

And why did you post the question in a 2 1/2 year old thread when you already asked it here?

 

Please keep it in one thread.

0 Kudos
Message 22 of 38
(5,631 Views)

Hello,

I also have some problems using the "write to spreadsheet file". Always the following error occurs:

0 Kudos
Message 23 of 38
(3,754 Views)

Since you have no path wired you should get a popup asking for file name. If you canel that you'll get this error.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 24 of 38
(3,746 Views)

hi

i want to save on array to file and i write something to save this variable but i have a problem with it. when i run the program in every loop of while loop the program ask path address to save data. but i want choose path at first and program save all amount of variable in whole of program until i stop it. what shall i do?

 ( i attach an example about my question please give me solution with it or if it is rubbish, send me the answer with every thing is possible for you)

 

thank you

0 Kudos
Message 25 of 38
(2,922 Views)
To solve your problem open the file outside the loop, then inside the loop write to it as many times as needed. Finally, close the file when the loop ends.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 26 of 38
(2,907 Views)

thnk you for tour answer

 

i have another problem. i have a varible that is just a nuber and it update in each loop iteration and i want to save all amount of this variable in whole program and I want to save it in excel file. what I must do?

 

thanks

0 Kudos
Message 27 of 38
(2,895 Views)
You can either save the value point by point inside the loop, or accumulate it into an array and save it all at once when the loop stops. The correct choice depends on how fast and how long the loop runs.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 28 of 38
(2,876 Views)

Hi,

 

I want to write my loop execution time in date/time format and frequency in Write to Spreadsheet using 2D array . I tried but failed. Can you please give me any clue to solve my problem. Here is my vi.

 

Thanks

0 Kudos
Message 29 of 38
(2,688 Views)

1. You should close the instrument AFTER the loop.

2. Why the 2D Array?  I only see a frequency measurement being taken.  You should use a 1D array since you should write the data each iteration of the loop.

3. I would actually advise against using the Write To Delimited File VI since it opens and closes the file with each call.  Instead, open/create the file before the loop and close it after the loop.  Inside of the loop, you can use the Format String to create your row of data.  Part of the format can be how you format the timestamp.  Here is a very quick example of what I mean.


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
0 Kudos
Message 30 of 38
(2,679 Views)