From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Can Measurement Time be reset without stopping?

Solved!
Go to solution

I have a worksheet that displays my active data when I press the "Start" button, but only saves data when the "Save" button is pressed (using and Action module and Relay). This way I can view the sensor levels before starting a test. The measurement time is saved in the data files. Since measurement time starts incrementing with the Start button, the time in my data file is the time accrued until the "Save" button is pressed. I have tried using the Action to reset a Time Base module ("measurement time" and "X-Base") but have had no luck.

Is there a way to reset the measurement time when the Save button is pressed?

0 Kudos
Message 1 of 2
(3,618 Views)
Solution
Accepted by topic author Spieler

Now you're getting complicated. 

I would use a Statistics/Counter module to count time high in seconds, reset on the next edge, and store that value into the file as the time stamp. Disable the Write module time channel. 

 

See the attached. 

 

Data will look like this

 

DASYLab 2016 - 2016
Worksheet name: 20161130 Timing+filename-fixed
Recording date : 12/02/16, 15:15:12
Block length : 100
Delta : 0.001 sec.
Number of channels : 2

COMMENT!!
Write 0 [],Write 1 [V],
0.0010,5.0000,
0.0050,5.1508,
0.0090,5.3014,
0.0130,5.4518,
0.0170,5.6017,
0.0210,5.7511,
0.0250,5.8998,
0.0290,6.0478,

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 2
(3,596 Views)