Dear Aquarel,
this should be not so difficult.
Use a edge evaluation (attached vi) and count the numbers of positive edges. With this value, you can index a array of your values (value1,value2,.. and so on).
Now you should be able to send for every trigger a different value.
Hope this helps
Best regards,
SebastianN
NI Germany