Files
imdd_silas/Functions/Minimal_examples/database_mysql_test.m
2026-03-24 17:23:02 +01:00

17 lines
530 B
Matlab

db = DBHandler("type","mysql");
db.tableNames
currentTime = datetime('now', 'Format', 'yyyyMMdd_HHmmss');
newRun = db.tables.Runs;
newRun.run_id = NaN;
newRun.loop_id = 82;
newRun.date_of_run = datetime(currentTime, 'InputFormat', 'yyyyMMdd_HHmmss');
newRun.tx_bits_path = 'pathtohell';
newRun.tx_symbols_path = 'pathtohell2';
newRun.rx_sync_path = ""; % Leave empty for now
newRun.rx_raw_path = 'pathtohell4';
newRun.filename = 'filenametohell';
newRun.tx_signal_path = 'pathtohell';
run_id = db.appendToTable('Runs', newRun);