LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reg Event Callback

I need count number of frames that occur.To count frames I use Reg Event Callback.To activate this func properly I need connect Event callback to VI.ref.My question is how I nedd modify Event callback to get the number of events.
0 Kudos
Message 1 of 2
(2,980 Views)
You could pass a numeric refnum to the user parameter of the Reg Event Callback node.  In the callback VI, you would increment the Value using that reference.  This way you could check the current count through a numeric on your main VI.

Another solution would be a global variable that you increment in your callback VI.

Volker
0 Kudos
Message 2 of 2
(2,961 Views)