forked from Lucast85/BMSino-Matlab-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadWrite_DCDC.m
More file actions
36 lines (31 loc) · 738 Bytes
/
ReadWrite_DCDC.m
File metadata and controls
36 lines (31 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
clear all
clc
delete(instrfindall);
test_info=test_setup();
test_info.B3603.getStatus();
test_info.B3603.setCurrent(0.5);
test_info.B3603.setOutput(1);
pause(1);
A=test_info.B3603.DCDCoutputEnabled;
test_info.B3603.getStatus();
test_info.B3603.setOutput(0);
% test_info.B3603.setOutput(1);
% pause(1);
% test_info.B3603.setOutput(0);
% A=test_info.B3603.DCDCoutputEnabled;
% test_info.B3603.setCurrent(0.2);
% test_info.B3603.setOutput(1);
%
% test_info.BatteryCurrent = test_info.B3603.DCDCoutputCurrent;
% myDCDC.getVoltage
% myDCDC.getCurrent
%
% myDCDC.setVoltage(7.58);
% myDCDC.setOutput(1);
pause(2)
% myDCDC.setOutput(0);
% myDCDC.setCurrent
% myDCDC.setOutput
% myDCDC.setName
% myDCDC.setAutocommit
delete(instrfindall);