Data trigger
Posted: Thu Oct 11, 2012 1:37 am
Hi everybody,
I have a panel with lot of string arrays which i would read only when screen is opened. In order to do that, i have tried to set a data trigger called "DataTrigger1" mapped to an internal tag called "trigg_name". Also, I have set the "When?" column of data exchange to DataTrigger1 for all concerned string array. I have seen in the reference manual that when the trigger tag changed to a value other than 0, triggers data exchange. So i have added in the Opened section of the concerned screen this code :
But despite of trigger tag value (0 at the end of "Opened" code), all string arrays are polled. Is it a bad using of data trigger? Is there a way to control when tags are polled to the controller?
Thanks a lot,
AntoineA
I have a panel with lot of string arrays which i would read only when screen is opened. In order to do that, i have tried to set a data trigger called "DataTrigger1" mapped to an internal tag called "trigg_name". Also, I have set the "When?" column of data exchange to DataTrigger1 for all concerned string array. I have seen in the reference manual that when the trigger tag changed to a value other than 0, triggers data exchange. So i have added in the Opened section of the concerned screen this code :
Code: Select all
Globals.Tags.trigg_name.Value = 1;
Globals.Tags.mesure_instant_ch.Value = get_sensor_name(Globals.Tags.MEASURE_CFG_TRIGG_CH.Value);
Globals.Tags.mesure_instant_din.Value = get_din_name(Globals.Tags.MEASURE_CFG_TRIGG_DIN.Value);
Globals.Tags.mesure_instant_mes.Value = get_measure_name(Globals.Tags.MEASURE_CFG_TRIGG_MEAS.Value);
Globals.Tags.trigg_name.Value = 0;
Thanks a lot,
AntoineA