Simulate Dial/Slider being moved

Hi,

I want to ‘move’ a slider virtually and see what kind of MIDI is being sent out in my code. Is something like that possible? Simply setting value = x does not trigger anything…