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