Building Controls Virtual Test Bed
|
Simple simulation program to illustrate implementation of a client. More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "utilSocket.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Main function. More... | |
Simple simulation program to illustrate implementation of a client.
This file is a simple simulation program written in C to illustrate how to implement a client. The program simulates two rooms, each represented by a first order ordinary differential equation that describes the time rate of change of the room temperature. Input to the room model is the control signal for a heater. The control signal is obtained from Ptolemy II. Output of the model is the room temperature, which is sent to Ptolemy II. The differential equation is solved using an explicit Euler integration.
Definition in file cclient.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function.
Definition at line 36 of file cclient.c.
References closeipc(), dblValRea, establishclientsocket(), exchangedoubleswithsocket(), flaRea, fprintf(), i, nDblWri, retVal, sendclientmessage(), simTimRea, and sockfd.