No, this will not work. I'm assuming terminal 2 of R1 provides feedback to the switchmode regulator device?
You DAC output will do nothing until the voltage is high enough to start turning on the transistor, so maybe 0.0-0.55v does nothing. Then there will be a small voltage range over which the transistor switches on and saturates maybe 0.55-0.7v and then any further voltage will make no difference. This means you have a tiny range of your DAC output that will do anything, when when operating in this range it will be very temperature sensitive, so will drift.
What is the reference voltage of the switchmode device, and what is the reference voltage of your DAC? Typically you would wire this so the DAC sinks or sources current into the feedback node (terminal 2 of R1) which may be as simple as a resistor between the DAC and R1, but you need to calculate this this.
well its LM25116 module so i would say 1.215V on V-feedback
very helpful yes i was thinking about saturation also but dont know how sensitive so i choose low Hfe npn transistor for that and thought i will put high resistance series with Vbase.
i didnt think Vbe would be a problem as DAC can output more than what i need.
anyway, from pictures of the product it has W104 on CV which is 10K trimmer
but i can see:
which i dont know what it is ... (capacitor filtering?)
im not sure what is the resistors configuration (above/below/parallel with the 10k) in the schematic.
if i replaced it with digital pot with 64 steps for a (0-32V) it will be (0.5V stepping) so not accurate.
if i put DAC i would need to know the circuit schematic right?