Click here to show toolbars of the Web Online Help System: show toolbars
 

| Customize Help
| Save Settings

MgenLutRamp



Function Map
Synopsis
Generate ramp data into a LUT buffer.
Syntax
void MgenLutRamp(
MIL_ID LutBufId, //in
MIL_INT StartIndex, //in
MIL_DOUBLE StartValue, //in
MIL_INT EndIndex, //in
MIL_DOUBLE EndValue //in
)
Description

This function generates a ramp, inverse ramp, or a constant in the specified LUT buffer region (StartIndex to EndIndex). The increment between LUT entries is the difference between StartValue and EndValue, divided by (the number of entries - 1).

If you need to generate a more complex LUT, use MgenLutFunction() or generate the values with your Host system and load them into a MIL LUT buffer, using MbufPut1d() or MbufPutColor().

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
LutBufId

Specifies the identifier of the LUT in which to generate values. This parameter must be given a valid LUT buffer identifier. Allocate a LUT buffer, using MbufAlloc1d() or MbufAllocColor().

StartIndex

Specifies the first LUT index for which to generate a value. StartIndex must be less than or equal to EndIndex.

StartValue

Specifies the starting value from which the increment is calculated; that is, the first LUT entry.

EndIndex

Specifies the last LUT index for which to generate a value. EndIndex must be greater than or equal to StartIndex.

EndValue

Specifies the ending value from which the increment is calculated; that is, the last LUT entry. If both StartValue and EndValue are the same, the entire LUT range is filled with this value. If EndValue is smaller than StartValue, an inverse ramp is generated. This parameter accepts only an integer value, except when using a floating-point LUT buffer.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.