Thursday, October 17, 2019
Embedded Systems and Drives Lab Report Example | Topics and Well Written Essays - 500 words
Embedded Systems and Drives - Lab Report Example The following code blocks show the implementation of the project. The codes as explained in the comment box. Ã For this exercise, each node was to be identified as an 8-bit code. Four bits compromised of a system code which is all from the same number while the other four bits were used to identify a node within the system. Ã For the condition, from if (sysIdS== sysId), is that the value received for system matches the value set for the system, nodeId check is true, and is within value of 0 to 16 in terms of arrays, then the condition is True, then the commands with the curly braces are therefore executed. For this case, the immediate action is to display date, temperature, Humidity etc. Ã for (int m = 0; m < array_size; m++) The for command, in this, defines a variable called m and gives this variable an initial value of 0. The text m < array_size appears after the semicolon. This is the representation of the condition required in staying within the loop. Therefore in other words, when m is less than array_size, things inside with the curly brackets will repeat. Ã The project implementation started with the identification of the required variables. The variables were then declared, with their relevant libraries also called. To ensure that the 16-nodes are identified, each node was declared as an integer, and assigned a name. The blocks of codes are explained in the comment box. The comment section explains why certain codes were used in a given section of the program. The transmitter and receiver snapshots are also provided.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.