Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions USTCDAC.m
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,22 @@ function SetBoardcast(obj,isBoardcast,period)
end
end

function temp = GetDA1_temp(obj)
tt1 = obj.ReadAD9136_1(hex2dec('132'));
tt2 = obj.ReadAD9136_1(hex2dec('133'));
tt1 = mod(tt1,256);
tt2 = mod(tt2,256);
temp = 30+7.3*(tt2*256+tt1-39200)/1000.0;
end

function temp = GetDA2_temp(obj)
tt1 = obj.ReadAD9136_2(hex2dec('132'));
tt2 = obj.ReadAD9136_2(hex2dec('133'));
tt1 = mod(tt1,256);
tt2 = mod(tt2,256);
temp = 30+7.3*(tt2*256+tt1-39200)/1000.0;
end

function value = get(obj,properties)
switch lower(properties)
case 'isblock';value = obj.isblock ;
Expand Down