I am having problems controlling the voltage and current in a B+K precision programmable power supply. Since there is no driver available, I used the basic read an write example in Labview for serial communication, just making some modifications so that I could have two sequences, one for controlling the voltage and one for the current at the same time.
The aparatus responds nice if just trying to control the voltage or the current, but it does not work in combination or it does not retain the voltage/current value when I send the current/voltage.
Actually, it responds to both instructions nicely only when the current indicator has a nonzero value. And if it is switched from a nonzero to a zero value, It makes the actual voltage read to drop to zero.
Command strings sent to the aparatus are well written in all cases (so I guess is an internal variable problem) and I already tried to flush out and clean the VISA, nothing works.
I appreciate the help; I've attached the VI.
Rodrigo Gamboa