From f3054d9de412b966f7eae4d44ffbe9cf9e963c30 Mon Sep 17 00:00:00 2001 From: aspaNeuro Date: Mon, 29 Jan 2024 11:53:31 +0000 Subject: [PATCH 1/4] Add a test light workflow --- workflows/social/LightTest.bonsai | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 workflows/social/LightTest.bonsai diff --git a/workflows/social/LightTest.bonsai b/workflows/social/LightTest.bonsai new file mode 100644 index 0000000..d175ca4 --- /dev/null +++ b/workflows/social/LightTest.bonsai @@ -0,0 +1,56 @@ + + + + + + ClockSynchronizer + + + + + + + COM5 + + + + + + + + + + + + + + + + + + >tcp://172.24.158.103:4303 + + LightEvents + LightCommands + >tcp://172.24.158.103:4304 + + + + 0 + 0 + 0 + + + + LightCommands + + + + + + + + \ No newline at end of file From ffaa3dd0a9436b83fe39d7e2e2ec1c98a9088685 Mon Sep 17 00:00:00 2001 From: aspaNeuro Date: Mon, 29 Jan 2024 12:04:55 +0000 Subject: [PATCH 2/4] Add a timer to trigger light commands in each 15s --- workflows/social/LightTest.bonsai | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/workflows/social/LightTest.bonsai b/workflows/social/LightTest.bonsai index d175ca4..fdf3c43 100644 --- a/workflows/social/LightTest.bonsai +++ b/workflows/social/LightTest.bonsai @@ -1,6 +1,7 @@ - + @@ -37,6 +38,12 @@ LightCommands >tcp://172.24.158.103:4304 + + + PT0S + PT15S + + 0 @@ -51,6 +58,7 @@ + \ No newline at end of file From 3e6b67cbd16861a3d617f4ca42cdaa7bdae4e669 Mon Sep 17 00:00:00 2001 From: aspaNeuro Date: Mon, 29 Jan 2024 14:25:14 +0000 Subject: [PATCH 3/4] Create fake synchronizer to emulate the events from clock synchronizer and timestamp generator --- workflows/social/LightTest.bonsai | 44 +++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/workflows/social/LightTest.bonsai b/workflows/social/LightTest.bonsai index fdf3c43..b69fc13 100644 --- a/workflows/social/LightTest.bonsai +++ b/workflows/social/LightTest.bonsai @@ -1,26 +1,54 @@ - + - ClockSynchronizer + FakeSynchronizer - - + + + PT0S + PT1S + - - COM5 + + + + + Timestamp.UtcDateTime.TimeOfDay.TotalSeconds + + + + + + + + + Write + + None + + + + SynchronizerEvents + + + + + + @@ -33,7 +61,7 @@ >tcp://172.24.158.103:4303 - + AEON3 LightEvents LightCommands >tcp://172.24.158.103:4304 @@ -46,7 +74,7 @@ - 0 + 40 0 0 From be9172ff40b0257ecae76ad33450a1f5215ce5a6 Mon Sep 17 00:00:00 2001 From: aspaNeuro Date: Mon, 29 Jan 2024 14:29:37 +0000 Subject: [PATCH 4/4] Remove the value from room name property --- workflows/social/LightTest.bonsai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/social/LightTest.bonsai b/workflows/social/LightTest.bonsai index b69fc13..c5e9a09 100644 --- a/workflows/social/LightTest.bonsai +++ b/workflows/social/LightTest.bonsai @@ -61,7 +61,7 @@ >tcp://172.24.158.103:4303 - AEON3 + LightEvents LightCommands >tcp://172.24.158.103:4304