Thanks to Alex Negrila for building this!
The simulator is written in Swift. It takes a directory of previously collected .modraw files and copies them slowly into a new directory, simulating a deployment happening in real time. It’s useful for editing realtime plotting and processing functions while not actively collecting data
https://github.com/nicolecouto/OCEAN
Create a directory and copy previously collected .modraw files into it. I like to put mine on the Desktop and call it ‘OCEAN.’ These are the data we are pretending are coming in in real time from the ocean.
Create a directory where these data will be copied. Since we’re pretending the data are being collected from the ocean and going through the acquisition software on DEV1, I like to make a directory called ‘DEV1’ on the desktop.
Follow the epsi simulator README.md to build and run it. For the input and output directories I just made, all you have to do is run this line:
cd /Volumes/MOD
swift run -c release sim -i ~/Desktop/OCEAN -o ~/Desktop/DEV1/raw
<aside> <img src="/icons/command-line_blue.svg" alt="/icons/command-line_blue.svg" width="40px" />
Run the data streaming simulator from DEV3 (at least on the red computer rack, because DEV3 is a newer computer has the required version of XCode on the required OS for that version of XCode).
</aside>
sync_data_dev1_and_dev3.sh
is running on DEV3, copying files to where the Matlab scripts will read themcd /Volumes/MOD\\ HD/Users/Shared/Software_current_cruise/data_streaming_simulator/sim
swift run -c release sim -i "/Volumes/MOD HD/Users/Shared/FCTD_EPSI_DATA/SIMULATED_OCEAN" -o "/Volumes/MOD HD/Users/Shared/FCTD_EPSI_DATA/Current_Cruise"
RUN_Auto_timeseries.m
or RUN_Auto_process_data.m