MATLAB Answers

Get start time of a daq session

4 views (last 30 days)
Jim Hokanson
Jim Hokanson on 9 Jan 2018
Commented: Walter Roberson on 9 Jan 2018
I'm wondering if it is possible to get the time at which the DAQ starts so that I can keep track of other code events, relative to the time the DAQ started. Currently I just keep track of the time I told the DAQ to start, but I'd prefer another method.
Edit: To clarify the meaning of "start", I mean the time at startForeground or startBackground is actually executed on the hardware. Ignoring any issues with triggering a start, what I'm really looking for is the time that input data starts OR that output data starts leaving the DAQ.

  0 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 9 Jan 2018
It is not clear what it means for the DAQ to "start", so I am going to guess you mean the time at which you startForeground() . If so then the answer to your question is No, that is not kept track of. The properties kept track of are noted at https://www.mathworks.com/help/daq/ref/daq.createsession.html

  3 Comments

Walter Roberson
Walter Roberson on 9 Jan 2018
I see your clarification, and the answer is still NO.
Some DAQ devices have the ability to timestamp samples (at least according to the device's clock).
Jim Hokanson
Jim Hokanson on 9 Jan 2018
Yeah, that's what I figured. It won't be the end of the world for what I need. The one that still gets me a bit is, from what I can tell, the lack of an ability to get raw DAQ data (since the DAQ toolbox overhaul a couple years back)
Walter Roberson
Walter Roberson on 9 Jan 2018
See my response to your Question.

Sign in to comment.