Scale and offset are useful for converting the DMA FIFO value (DFV) to a usable value that corresponds to a real-world measurement.
The following table displays equations that show how scale and offset convert DFV to voltage value (VV) for read channels of different data types, and VV to DFV for write channels of different data types.
|Data type||Read or Write||Equation|
|I8, U8, I16, U16, I32, U32, I64, U64, Boolean||Read|
|I8, U8, I16, U16, I32, U32, I64, U64, Boolean||Write|
|FXPI32, FXPU32,FXPI64, FXPU64||Read|
|FXPI32, FXPU32,FXPI64, FXPU64||Write|
—Represents voltage value.
—Represents DMA FIFO value.
—Represents the positive range of the data type.
—Represents the converted fixed-point value.
—Represents high time.
—Represents low time.