Hardware Emulator / Simulator for Winforms .Net Application
- by Suneet
I have a WinForms .Net HMI software which talks to hardware over USB. I check for communication with the hardware at Load time and if communication is active then run it (The hardware manufacturer has provided a communication library to talk over USB).
I want to build an emulator for cases when communication with hardware is not possible (not connected) and want the software to run in simulated mode by providing dummy values for different states of hardware.
Has anyone implemented something similar? Any pointers will be helpful. Are there any design patterns to handle such implementations.
TIA