| 1 | = SetDACTrackScale = |
| 2 | Set a DAC output to track scale weight, or not track. |
| 3 | |
| 4 | {{{ |
| 5 | int SetDACTrackScale(int dev, uint8 scale, DACTrackGrossNet grossnet, int wait); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * dev - number of DAC card. |
| 11 | * scale - scale number to track, or 0 for no scale weight tracking |
| 12 | * grossnet - track dacTrackGross (track scale gross weight) dacTrackNet (track scale net weight) |
| 13 | * wait - WAIT_ACK Wait for acknowledgement, NO_WAIT_ACK do not wait for acknowledgement |
| 14 | |
| 15 | == Return Value == |
| 16 | |
| 17 | * Returns the result - OK success (If WAIT_ACK may be TIMEOUT) |
| 18 | |
| 19 | == Remarks == |
| 20 | |
| 21 | 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. |
| 22 | |
| 23 | == Examples == |
| 24 | |
| 25 | {{{ |
| 26 | int dac = 1; // number of dac card - not number of slot |
| 27 | int scale = 1; |
| 28 | DACTrackGrossNet grossnet = dacTrackGross; |
| 29 | |
| 30 | if(SetDACTrackGrossNet(dac, scale, grossnet, WAIT_ACK) != OK) |
| 31 | { |
| 32 | DisplayText(0, 0, "SetDACTrackGrossNet Error"); |
| 33 | } |
| 34 | }}} |
| 35 | |
| 36 | |
| 37 | == See Also == |
| 38 | |
| 39 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACReg SetDACReg] |
| 40 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetDACTrackScale SetDACTrackScale] |