What you mean? You are unable to design a system (hardware or software?) to turn led on /off.
For hardware: well, depends what kind of led you use. who knows, you got to provide a spec.
for software, it is easy, boolean variable will meet your need.
software-hardware: have DO channel output.
Hardware to software: Have a DI channel Input.