wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/SetWIM

Version 2 (modified by Don Wilson, 14 years ago) ( diff )

--

SetWIM

Setup for high speed buffered weight reading

void SetWIM(int nScale, int nOnThres, int nOffThres, int nCnt)

Parameters

  • nScale - scale number

Return Value

Function does not return a result

Remarks

This function allocates memory to accommodate the specified count of weight values.

Example

extern int g_nRepWtIntv;

int nOnThres = 1000;
int nOffThres = 800;
SetWIM(1, nOnThres, nOffThres, 800);

SleepSeconds(1);

g_nRepWtIntv = REP_INTV_SAMPLE_RATE;
MnBdReqeust(1, MNBD_REQ_REP_WT, NO_WAIT_ACK);

// Weights should now be coming in at the sample rate
// Weights above the threshold will be recorded into the WIM buffer

See Also

Note: See TracWiki for help on using the wiki.