patrickokeeffe

Apply conversion to serial device channel

Recommended Posts

Can conversions be applied to serial device channels? (specifically in version 5.87c)

* The Serial Guide demonstrates the use of "AddValue()" to insert data into channel history 
* but question 6.13.3 of the User Guide states AddValue() intentionally skips conversions

Experimentation confirms I cannot apply conversions to channels of a serial device.

Am I really expected to modify the serial protocol to achieve the effect of Conversions? Or some other feature I overlooked that serves this scenario? 

Share this post


Link to post
Share on other sites

No because you can do the same math right in the addValue() function.  For example, if the conversion you might use was:

Value * 6.3 + 2.3

Your addValue would just be:

myChannel.addValue(myVariable * 6.3 + 2.3)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now