I would like to know how to (if at all possible) to poll a data source as often as 100 times per second and for a particular point, only log values after a trigger, but also just before that trigger.
Data source is a PLC being polled every 10ms
Pressure Sensor providing readings every 10ms
Trigger is when over say 500 Kpa
Begin logging until for 30 seconds then stop logging.
Also however log the values of the previous 30 seconds before the trigger happened.
I thought about logging all values then purging every few minutes so that the memory doesn’t fill up but not sure about how to only catch that information I need, before and after the trigger. I have someone that might be able to set something up in a PLC but he is not sure he can do yet.
Any suggestions would be appreciated.