Using WT and AM command in C++ program

Hi Suresh,
The DMC can run local code downloaded to it's program memory space. This can be done with GDK. AM and WT are only valid in this manner.

The other way to code using the DMC, is to send commands to it, similar to typing commands in the terminal. This is what your C++ program does. The trippoint commands (commands that wait for something to happen) are invalid in this manner. Instead, you need to write your own while loop that checks a parameter.

For AM, you can check _BGm. For WT, you can use your PC's timer, or look at the TIME operand.

If you have additional questions, I would recommend calling in or emailing