People with cystic fibrosis who develop diabetes are taking part in a study to test technology that could ease daily care.