Steve-Mcl / node-red-contrib-buffer-parser

A node-red node to convert values in a buffer, integer array or hex string into many different data type(s). Supports Big/Little Endian, BCD, byte swapping and much more.
MIT License
24 stars 8 forks source link

Question: What is a final value? #22

Open hanneslueke opened 5 months ago

hanneslueke commented 5 months ago

In your documentation you refer to something called final value. Could you elaborate what a final value semtically is, please?

Steve-Mcl commented 5 months ago

Can you clarify please (save me looking, loading source, scanning the readme, scanning the built-in docs etc)

a screenshot would do.

hanneslueke commented 5 months ago

image

Steve-Mcl commented 5 months ago

Ok, so I contextually, this information (and the options they describe) come after the other options in a row. So it refers to the fact that once the value has been extracted from the buffer, converted to the specified type, the quantity requested etc, these options are applied to those values.

Tldr; The final value you would be sent can be affected by the settings in the scale and mask operations. Example: if you have no mask and no scaling, you get the final value for that row. Example: if you have a scale of 0.5, the vinal value is halved.