Romilly's HART® and Fieldbus Message Board


[ Follow Ups ] [ Post Followup ] [ Back to top of Message Board ]

HART DD variable question

Message posted by RonG (ron.gross@masoneilan.com : 12.151.141.50) on 19 January 2005 at 10:45:34.

I'm new to writing DD's and seem to get most of it, but am troubled with one thing I am trying to do. My device sends data back as unsigned integer (2 bytes), but I want to store it to a float variable that has a scaling factor, and can be displayed with a display_format (of something like "0.2f". Can someone point me in the right direction? POST_READ only allows simple getval/setval builtins, so I do not now how to write the new value to a local variable.

Yes, I know I can probably learn this at one of the workshops, but I need to get this done very soon.

Thanks,

Ron G




Follow Ups:




Post a Followup

Name:
E-Mail:

Subject: Re: HART DD variable question

Comments:


[ Follow Ups ] [ Post Followup ] [ Back to top of Message Board ]