Hi Andy,
At first, you need to know DACREF_1 and DACREF_2 is what.
DACREF_1: VREF_OUT
DACREF_2:VDD.

The DAC refernce can be selected in the register DACx_C0[DACRFS], you can choose the VDD as your DAC reference voltage, then try the DAC convert.
About the code ,you can use our SDK_2.3_TWR-K64F120M which can be downloaded from this link:
Welcome | MCUXpresso SDK Builder
The dac code can be found in the folder:SDK_2.3_TWR-K64F120M\boards\twrk64f120m\driver_examples\dac
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------