montyk Posted December 30, 2008 Share Posted December 30, 2008 I am using DAQFactory to monitour a number of test and log the data which works fine but the problem that I am having is that I can not get DAQFactory to run for an extended period. It will run fine but then it will just shutdown with no warning I can not find anything wrong. I am using the presist history to save system resources it does not seem to using a lot of memory. I have attached my ctl. Lab_16_TCP.ctl Link to comment Share on other sites More sharing options...
AzeoTech Posted December 30, 2008 Share Posted December 30, 2008 Well, to start with I'd try eliminating all those sequences for firing off emails and replace it with one: if (SysTime()<8h) WaitUntil(8h) else WaitUntil(8h+86400) endif email.strHost="192.168.0.6" email.strUserName="Monty King" email.strTo="montyk....." email.strReplyAddress="montyk@apsmaterials.com" email.strReplyName="Monty King" email.strAuthenticate="NoLogin" email.strSubject="Data Logging" while(1) email.strSubject="Data From CH1" email.strFile="S:\CERANODE\Engineering\LAB\Data_Lab_16ch\CH1\1c.csv" email.strBody="Data Logging File For CH1" email.Send() delay(60) email.strSubject="Data From CH2" email.strFile="S:\CERANODE\Engineering\LAB\Data_Lab_16ch\CH2\2c.csv" email.strBody="Data Logging File For CH2" email.Send() delay(60) email.strSubject="Data From CH3" email.strFile="S:\CERANODE\Engineering\LAB\Data_Lab_16ch\CH3\3c.csv" email.strBody="Data Logging File For CH3" email.Send() delay(60) ... for the rest WaitUntil(8h+86400) endwhile First, you only need to change the email. variables that actually change between emails. There is no advantage to using separate sequences for the email because there is a single email service in DAQFactory. In fact, its possible that the fact that you are doing it from 16 different threads is what is causing the problems. Its also possible that this has nothing to do with it, but you should change it anyway, and its worth a try. If its not this, its probably the webserver, but lets start with this. Link to comment Share on other sites More sharing options...
montyk Posted December 31, 2008 Author Share Posted December 31, 2008 Thank You, But that did not fix the problem, plus I had it set up as seperate sequences because we do not always have all 16 units running at one time and did not want to send an email for units not being used. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 31, 2008 Share Posted December 31, 2008 An if() statement is a better choice for that (well, 16 if() statements around each Send()) Try disabling the webserver, save the doc, then restarting DF. Link to comment Share on other sites More sharing options...
montyk Posted January 6, 2009 Author Share Posted January 6, 2009 Disabling the webserver did not help it seem to will only run for a couple of hours before it shutsdown. The email sequence is not running at this time. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 9, 2009 Share Posted January 9, 2009 There certainly doesn't appear to be anything wrong. Have you tried to run this on a different computer? Link to comment Share on other sites More sharing options...
montyk Posted January 9, 2009 Author Share Posted January 9, 2009 Yes I have tried on different computer, switched to serial communication and tried to slow down polling time from 2 sec. to 10 sec. but DF still will only run for at the most 6 hours before it just closes. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 9, 2009 Share Posted January 9, 2009 Well, somethings different on your systems. What release of DF are you running? Sorry about all the questions, but sometimes the simplest detail gives away the answer. Its debugging 101. Link to comment Share on other sites More sharing options...
montyk Posted January 12, 2009 Author Share Posted January 12, 2009 No problem I do uderstand. I am using 5.79a. I have uninstalled DF and used a procedure post on the forum to completly remove DF including file that are not uninstalled and the I reinstalled DF still the same problem. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 12, 2009 Share Posted January 12, 2009 OK, trying to narrow it down: try doing it without the attachment and see if it makes a difference. Link to comment Share on other sites More sharing options...
montyk Posted January 15, 2009 Author Share Posted January 15, 2009 I am sorry this is a dum question but what attachment. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 15, 2009 Share Posted January 15, 2009 Never a dumb question. I just wasn't clear. I meant the attachment you are sending with your emails. Comment out all the lines that say "email.strFile = ...." and just put email.strFile = "". I know you want to send attachments, but I'm trying to find the source of the problem, and the easiest way is to simply remove parts one by one until it starts working properly. After that (if it doesn't fix it), try sending just one email per cycle. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.