The royal visit in June will involve the official opening of a new glasshouse block for the Scottish Crop Research Institute, one of the world's leading research complexes.
The new building in Invergowrie near Dundee houses the national seed store, which includes the commonwealth potato collection.
Princess Royal will also visit SCRI's Balruddery Farm near Fowlis, which is the site of the centre for sustainable cropping.
SCRI scientists are developing ways of growing crops that will keep yields high without harming biodiversity and sensitive ecosystems.
The visit is scheduled for 7 June, said Phil Taylor, the institute's head of communications.
"The science teams are looking forward to meeting her royal highness and explaining the importance of the work going on in Invergowrie and at Balruddery."