= SetDACPercent = Set a DAC output percentage. {{{ int SetDACPercent(int dev, uint8 percent); }}} == Parameters == * dev - number of DAC card. * percent - percent value 0 - 100. == Return Value == * Returns the result - OK success == 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 = 50; if(SetDACPercent(dac, percent) != OK) { DisplayText(0, 0, "SetDACPercent Error"); } }}} == See Also == * [wiki:SetDACReg SetDACReg] * [wiki:SetDACTrackScale SetDACTrackScale]