Description Usage Arguments Value Examples
The function reads in an TDMS file as an input. The destination/folder of the file must be specified and its associated TDMS_Index file must be present in the same folder.
1 |
file_input |
is an TDMS file Input |
plot |
is a boolean indicating if plotting is desired |
The function returns a list containing:
datastream - A vector of data stream values based on the input TDMS file
timestamps - A vector of time stamps associated with the datastream based on the input TDMS file
summ - The summary of the extracted data stream
img - The Time domain plot of the data stream
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Load the installed library/package
library(readTDMS)
# Open the TDMS File with specified path
f <- file('~/readTDMS/vignettes/data/file.tdms', 'rb')
# Call the Function to get the required plot
ans <- tdmsread(f)
# Datastream values
ans$datastream
# Timestamps
ans$timestamps
# Close the file if needed
# Note: For any changes and rerun of about function, we need to reopen the TDMS file
close(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.