Sorry, but I had a hard time expressing the question. Let me see if I can make it more clear.
I have multiple devices I am simulating with with the Mango virtual data source, one data source per device.
For one of the devices, I have also created a scripted data source that sets one of the data points in the virtual data source according to other data points in the same source.
This works fine, but doesn't scale very neatly, as the scripted data source must be replicated for each device. Code duplication isn't good. I think I can probably create a global script to be called from each scripted data source, but that still seems overly messy. I would still be creating a scripted data source per device - this would just reduce the code defined in each one.
If I could associate the script with a watchlist, that would seem to solve the problem, but I don't see a way to do that.
Perhaps someone out there has a better idea?