For a parkingsystem I use some Virtual Commands / Channels in combination with Feedback / Tags to store the maximum capacity of a parking.
For example, for Parking 1, I have
As per the manual I have connected them with the virtual_to_virtual in the script modifier of the channel (and now with newer Iridium Studio version I can also use Forward Value To for this)
I have set the Persist property of Server.Tags.P1_Capacity to true.
Expected behavior : after server reboot (or restart after powerloss), the Capacity variables keep their last know value.
Actual Behavior : after restart, all Capacity variables are 0 , so the parking manager has to fill in the capacities again for all 6 parkings.
How can I fix this???
Just to try and understand what is happening, I removed the virtual_to_virtual relation (or the forward) and then manually set the value of the feedback through the webinterface. Now, when I restart the server, the value persists.
So, I guess the problem is the persisting feedback is overwritten by a 0 value coming from the command just after startup of the server?
Customer support service by UserEcho