LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Stamped Sreadsheet

Solved!
Go to solution

Hi

 

I have managed to generate time stamped excel file which works fine only for only single logging. If I have to do multilpe loggings, then my program does not create a new file. So can anybody have a look at my file and help me out why is it not creating new file everytime when Logging button is pressed

 

Thanks 

0 Kudos
Message 1 of 10
(3,767 Views)

Hi mimran,

sorry i can't open your vi at the moment. It should work if you create a new file inside of the button event, or a parallel process triggered from the button press event. You should also generate the filename everytime again, otherwise you overwrite the old file.

 

Mike

Message 2 of 10
(3,752 Views)

Hi mimran,

 

I have LV 8.6 can you save your VI as 8.6 and post it again to have a look.

 

 

Dimitrios

0 Kudos
Message 3 of 10
(3,744 Views)

Hi

 

 

Although I am generating seperate file names but I have founf that one of my while loop is not being stopped. Any idea how to stop the final while loop where file is being written to excel file. I have also converted the VI to 8.6 now.

 

 

Thanks

0 Kudos
Message 4 of 10
(3,737 Views)

 

Thanks Guys for your help. National Instuments technical support have solved my problem.

0 Kudos
Message 5 of 10
(3,721 Views)
Solution
Accepted by mimran

Hi mimran,

 

Glad to hear you short it.

 

You have wired a False constant to both your while loops so that's why it never stops any of your loops.

And your code will stuck on the inner while loop so a new file will not generated when you log for 2nd time.

 

I used an event case so every time your Boolean goes true it fires an event that will change your filename succesfully. Also i wired you outer bottom while loop to your stop button and used a local variable to stop the top while loop, that way both loops stop when stop button is pressed.

 

What did the NI guys suggested by the way?

 

Regards

 

Dimitrios

Message 6 of 10
(3,711 Views)

Hi Dimitrios,

 

 

I have managed to do same thing by changing loop condition to continue if true using Boolean local variable. Anyhow that problem is solved.  Thanks

 

How I can change  style of Columns Headings to Bold.At the moment write to spreadsheet function doesnt take any style parameter.

0 Kudos
Message 7 of 10
(3,705 Views)

Under Programming---->Report Generation Pallete i have a VI under the Excel Specific VI's that is doing that.

 

Have a look on the Help image below.

 

Excel Set Cell Font VI.JPG

Message 8 of 10
(3,695 Views)

Hi,

 

I am working on a project which involves logging of different calculated real time values to excel file and then insert graph in same previous saved file.

So at the moment, I am able to generate time stamped file (e.g test_28_04_10_10_2). I have to implement further improvements to this excel file.

 

1)Column headings should be bold.

2)Insert graph in same saved file.

 

 

I did tried report generation toolkit but found that I need to use function "New Report" function because return type of this function is report out which is being used as an input in every report generation function.

 

The drawback of using this New Report function is that, it opens up Excel in real time and then user has to save the file by itself. I can work with this function if excel doesnt opens up and generate graph in the background.

 

 

Thanks

0 Kudos
Message 9 of 10
(3,671 Views)

Hi Arrowminds,

 

Can you supply a VI for LV 8.6?

It might be better to start a new thread because is a different issue and you will get more help.

 

Regards

 

Dimitrios

0 Kudos
Message 10 of 10
(3,652 Views)