GQ Electronics Technical Support Forum Active Users: / Visits Today:
Highest Active Users:
GQ Electronics Technical Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 GQ Electronics Forums
 2.GQ Geiger Muller Counter
 GQGMC Pro data logging
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jebus

USA
6 Posts

Posted - 06/24/2012 :  17:18:00  Show Profile  Reply with Quote
I have the GQGMC Pro software logging my GMC-200 each minute with ten minute averaging. I send this to my home automation server for parsing and graphing display. Date and time are correct on both computers.
I notice that the timestamp on the data logging in a csv file is linear from the start of logging and not the actual time of record.
Can this be changed?

GMC-200
Reply #1

Jebus

USA
6 Posts

Posted - 06/25/2012 :  16:28:42  Show Profile  Reply with Quote
I have confirmed the data logging timestamp falling behind realtime.
I started a new file and the time stamp matched realtime.
2012-06-24 20:34,0.0700,14,
After 19 or so hours the timestamp is off by about 1.5 hours.
2012-06-25 15:56,0.1450,29 current timestamp
It is now 5:36 realtime

GMC-200
Go to Top of Page
Reply #2

Jebus

USA
6 Posts

Posted - 06/25/2012 :  16:45:57  Show Profile  Reply with Quote
I believe it is the way you are clearing the file to 0 bytes before writing the whole file again. Wouldn't it be better to open the file and find the end and add the next line? I do this, find the end, to get the last line, in my parsing app, after the GQGMC Pro software is done clearing and spraying the whole file back out, with this bit of dot net vb code. You are doing two file modifications for one writeline.

myStreamReader = File.OpenText(myFile)
Do While myStreamReader.Peek <> -1
LastLines = myStreamReader.ReadLine
Loop

LastLines contains just that, the lastline.
You could just then find the next line feed, and write the next line...

GMC-200
Go to Top of Page
Reply #3

ZLM

1261 Posts

Posted - 06/27/2012 :  06:45:44  Show Profile  Reply with Quote
Thanks for the feedback. We will check this issue.
The code is done by VC not BV.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.06 sec. Snitz's Forums 2000