Programmatically adding a conversion


Indy500

Recommended Posts

No. The strConversion variable of a channel is the name of the conversion, not the contents. As I said, you can't programmatically change the contents of the conversion. You can, however, change which conversion is assigned to a particular channel:

myChannel.strConversion = "MyConversion"

where MyConversion is an already existing conversion. You can also use variables in the conversion itself, so MyConversion could have this expression:

(value * 100) - 3

or it could use variables instead:

(value * slope) - intercept

where slope and intercept are global variables that you can easily change in script.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.