Register a callback on a GenICam node change

With the C-style API for C#, registering a callback on a node change was relatively straightforward with NRegisterUpdate().

It would be interesting to see how this is thought to be implemented with the .Net API.

Hi,

I once tried the same thing and were able to do it in C++ (which should be based on the same principles).
Please check the following thread for code samples:

Best regards,
MoLi

Hi @MarSch,
this is really easy in Cvb.net.
As soon as you have an object of your node, you can register the .Updated event like this:

FloatNode fps = (FloatNode)nodeMap["Std::AcquisitionFrameRate"];
fps.Updated += FpsNode_Updated;

Be aware though, that the Updated event is triggered when ANY property of the node updates. This could be for examle the IsWritable property, or even the Min and Max, if it’s a ValueNode.

Regards,
Tim

2 Likes

Oh, probably too simple - with just assigning a handler function. Works nicely, thank you.

Best,
Markus

2 Likes