Quickstart
This guide gets you from zero to a running DAQ system in 5 minutes using the
built-in DAQJobTest job.
1. Create a config file
Create a TOML file for the test job:
Save the following as configs/my_first_run/test_job.toml:
daq_job_type = "DAQJobTest"
rand_min = 1
rand_max = 100
[store_config.csv]
file_path = "out/test_data.csv"
add_date = false
overwrite = false
This job generates random numbers once per second and writes them to a CSV file.
2. Start the supervisor
The supervisor is the top-level process that reads all config files, spawns each job, and runs the message broker.
3. Check the output
The test job writes random numbers to out/test_data.csv. After a few seconds:
You will see rows with timestamp, random value, and job metadata.
Note
Statistics files (stats.csv and stats_remote.csv) are only generated
when a DAQJobHandleStats job is configured. The quickstart config above
does not include one, so these files will not appear automatically.
4. Stop the system
Press Ctrl+C in the terminal running the supervisor. All DAQJobs
are stopped gracefully.
What just happened?
- The supervisor read
test_job.toml, created aDAQJobTestconfig, and spawned the job process. DAQJobTestgenerates random numbers and publishes them as messages.- The
store_config.csvfield tells the system to route those messages toDAQJobStoreCSV. DAQJobStoreCSVreceives the messages and writes them to disk.
No code changes needed — everything is driven by the TOML config.
Next steps
- Configuration — learn all config options
- Creating a DAQJob — write your own sensor job
- Hardware Setup — connect real sensors