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

GetDACPercent

Get a DAC output percentage.

int GetDACPercent(int dev);

Parameters

  • dev - number of DAC card.

Return Value

  • Returns the percentage of the DAC output

Remarks

The option card must already be opened by calling OpenMnBd(dev) first. The DAC output registers must already be initialized by calling, SetDACReg, etc... 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 percent = GetDACPercent(dac);
   DisplayText(0, 0, "DAC Percent = " + IntToStr(percent));

See Also

Last modified 6 years ago Last modified on 04/12/18 12:32:51
Note: See TracWiki for help on using the wiki.