ChatGPT generated scripts cut instrument coding time by 70% in a single-pixel camera setup. The study shows that large language models can produce functional control code for complex lab equipment, lowering the skill barrier for researchers. By integrating LLM-based agents, the system can adapt scripts on the fly. Practitioners can deploy these tools to accelerate experimental workflows.