Put the instant pot on to 'Saute' mode. Add canola oil. Let the oil heat, add cubed onion and cook until light brown. Add grated ginger and garlic, let it cook until the light brown.
Once the onion and ginger, garlic cooked, then add red chili powder, turmeric powder, coriander powder, garam masala powder, salt and add 1/4 cup water, let the masala cook.
Now add cubed cut tomato to masala and cook.
Add washed masoor dal to cooked masala.
Add water to masoor dal. Now cancel the 'Saute' mode.
Put the instant pot lid, and set the timer on to 'Beans/Chili'. Once the instant pot timer goes to '0H' (zero hours), turn off the instant pot. Let it cool.
Once the instant pot cools down, open the lid. Dal makhani is ready to eat.