Dear Mr./Ms.
I have a Power Supply, Voltcraft DIGI 35 CPU. I would like to connect
this power supply with MATLAB and I would like to set/to controll the
output voltage using MATLAB.
I have read your explanation which you wrote on 15 June 2010 in this
website. I have used your explanation but it still doesn't work until
now. I have made some commands using MATLAB for that purposes. The
commands are:
1) This command to connect the power supply with my computer:
smu =
serial('COM1','Baudrate',9600,'Parity','none','DataBits',8,'StopBits',1,
'Terminator','CR');
"smu is only a variabel for the power supply, we can change it with
other variabel"
2) This command to set up the voltage from the computer
VOLTCOMMAND = ['v'',v(1),v(2),v(3),'\r'];
fprintf(smu,VOLTCOMMAND);
"VOLTCOMANND is only a variabel, we can change it with other variabel.
For example, if we fill v(1), v(2) and v(3) as 123, it means we would
like to set up the voltage 12.3 Volt.
My question, are the commands which I used above correct? If it aren't
correct, could you tell me how is the correct form? Because I have read
the manual and I have tried many times to connect the power supply with
my computer but it still fail.
I am waiting your reply. Thank you very much for your attention and your
reply.
Sincerely yours.