LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI stops saving data to file

The total amount of files per day is about 15,000.

 

OK, I would suspect that.  What OS are you on?

Any OS will have a certain amount of trouble with that many files in one folder.

Consider implementing an hourly folder to reduce the number of files in one place. 

Message Edited by CoastalMaineBird on 03-17-2009 02:12 PM
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 11 of 56
(1,789 Views)

I see no popup dialog in case of an error in either of your VIs.  I see where you do your error checking after the file write for your analog data, but the "error out" terminal in your file writing VI never exits the VI into your main program!  In fact, your main VI doesn't even contain an "error out" indicator.  Where, exactly, is the code containing your pop-up message?  The only error cluster in your main VI is connected to your queue functions.

 

So I still don't see how you know whether or not an error occurred.

 

Take the "error out" cluster of your file writing VI and wire that to the terminal of your upper "While" loop instead.  That way your loop will stop if an error occurs during your file write.

 

Or, as I suggested earlier, put a probe on the "error out" terminal of your file write VI and monitor that while your program is running.

 

0 Kudos
Message 12 of 56
(1,784 Views)

We implemented this daily breakup about three weeks ago, before that we had many days worth of data in the same folder, about 100,000 files.

Again, we started noticing this about a week ago.

 

The OS is "Server 2003 ". I mentioned XP, but I made a mistake.

 

Why wouldn't the VI give an error?

0 Kudos
Message 13 of 56
(1,782 Views)
The VI will indeed give an error if one occurs.  The issue is that, in your main VI, you have no way of seeing it.
0 Kudos
Message 14 of 56
(1,777 Views)
It's not really an error, but it could slow things down enough so that your logic stops working (I haven't looked into detail at your code).
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 15 of 56
(1,777 Views)

Hi Diane,

 

I know there is no proper error handling for the analog file save, but for the digital, if you look into the "Write To Spreadsheet File" block diagram you will see that there is a "general error handler.vi" which will produce a popup message.

 

Victor

0 Kudos
Message 16 of 56
(1,772 Views)

DianeS is right - your subVI goes through a lot of trouble to pass an error message out, but your main VI ignores it.

Perhaps you have an error and cannot see it. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 17 of 56
(1,769 Views)
Suppose the error is occurring in your analog write?
0 Kudos
Message 18 of 56
(1,766 Views)

Hi Steve,

 

What do you mean with "your logic stops working"?

 

I noticed that the front panel continues to update with new data.

 

I had a feeling it had to do with the amount of files in the folder, but I could not find anything that states the limit of that number.

 

Victor

0 Kudos
Message 19 of 56
(1,761 Views)

Diane,

 

Should'nt it generate the digital file anyway?

0 Kudos
Message 20 of 56
(1,760 Views)