Changing Data Sources

This section illustrates how you can write scripts that dynamically change the data source of objects "on the fly" at run-time. As we discussed in the Working with iFIX Objects chapter, animating objects begins by making a connection to a data source. The first example shows you how to create a direct connection while in the run-time environment. It includes the following topics:

NOTE: When you change a data source at run time, the change does not remain intact when you switch back to the configuration environment. The behavior of the picture depends on the status of the picture cache. In addition, if you add or delete scripts in run mode, the picture will not be loaded into cache when it is closed. Refer to the Using Picture Caching section of the Creating Pictures manual.

See Also

How Do I...