= SetDACTrackScale = Set a DAC output to track scale weight, or not track. {{{ int SetDACTrackScale(int dev, uint8 scale, DACTrackGrossNet grossnet, int wait); }}} == Parameters == * dev - number of DAC card. * scale - scale number to track, or 0 for tracking totalizer weight * grossnet - track dacTrackGross (track scale gross weight) dacTrackNet (track scale net weight) * wait - WAIT_ACK Wait for acknowledgement, NO_WAIT_ACK do not wait for acknowledgement == Return Value == * Returns the result - OK success (If WAIT_ACK may be TIMEOUT) == Remarks == The option card must already be opened by calling OpenMnBd(dev) first. If the application is using main board communication events these events may be called during the wait for acknowledgement. == Examples == {{{ int dac = 1; // number of dac card - not number of slot int scale = 1; DACTrackGrossNet grossnet = dacTrackGross; if(SetDACTrackGrossNet(dac, scale, grossnet, WAIT_ACK) != OK) { DisplayText(0, 0, "SetDACTrackGrossNet Error"); } }}} {{{ // Set DAC 1 and 2 to track scale 1, gross mode, 0 - 10000 wt, max output 10V. int n; int scale = 1; for(n = 1; n <= 2; n++) { SetDACOutputRange(n, dacOutput0to10V, WAIT_ACK); SetDACTrackScale(n, scale, dacTrackGross, WAIT_ACK); SetDACFloat(n, dacLowWeight, 0.0, WAIT_ACK); SetDACFloat(n, dacHighWeight, 10000.0, WAIT_ACK); SetDACFloat(n, dacMaxOutput, 10.0, WAIT_ACK); } }}} == See Also == * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/StopDACTrackScale StopDACTrackScale] * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACReg SetDACReg]