Using Arduino to receive and send USB commands from/to a control computer

Hi All,

I'm really interested on using the Arduino to run a bunch of locks with feedback at the command of a computer control system, which does a crazy amount of verification prior to commanding the lock to open.

Basically I'd like the computer to issue a command like "unlock #10" the Arduino would run the hardware side of the lock and verification of opening and closing and report back success. I'm sure I can do the Lock control, but I haven't found a good example of code to handle the Computer USD communication. Any help out there or what part of the forum I should look in.

Thanks,

Gina

The PC program uses the virtual COM port connected to the Arduino, the same as shown in the IDE.

Thanks!