DataLog Command

This command lists output from the data logger on the console or writes it to a file.

DataLog count [,file_path]

Prerequisites

No data logger data is displayed unless the data logger has been activated.

Parameters

count

A required numeric value that indicates how many data logger data items should be written.
   If count == 0, all available data items are written.
   If count > 0, the first count data items are written.
   If count < 0, the last count data items are written.

file_path

An optional file name path describing the directory and file where the data logger data is written. If omitted, the data is listed on the console.

Remarks

This command is used after the data logger has been activated to capture system data. If you have captured a large amount of data, specifying zero as the count parameter may list or write a very large amount of data.

Normally this command is not explicitly issued via the console interface and instead is implicitly issued via the web DataLogger interface.

Examples

Datalog 5

.Title "Precise DataLogger File, Version 1.0"

.Comment "Test data logger run"

.Recording_Date "09-01-2006 09:49:47.727749"

.Trigger_Start 0.000000 sec

.Trigger_Stop 0.000000 sec

.Number_of_Data_Types 2

.Number_of_Samples 31250

.Sampling_Interval 0.000125 sec



.Data "Time in sec", "[3500:4] Motor set points in encoder counts", "[3503:4] Actual encoder counter"

0, 0.000000, 0, 0

1, 0.000125, 0, 0

2, 0.000250, 0, 0

3, 0.000375, 0, 0
4, 0.000500, 0, 0
.End

Datalog 0, "/ROMDISK/data.dat" Write all data logger data to the disk.

See Also

Console Commands