forcing an online event
MorgoZ
Posts: 116
Hello,
i need to know a way to force an online event of a virtual device assigned to a virtual variable.
It is because i need to execute the code at the online event without the need of rebooting the master.
thanks to all!!
i need to know a way to force an online event of a virtual device assigned to a virtual variable.
It is because i need to execute the code at the online event without the need of rebooting the master.
thanks to all!!
0
Comments
If this is correct, such an online event can be faked by using a repeating timeline. When the timeline event triggers, check if the variable's current value is different to the value last time the check was carried out. If the values differ odds are you'll not only want to run the same code you would run from the online event (using a function which takes a dev as a parameter should be good for this), but a rebuild_event() statement as well.
Works well enough for me.
Some manner of workaround like Auser suggests is going to be needed.
the main problem is that this virtual variable is used by many modules, one of them with private code, and inside each module are "online" events, so i can?t make a function to launch all of them, i need a way to trigger an online event of that variable, so all of the online events go on.
Any idea??????
Thanks to all!!
I've had the AMX tstat module crap out on me before and the virtual device went offline. This is the only time I've seen the issue and it only happened once, but it happened nonetheless (that is unless someone was lying about what was in my water).
Not all virtual devices are created equally.
Netlinx virtuals will not go offline, however, Duet virtual devices can (and will) go offline.
You are correct, it was a Duet module.