06-01-2026 01:50 AM
As part of a Labview program that I have written for control of our two Victron Solar sytems I also need to control some Shelly relays for addtional function. Each of the Shelly relays is controlled using its unique IP addess with on/off commands appropriate. Thoughts were to use an event structure which works fine with the pushbuttons but I want to be able to activate the relays depending on battery state of charge, time of day etc. Problem I have is that the event structure does not seem to generate an event from a a property node or local variable. Tried the (signalling) property node and went around in circles. Grateful if someone could offer some thoughts, thanks.
06-01-2026 02:43 AM
You should learn a bit more about state machines. Rather than trying to activate a button which then activates an event frame which then does what you want to do, you can put the actual action to control the relay in a state and then put this state name in the state machine queue in both your UI button event and when your communication with the relevant device detects that this action is needed.
06-01-2026 03:19 AM
Thanks for your blunt answer,
06-01-2026 03:37 AM
@jack1 wrote:
Thanks for your blunt answer,
It wasn't my intention to be blunt. There are many state machine architectures and the one I usually use when it involves user interface handling is the JKI State Machine. It takes a little experience to get acquainted with working with state machines but once you understand the principle it is extremely powerful and flexible.