LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve saved excel sheets from the specified path

Hi

    I've saved excel sheets in a folder programatically. Can I retrieve them  programatically by specifying the name of the

 

excel sheet.

  

          I'm using LabVIEW 2009

Regards
RobinHood
0 Kudos
Message 1 of 19
(3,411 Views)

You'll have to be more explicit about what you have done.  Are you using the report generation toolkit?  Did you generate/manipulate the data within an excel sheet and then save the file or are we talking about a simple file transfer operation? 

 

I'm quite sure it's the latter because if it were the former you wouldnt be having these problems 😉

 

Post your VI or a highlight your code on the block diagram and Edit --> Create VI Snippet from Selection.  Post the image.

0 Kudos
Message 2 of 19
(3,408 Views)

I'm using Report generation Toolkit. I've made a sub vi(for excel) anf have put it in the main vi. This sub vi(for excel) will

 

take data from the main vi and then save it.xl.png

Regards
RobinHood
0 Kudos
Message 3 of 19
(3,399 Views)

I've one more thing Battler. If I generate data and save it in an excel sheet with name VPA-1(say). Next time you run the 

 

code and if you give the same name(as VPA-1) for the excel sheet then it should ask "The file already exists, do you want

 

to replace it". I've made "prompt to replace button" true in "Save Report to File VI". But it is asking for every file

 

even if the file was not there actually.

Regards
RobinHood
0 Kudos
Message 4 of 19
(3,396 Views)

Hi,

     Can anyone help me out

 

Regards
RobinHood
0 Kudos
Message 5 of 19
(3,388 Views)

For your 1st question, does this help?

 

http://decibel.ni.com/content/docs/DOC-3546

 

There is heaps of info about Excel development.  Search ni.com.

 

Also, have a look at the File I/O --> Advanced File Functions pallete.

 

 

0 Kudos
Message 6 of 19
(3,376 Views)

Here's how to open Office (Excel or otherwise) if you don't have the Report Generation toolkit (such as I).

 

http://decibel.ni.com/content/docs/DOC-6843

0 Kudos
Message 7 of 19
(3,375 Views)

Thanks Battler. But, I couldn't  understand "No Error"  case section of the vi. can you explain what is happening in that case.

                      

Regards
RobinHood
0 Kudos
Message 8 of 19
(3,335 Views)
Can you post a block diagram image so we can have a look.
0 Kudos
Message 9 of 19
(3,296 Views)
error.pngno error.png
Regards
RobinHood
0 Kudos
Message 10 of 19
(3,288 Views)