Download Universal Home Automation Controller - Introduction

Transcript
School of Electronic, Communication and Electrical Engineering
BSc Final Year Project Report
Return Result: none
Description:
The selected DA-channel
channel is set to the minimum output voltage (0 Volt).
Implementation:
private int[]
[] analogOutput = new int[3];
public void clearAnalogOut(int
clearAnalogOut( analogOutputNumber)
{
DeviceLibrary
DeviceLibrary.ClearAnalogChannel(analogOutputNumber);
analogOutput[analogOutputNumber] = 0;
}
11. ClearAllAnalog
Declaration Syntax:
public static extern void ClearAllAnalog();
Input Parameter: none
Return Result: none
Description:
Both DA-channels
channels (1 and 2) are set to the minimum output voltage (0 Volt).
Implementation:
private int[]
[] analogOutput = new int[3];
public void clearAllAnalogOuts()
clearAllA
{
DeviceLibrary.ClearAllAnalog();
DeviceLibrary
for (int i = 1; i < 3; i++)
{
analogOutput[i] = 0;
}
}
12. SetAnalogChannel
Declaration Syntax:
public static extern void SetAnalogChannel(int Channel);
Input Parameter:
Channel - Value between 1 and 2 which corresponds to the 8-bit
8 bit DA channel number
in which the data is to set to maximum.
SAMARTH GUPTA / UNIVERSAL HOME AUTOMATION CONTROLLER
23