= 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 == * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/CheckWIM CheckWIM]