Variable lifetime definition.

Ecundrey7 days ago

Hi, how to define variable lifetime?
I have some variables which comes too rarely in comparison of track info, engine coolant temp or ambient temp, a need to show them in car popup 10minutes at least after last packet recieved with it or infinitely, with last recieved value.
But now i have this variable shows at the moment packet contain it and disappears immediately, right after packet recieved without it.

Note. I use wialon before and it has this behavior (with infinite variable lifetime) as default, it was perfect for rarely vars, and switch via checkbox for each variable to short lifetime. Attached picture, i need same, but cannot find it.

1.png

Anton Tananaev7 days ago

What you're looking for is attribute copying. There's no timeout though. It will just copy over the last known value.

Ecundrey7 days ago

Ok, just enabled it.
Now in Computed Attributes i have good calculated value at each press Test button, so variable is alive and calcs correct. But still dissapears/shows in popup.
I had link it to device and choose in popup. And if i choose "sat" variable as source in Computed Attributes, which present in each packet is seen constantly, but if i choose rarely var - dissapears.

Anton Tananaev7 days ago

I was talking about attribute copying, which is different from computed attributes.

Ecundrey7 days ago

Thnx, finally works, it required to add to attribute copying both input and output var, and now seen constantly.