Has anyone got any experience controlling the Tenma 72-2540 power supply, or some other device that does not use termination characters? I got the read working by using byte count, and the write works sometimes, but sometimes the power supply just "hangs" and doesn't respond to anything anymore. When I do writes via NI Trace one command at a time it's ok. I've tried adding some delays into my program that needs to write several commands in a row, but it hasn't worked so far. The instrument also doesn't have a command for reset. I guess the only solution is to manually turn it off and on again when it stops responding?
↧