Update Running the PAS
parent
9d2f5d9fa9
commit
822fce7e72
|
@ -14,19 +14,31 @@ A separate script performs a frequency sweep and can be run prior to the start o
|
|||
|
||||
# Open the Real-time Plots and/or Save Data
|
||||
|
||||
1. Inspect that the `pas-daq.jl` file shows the correct resonant frequency and that the save option is set to the desired value (true or false). This can be done with any text editor, or by issuing `nano ~/pas-daq.jl` in the Terminal.
|
||||
1. Open the Julia REPL by first opening a Terminal and then typing `julia`.
|
||||
|
||||
2. Load and start the PAS software by typing the following:
|
||||
|
||||
```julia
|
||||
f_res = 1200 # center frequency in Hz
|
||||
save = true # can be true or false
|
||||
savepath = "~/pas-data/"
|
||||
include("pas.jl"); runPAS(f=2000) # replace 2000 with the resonant frequency in Hz.
|
||||
```
|
||||
|
||||
2. Run the `pas-daq.jl` data acquisition script. Open Terminal on the host computer and type the following command:
|
||||
Other options are available (defaults shown, all arguments are optional except `f`):
|
||||
|
||||
```julia
|
||||
julia ~/pas-daq.jl
|
||||
```
|
||||
runPAS(f=2000; buffer = 120, range = 50, save = true, datadir = pwd()*"/pas-data/", baud = 115200, rate = 2)
|
||||
```
|
||||
|
||||
| Argument | Description |
|
||||
|------------|--------------|
|
||||
| f | resonant/measurement frequency in Hz; must be specified |
|
||||
| buffer | length of the circular buffer display on the time series plots in number of data points |
|
||||
| range | the range of frequencies to plot in the FFT on either side of `f` in Hz |
|
||||
| save | whether or not the save the data to a CSV file (`true` or `false`) |
|
||||
| datadir | the location to which data will be saved |
|
||||
| baud | the baud rate to use for serial connections |
|
||||
| rate | the sample interval in seconds |
|
||||
|
||||
|
||||
*If you get an OS/serial port error try starting the program a couple more times. If it still won't start, reset the serial devices by unplugging their USB cables and plugging them back in. Also make sure the devices are not in use by another program.*
|
||||
|
||||
# Perform a Frequency Sweep
|
||||
|
||||
|
|
Loading…
Reference in New Issue