The aim of this study is to evaluate the effect of the two different beta blockers metoprolol and carvedilol on endothelial function in patients with either type two diabetes or chronic heart failure.