From ce77164e745e840178d4e6bfb7b88028a161dbe8 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Mon, 22 Apr 2024 12:08:39 +0000 Subject: [PATCH] add example configuration for smu node-type Signed-off-by: Alexandra --- etc/examples/nodes/smu.conf | 97 +++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 etc/examples/nodes/smu.conf diff --git a/etc/examples/nodes/smu.conf b/etc/examples/nodes/smu.conf new file mode 100644 index 000000000..afdf4ee97 --- /dev/null +++ b/etc/examples/nodes/smu.conf @@ -0,0 +1,97 @@ +http = { + enabled = false +} +logging = { + # level = "warn" +} +nodes = { + smu = { + type = "smu" + signals = ( + { name = "ch1" type = "float"}, + { name = "ch2" type = "float"}, + { name = "signal3" type = "float"}, + { name = "signal4" type = "float"}, + { name = "signal5" type = "float"}, + { name = "signal6" type = "float"}, + { name = "signal7" type = "float"} + ) + vectorize = 1000 + sample_rate = "FS_10kSPS" + dumper = ( + { name = "ch1" path = "/tmp/ch1"}, + { name = "ch2" path = "/tmp/ch2"} + ) + } + + raw = { + type = "file" + format = "csv" + uri = "./raw.csv", + in = { + epoch_mode = "original", + eof = "wait" + signals = ( + { name = "ch1" type = "float"}, + { name = "ch2" type = "float"}, + { name = "signal3" type = "float"}, + { name = "signal4" type = "float"}, + { name = "signal5" type = "float"}, + { name = "signal6" type = "float"}, + { name = "signal7" type = "float"} + ) + } + } + file1 = { + type = "file" + format = "csv" + uri = "./raw.csv" + } + file = { + type = "file" + format = "csv" + uri = "./phasor.csv" + } +} + +paths = ( + { + enabled = false + queuelen = 30000 + enabled = false + in = "smu" + out = "file1" + }, + { + enabled = true + #queuelen = 20000 + in = "raw" + #out = "mqtt" + #out="file" + hooks = ( + { + type = "scale" + scale = 0.000305185 #10/32767 + offset = 0 #1280 + signal = "ch1" + }, + { + type = "ip-dft-pmu" + enabled = true + estimation_range = 10. + nominal_freq = 50. + number_plc = 10. + sample_rate = 10000 + dft_rate = 10 + window_type = "hann" + signals = ["ch1"] + angle_unit = "degree" + timestamp_align = "center" + add_channel_name = true + phase_offset = 0 + #frequency_offset = 0.0015 + amplitude_offset = 0 + } + ) + } +)