/
Functions for Data Logging

Functions for Data Logging

Type

Format

Description

Subroutine

ClearDataLog()

Removes all logs from the data logging model.

Subroutine

DataLog(β€œLogModelName”,BlockControl)

Creates or stops the data logging block.

Subroutine

MakeCsv(β€œLogModelName”, BlockNumber)

Saves the data block to the SD/MMC memory in CSV file format.

Subroutine

MakeCsvUsb(β€œLogModelName”, BlockNumber)

Saves the data block to the USB storage in CSV file format.

Subroutine

MakeLogCsv(β€œLogModelName”, BlockNumber, Location)

Saves the data block to the assigned location in CSV file format.

Subroutine

MakeLogCsvEx(β€œHeader”, β€œLogModelName”, BlockNumber, Location)

Saves the data block in CSV file format and stores the header name at cell A1.

ClearDataLog

Removes all logs from the data logging model.

Subroutine

ClearDataLog();

Description

Removes all logs from the data logging model.

Example

Clears all logged data.

ClearDataLog();

DataLog

Creates or stops the data logging block.

Subroutine

DataLog(β€œLogModelName”,BlockControl)

Description

Creates or stops the data logging block.

Enter 0 at BlockControl to stop the block. Enter 1 to create a new block.

Example

Creates a new block for the data logging model β€œLOG” and start logging.
DataLog(β€œLOG”,1);

MakeCsv

Saves the data block to the SD/MMC memory in CSV file format.

Subroutine

MakeCsv(β€œLogModelName”, BlockNumber)

Description

Saves the assigned LogModelName β€˜s data block to the SD/MMC memory in CSV file format.

You can assign the value from 0 to 31 at BlockNumber.

Example

Saves the 10th data block in the data logging model β€œLOG” to the SD/MMC memory in CSV file format.

MakeCsv(β€œLOG”,10);

MakeCsvUsb

Saves the data block to the USB storage in CSV file format.

Subroutine

MakeCsvUsb(β€œLogModelName”, BlockNumber)

Description

Saves the assigned LogModelName β€˜s data block to the USB storage in CSV file format.

You can assign the value from 0 to 31 at BlockNumber.

Example

Saves the 10th data block in the data logging model β€œLOG” to the USB in CSV file format.

MakeCsvUsb(β€œLOG”,10);

MakeLogCsv

Saves the data block to the assigned location in CSV file format.

Subroutine

MakeLogCsv(β€œLogModelName”, BlockNumber, Location)

Description

Saves the assigned LogModelName β€˜s data block to the assigned location in CSV file format.

You can assign values from 0 to 31 at BlockNumber.

You can also assign the Location as shown below.

0: _LOCAL_

1: _SDMEM_

2: _USBMEM_

Example

Saves the 10th data block in the data logging model β€œLOG” to USB in CSV file format.

MakeLogCsv(β€œLOG”,10,2);

MakeLogCsvEx

Saves the data block in CSV file format and stores the header name at cell A1.

Subroutine

MakeLogCsvEx(β€œHeader”, β€œLogModelName”, BlockNumber, Location)

Description

Saves the assigned LogModelName β€˜s data block in CSV file format and stores the Header name at cell A1.

You can assign the value from 0 to 31 at BlockNumber.

You can also assign the Location as shown below.

0: _LOCAL_

1: _SDMEM_

2: _USBMEM_

Example

Saves the 10th data block in the data logging model β€œLOG” to USB storage in CSV file format.

Sets the header name β€œHeader” at cell A1.

MakeLogCsvEx(β€œHeader”,”LOG”,10,2);

Β 

Related content