I am handling RTD feeds again and remembering the difficulties, but now we have multi-core machines and multi-threading. maybe anyone can advise. As I understand/rememeber: pushing data into Excel is not one(obvious reasons) so it sends a friendly nod to say your parcel is ready come and get it. Then when Excel has done its nails and feels in the mood, it might get the data. So this kind of architecture is right back on the dance-floor and hopefully I can make it work. Problem. I need to run a bot that examines the data and responds differently; 1. looping or running a winapi timer even is still enough to keep excel busy and no data, or so it seems. Definitely, executing bot logic , however small, will bring on an Excel fainting fit.
Tried responding via calculation event. Very hit-and-miss and definitely not up to the job. There is no logic obvious as to when and why it fires or does not other than a " bad hair day" Tried winapi timer looking at the newly acquired data every second comparing to old in a separate data structure, running some EMAs and making a decision. No dice. The timer is enough to put a delay up to 10 or even 20 seconds between occasional delivery of data.
Options I am thinking about: 1. The timer running outside of the excel environment and lookin in a the data. e.g an AQddon via pia etc. What I don't know is whether this Addon, perhaps inc C# or vb.net, could utilze multithreading, via tasks I think and do its bit without "scarin the panties of her ladyship"? 2. I remember hearing that XLL UDFs could be asynchronous, does anyone know if this is a potential option?
Any ideas?