I don't think the fact of owner occupation makes any difference in this case. if you let the barn to someone else the position would be the same.
I agree that if both were let separately, there would be two planning units.
If an owner occupied one unit, is the case different?
Would I be able to apply for a CLUED, on the basis of my more than four year occupation, after the LPA issues an enforcement notice, or does it have be made before enforcement? I have found conflicting opinion on this.
Not sure about the precise niceties of when you can apply for a CLUED. My detailed (local govt solicitor) knowledge of Planning Law & Practice predates the 1990 Act! However you can appeal against an enforcement notice on the grounds of 4 years use, so the logic would be that you apply for a CLUED at the same time and any appeal deals with both at the same time.
Of course you have to be able to show that the barn had been continuously occupied separately from the main house for at least 4 yers
As a conveyancing solicitor I believe the information given in the post to be useful (provided it relates to property in England & Wales) but I accept no liability except to fee-paying clients.