Author Topic: Question regarding BasicDatalogger2  (Read 1441 times)

garam9201

  • Newbie
  • *
  • Posts: 5
    • View Profile
Question regarding BasicDatalogger2
« on: November 29, 2016, 12:27:45 AM »
Hello,

I would like to collect the data in milliseconds like "dd-MMM-yy HH:mm:ss:ms ", however as I can see BasicDatalogger2 reads until seconds.

Can you please help me out with this one.

Regards

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Question regarding BasicDatalogger2
« Reply #1 on: November 30, 2016, 06:17:18 PM »
Not completely sure what you want to do, so I will answer in several ways:

To add a fraction of a second to the time stamp in the file:

In the TimeStampFormat property change it to:

dd-MMM-yy HH:mm:ss.fff


To sample data at intervals other than 1 second, change LogInterval property. For example for 0.5 second, use the value 500


Keep in mind that a PC is not a real time operating system the time samples are not going to be extremely deterministic. You may be able to get slightly more repeatable results using a separate driver instance, setting the PollRateOverride, and using a DataSubscriber pointing to that instance. Then in the DataReturned event handler, write the value to a file using code.