read.delay_scan: Quick analysis and plot of time dynamics

Description Usage Arguments Value Examples

Description

Takes an average time dynamics dataset and returns a dataframe and optionally plots data.

Usage

1
2
3
4
5
6
read.delay_scan(filename, 
                time_max = 4, 
                time_offset = 0,
                zero_offset = 1:10, 
                quick_plot = T,
                ...)

Arguments

filename

The filename of the averaged output file from labview

time_max

maximum time in the scan

time_offset

Adjust the time axis to allow delay overlap to be corrected

zero_offset

Add a zero offset if required

quick_plot

Toggle a quick plot

...

Additional arguements sent to base plot function.

Value

returns a dataframe of time vs signal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
fake_data<-(3+rnorm(1:400,sd=5e-2)+(exp(-((1:400)-100)^2/20^2)))

# make a fake delay_scan temp file for use in example
tf<-tempfile()
writeLines(text = as.character(fake_data),tf)

#use read.delay_scan()
fake_delay_scan<-read.delay_scan(tf,time_max = 4,time_offset = 1)

#delete temp file
unlink(tf)

tjconstant/ultrafastMonkey documentation built on May 31, 2019, 3:39 p.m.