summaryrefslogtreecommitdiff
path: root/911/CH10/EX10.3/ex_10_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH10/EX10.3/ex_10_3.sce')
-rw-r--r--911/CH10/EX10.3/ex_10_3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/911/CH10/EX10.3/ex_10_3.sce b/911/CH10/EX10.3/ex_10_3.sce
new file mode 100644
index 000000000..7283ae102
--- /dev/null
+++ b/911/CH10/EX10.3/ex_10_3.sce
@@ -0,0 +1,23 @@
+//example 10.3//
+clc
+//clears the screen//
+clear
+//clears all variables//
+f=5/1000;
+//full scale output in Amperes//
+g=2^8;
+//random value for use//
+s=f/(g-1);
+//step size = full scale output/ number of steps//
+d=bin2dec('10000010')
+//binary to decimal conversion//
+ao=d*s;
+//analog output of system//
+e=.25*f/100;
+//error =+-e//
+r0=(ao-e)*1000;
+//lower range of analog output//
+r1=(ao+e)*1000;
+//upper range of analog output//
+disp(r0, 'lower range of analog output (in mA) is =');
+disp(r1, 'upper range of analog output (in mA) is = '); \ No newline at end of file