wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/SetDACTrackGrossNet

Version 4 (modified by Don Wilson, 7 years ago) ( diff )

--

SetDACTrackGrossNet

Set a DAC output to track gross or net scale weight.

int SetDACTrackGrossNet(int dev, DACTrackGrossNet grossnet, int wait);

Parameters

  • dev - number of DAC card.
  • 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
   DACTrackGrossNet grossnet = dacTrackGross;

   if(SetDACTrackGrossNet(dac, grossnet, WAIT_ACK) != OK)
   {
       DisplayText(0, 0, "SetDACTrackGrossNet Error");
   }

See Also

Note: See TracWiki for help on using the wiki.