Page 1 of 1
Air Scan Counter
Posted:
Fri Apr 01, 2016 6:18 pm
by lucasdstephen
Hello,
I am trying to use the AirScan to count the amount of people who break the plane on a Video Wall. Is there a way to count up with the AirScans active count data? Id like to then feed that data into the Bar Graph output node.
Thanks for any help on this.
Re: Air Scan Counter
Posted:
Fri Apr 01, 2016 6:40 pm
by malkuth23
The Airscan node has number of active points.
Re: Air Scan Counter
Posted:
Fri Apr 01, 2016 6:52 pm
by lucasdstephen
Hello yes it does have the active count in the node. What I need is that for every time the active count goes to 1 or 2 that I can then add those counts together. When someone breaks the field the active count goes to 1. When they leave the field it goes back to 0. I need a node or script that will keep the count going. So that at the end of the day I know how many times the AirScan field was broken.
Hopefully that makes sense.
thank you
Re: Air Scan Counter
Posted:
Sat Apr 02, 2016 12:16 am
by malkuth23
output to variable node: currentTouch
output to script node (if airscan total points > 0) :
if currentTouch > lastTouch
{
lastTouch = currentTouch
touchCount += 1
}
Keep in mind this will add points to your counter very rapidly if someone is just barely breaking the field, so it is not very accurate.
You could put a timeout or something in it, but that might be inaccurate in the opposite way.
Re: Air Scan Counter
Posted:
Wed Apr 13, 2016 10:50 pm
by lucasdstephen
So I got it working. The only thing is that it counts 1,11,111,1111,11111, etc instead of 1,2,3,4,5,6 etc.
Anyway, to correct this?
Re: Air Scan Counter
Posted:
Thu Apr 14, 2016 6:13 am
by malkuth23
Are you using a string variable instead of an integer?