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

Download code:

https://github.com/nicolecouto/OCEAN

Use on a laptop:

  1. 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.

  2. 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.

  3. 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
    

Use on DEV1 and DEV3:

<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>

  1. Create a directory and copy previously collected .modraw files into it. I’m testing the processing software on DEV3 and I’m going to start with previously collected data on DEV1.
  2. 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’ll put the data where they would stream in during an actual deployment.
  3. Make sure the bash script sync_data_dev1_and_dev3.sh is running on DEV3, copying files to where the Matlab scripts will read them
  4. 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\\ 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"
  1. In Matlab, you can now run either RUN_Auto_timeseries.m or RUN_Auto_process_data.m

RUN_Auto_process_data.m