27 | | // This sets the DAC output for manual control |
28 | | int result = GetDAC(dac, dacAD5422Control, WAIT_ACK); |
29 | | DisplayText(0, 0, "GetDAC control result = " + IntToStr(result)); |
30 | | |
| 29 | // Gets the DAC control register value |
| 30 | if(GetDAC(dac, dacAD5422Control, WAIT_ACK) == OK) |
| 31 | { |
| 32 | DisplayText(0, 0, "GetDAC control result = " + IntToStr(g_nDACValue16)); |
| 33 | } |
| 34 | // Gets the DAC high weight register value |
| 35 | if(GetDAC(dac, dacHighWeight, WAIT_ACK) == OK) |
| 36 | { |
| 37 | DisplayText(0, 0, "GetDAC high weight = " + FloatToStr(g_fDACValue)); |
| 38 | } |