raining010 Posted October 6, 2013 Share Posted October 6, 2013 Hi, Admin I used alarm dat, checked the content inside, found time was very strange, "1381090615.122" And the time in x axis of trend, is also like this. Of course my windows time is not this, I guess the time variable in DF Link to comment Share on other sites More sharing options...
AzeoTech Posted October 7, 2013 Share Posted October 7, 2013 That is standard DAQFactory time formatting, also known as Unix time and a variety of others as its a time format used by many applications. It is the # of seconds since 1970. Link to comment Share on other sites More sharing options...
raining010 Posted October 8, 2013 Author Share Posted October 8, 2013 hi, I have changed axis style from lin to data+time, the time appears, before that it was -20, etc. But the time in alarm.dat is this unix time, can I change it to normal time? So we are easy to read Link to comment Share on other sites More sharing options...
AzeoTech Posted October 8, 2013 Share Posted October 8, 2013 Are you loading alarm.dat back into DAQFactory? DAQFactory has functions for converting into readable time, including formatTime(), formatDate() and formatDateTime(). See section 4.12.11. Link to comment Share on other sites More sharing options...
raining010 Posted October 10, 2013 Author Share Posted October 10, 2013 Hi, Mr Guru Can I do some set, that make saved alarm time be window time, not the unix time? In alarm.dat, the time format is unix, could it save as 201310101400, some thing like this? Because this is easy for me and customer to read, at present, we don't have other softwares to convert unix time. We only open it by text, or word, or excel. Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted October 10, 2013 Share Posted October 10, 2013 How many alarms do you have, and what release of DAQFactory are you using? Link to comment Share on other sites More sharing options...
raining010 Posted October 10, 2013 Author Share Posted October 10, 2013 Hi, not too many, 70 different alarms to be displayed, and 5.87a version Link to comment Share on other sites More sharing options...
raining010 Posted October 12, 2013 Author Share Posted October 12, 2013 I tested, but failed today. The time in alarms.dat is - 1381140370.300 I used - File.Write(W_Handle,FormatDateTime("%c",Parse(F_line,0,","))) and - File.Write(W_Handle,FormatDateTime("%x",Parse(F_line,0,","))) They all didn't work, the result is 0 And I opened log.csv by then, the time in log.csv is - 41559.61301 I used - File.Write(W_Handle,FormatDateTime("%c",Parse(F_line,0,","))) Failed again, the result is 0 Link to comment Share on other sites More sharing options...
raining010 Posted October 12, 2013 Author Share Posted October 12, 2013 And could different version of DF provide more options to solve this? I bought a key before, could the key work in new version? Link to comment Share on other sites More sharing options...
raining010 Posted October 13, 2013 Author Share Posted October 13, 2013 solved this, paused alarm at startup, then use alarm check, CPU load is 10% now Thanks Link to comment Share on other sites More sharing options...
raining010 Posted October 13, 2013 Author Share Posted October 13, 2013 I solved this problem, and answer please refer to another topic Hope to help other guy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.