<< mdaqClose Utility functions mdaqHWInfo >>

MicroDAQ toolbox >> MicroDAQ toolbox > Utility functions > mdaqFileData

mdaqFileData

Reads data from MicroDAQ user disk

Description

This function reads data from file created with MicroDAQ 'To File' block. In order to read data from MicroDAQ device user has to provide file name (same as in 'To file' block).

Calling Sequence

data = mdaqFileData(name, type);
data = mdaqFileData(name, type, rows, cols);

Arguments

Examples

// read entire text file 
data = mdaqFileData("data.txt", 1)

//read 100 rows / 1 column from text file 
data1 = mdaqFileData("data.txt", 1, 100, 1)

//read 100 rows / 1 column from binary file 
data2 = mdaqFileData("data.bin", 2, 100, 1)

See Also


Report an issue
<< mdaqClose Utility functions mdaqHWInfo >>