09-05-2013 05:01 AM
Hello all
I have a cluster (control) which looks like this:
This is a single channel of data, consisting of a gauge with two needles (set point and actual), a separate numeric control linked to the gauge (fixed point data type), three combo boxes and a button. When the user interacts with any of these items I generate a Modbus packet to retrieve / set the data. My current implementation uses events, one for every single control in the channel - and I have 5 channels. Is there a way of using the <All elements> setting in the event handler and then using the source node (or similar) to determine which control was actually clicked? I might then be able to use an array of clusters to simplify further. I am struggling to understand the source node.
Thanks for any help
Ray
Solved! Go to Solution.
09-05-2013 05:33 AM
09-05-2013 06:18 AM
As Jim showed, your best bet is to just do a comparison between "New Value" and "Old Value" and search for a FALSE.
The Source just tells you what caused the event to fire. This gives you a distinction between ActiveX events, User Events, and actions the user performed on the GUI.
09-05-2013 07:02 AM
Thanks to you both, I'm glad it was simple.