Windows Communication Library Description

Size: px
Start display at page:

Download "Windows Communication Library Description"

Transcription

1 Windows Communication Library Description Paint Mixing Windows Data Communication Library for PMA7200 & PMA7500 technology PMA7501 series ECOMIX-Terminals EM01-* SpeedMix PMC7500-* Version Windows Driver description File : CommunicationLibraryDescription.odt Page: 1/15

2 Contents 1 Document changes Data communication overview Interface to the scale server (scal_cli.dll functions) Special settings Function scale_open Function scale_asyn_behavior Function scale_asyn_write Function scale_write Function scale_read Function scale_command Function scale_command_unicode Function scale_close Function scale_test_server Function scale_visible_server Function scale_force_exit Function name usage and overview NET interface (scal_net.dll) ScaleOpen ScaleClose ScaleCommand Window message processing Error codes Srvcom Command line Menu items How to use the scale server interface (program samples) Synchronous Mode Asynchronous Mode Command Syntax Parameters Request Syntax Response Syntax Error messages Error Response Windows Driver description File : CommunicationLibraryDescription.odt Page: 2/15

3 1 Document changes Version Changes 5.2 Wrapper DLL for.net support added SCAL_NET.DLL Function scale_command_unicode added Description of scale_open() changed: SBI switch /i added Name changed Windows Driver description File : CommunicationLibraryDescription.odt Page: 3/15

4 2 Data communication overview The data communication between the paint application software and the Sartorius scale is achieved using a scale server interface DLL (Scal_cli.dll) or a.net wrapper DLL (Scal_net.dll), which handle the communication to the connected scale using a server task (Srvcom.exe). This server task will check the connected scale during a call of function scale_open() and load the matching scale DLL. It is possible to start the server process (Srvcom) separately but this isn t necessary. The server will be started automatically if it isn t already running at a call of function scale_open(). In this case the server will be closed automatically at a call of scale_close(). More information about Srvcom can be found in ch. 3 The communication between the client application and the scale communication server is achieved using a DDE (Dynamic data exchange, Microsoft Windows specific, is a form of inter process communication that uses shared memory to exchange data between applications.) Overview: Windows application process Windows application or Windows.NET application Wrapper DLL (Scal_net.dll) Interface DLL (Scal_cli.dll) Sartorius driver process Server (Srvcom.exe) Sartocom via DDE inter process communication Scale driver DLL s SrvPma75.dll SrvPma72.dll SrvInd20.dll COM port COM port COM Port or Ethernet PMA 7500 PMA 7200 Ecomix Speedmix PMA7501 Windows Driver description File : CommunicationLibraryDescription.odt Page: 4/15

5 2.1 Interface to the scale server (scal_cli.dll functions) The interface to the scale server is done through following functions. Remarks: It is recommended, to use scale_command, instead of scale_write and scale_read. If functions scale_write or scale_async_write are used, after each write call a corresponding scale_read MUST be called. This is necessary in every case, even if the answer isn't needed Special settings Some special settings are available. These settings will take effect if there are made appropriate entries in an initialisation file with the name SRVCOM.INI Following sections and keywords can be used: Section [srvind20] BAUD=<value> switch Ecomix / Speedmix communication to a fixed baud rate. Possible values are 9600, and (and for PMA7501) PROTOCOL=ON srvind20 driver module will generate a protocol (File srvind20.pro) Section [srvcom] PROTOCOL=ON Srvcom server will generate a protocol (File srvcom.pro) Section [scal_cli] WAIT_WRITE=1 Will support compatibility to application programs, which have been developed with earlier scal_cli.dll versions (From V up to V ). This is relevant only if the application program isn't doing the necessary scale_read() function call after each call of scale_write(). An example for SRVCOM.INI. In this case Srvcom will generate a protocol file and the communication with Ecomix will be startet with Baud regardless of the settings used during the scale_open() command. [srvind20] ; srvind20: switch to fixed baud rate BAUD=38400 [srvcom] ; srvcom: generate protocol PROTOCOL=ON Function scale_open long int WINAPI scale_open (const char * comport, const char * options) description: comport: options: begins communication with the Communication Server, opens communication port to the scale and reads identification data of the scale string of Comport, eg.: COM2 (in case of an Ethernet connection the same syntax has to be used for this parameter, but it may contain a non existent COM port number) option string with following possibilities: /B <baud rate> sets communication speed to baud rate, default 9600 (possible values are 9600, 19200, 38400) /R <Retry> sets number of retries; default: 3 /ip <IP-Address> sets Ethernet communication address, e.g. "/ip " /pt <Port>" sets Ethernet communication port, e.g. "/pt 21554" /i sets communication to SBI. Remark: the baud rate should be set, too. Its possible range is extended down to 1200 baud. return value: if ret>=0, the function execution was successful. The return value has to be used as handle for the functions: scale_command, scale_write, scale_read, scale_close Windows Driver description File : CommunicationLibraryDescription.odt Page: 5/15

6 2.1.3 Function scale_asyn_behavior long int WINAPI scale_asyn_behavior (const char * comport, const void * function, HWND hwnd, UINT Msg) description: comport: function: indata: incount: hwnd: Msg: return value: this call is necessary before call scale_asyn_write(). It defines which kind of behavior is wished to receive the response of scale_asyn_write(). You can decide to receive a windows message or the asynchronous response will be call a callback function. This function is only available for 32bit SCAL_CLI.DLL. string of Comport, example: COM2 is pointer to a callback function with attribute CALLBACK or WINAPI and arguments (char * indata, unsigned long int incount) buffer pointer of response data contains length of data actual put to argument indata Handle of the window that has to receive the response message Message number of the response message (normaly WM_USER + xxx) the lparam of the windows message is a pointer to the response string the wparam of the windows message is the length of the response string (Remark: either argument function or hwnd must not be zero, but one of both cannot be zero. If hwnd is not zero then Msg must be also not zero. ) >= 0 value is old setting of function or hwnd of previous call, or zero on first call. <0 see the documentation in chapter "Error Code" Function scale_asyn_write long int WINAPI scale_asyn_write (long int handle, const char * outdata, unsigned long int outcount) description: handle: outdata: outcount: return value: sends string outdata to the Communication Server, the response can be received with a asynchronous callback function or with a user defined windows message. (This behavior must be defined before with a function call to scale_asyn_behavior() ). This function is only available for 32bit SCAL_CLI.DLL. value that is returned from scale_open string to be send length of the string without the following <cr>,<lf> if >0 then function was successful and value must equal outcount Function scale_write long int WINAPI scale_write (long int handle, const char * outdata, unsigned long int outcount) description: sends string outdata to the Communication Server, the response must be received with the function scale_read handle: value that is returned from scale_open outdata: string to be send outcount: length of the string without the following <cr>,<lf> return value: if >0 then function was successful and value must equal outcount Function scale_read long int WINAPI scale_read (long int handle, const char * indata, unsigned long int maxdata) description: handle: indata: maxcount: return value: reads the result of an previous function-call scale_write. The return string will be put to buffer indata. If the length of the return string is less then maxdata a NULL character will be append to indata, the returned length value does not include this NULL character. value that is returned from scale_open buffer of size maxdata to obtain the scale_write result size of indata if > 0 then function was successful and value contains length of data actual put to argument indata Windows Driver description File : CommunicationLibraryDescription.odt Page: 6/15

7 2.1.7 Function scale_command long int WINAPI scale_command (long int handle, const char * outdata, unsigned long int outcount, char * indata, unsigned long int maxdata, unsigned long int *incount) description: handle: outdata: outcount: indata: maxcount: incount: return value: combination of functions scale_write and scale_read value that is returned from scale_open string to be send length of the string without the following <cr>,<lf> buffer of size maxdata to obtain the scale_read result size of indata contains length of data actual put to argument indata if > 0 then function was successful and value contains length of data actual put to argument indata and is equal incount Function scale_command_unicode long int WINAPI scale_command_unicode (long int handle, const wchar_t * outdata, unsigned long int outcount, wchar_t * indata, unsigned long int maxdata, unsigned long int *incount) The function corresponds to scale_command, except the Unicode input and output buffers Function scale_close long int WINAPI scale_close (long int handle) description: the communication to the scale is closed, also the communication channel to the Communication Server handle: value that is returned from scale_open return value: 1 function was successful completed communication channel closed, 0 communication channel closed, but server not reached this may occur, if the server is already stopped <0 see the documentation in chapter "Error Code" Function scale_test_server long int WINAPI scale_test_server (const char * comport, char * buffer, unsigned long int maxbuffer) Remark: this function can only be called, if scale is closed! description: begins communication with the Communication Server, gets time string from the server and puts it to buffer as NUL terminated string. Example of buffer: "Server Time: Tue 22 16:00: ", if the server is not started or maxbuffer is to short a NUL string will applied to buffer. comport : string of Comport, example: COM2 buffer: buffer of size maxbuffer to obtain the scale_visible_server result maxbuffer: size of buffer, should be greater equal 38 return value: >0 function was successful <0 see the documentation in chapter "Error Code" Windows Driver description File : CommunicationLibraryDescription.odt Page: 7/15

8 Function scale_visible_server long int WINAPI scale_visible_server (const char * comport, char * buffer, unsigned long int maxbuffer) Remark: this function can only be called, if scale is closed! note: the Communication Server has to be started first description: begins communication with the Communication Server, gets time string from the server and puts it to buffer as NUL terminated string. Example of buffer: "Server Time: Tue 22 16:00: " if the server is not started or maxbuffer is to short a NUL string will applied to buffer. Subsequently the server will be set to visible mode. comport : string of Comport, example: COM2 buffer: buffer of size maxbuffer to obtain the scale_visible_server result maxbuffer: size of buffer, should be greater equal 38 return value: >=0 function was successful <0 see the documentation in chapter "Error Code" Function scale_force_exit long int WINAPI scale_force_exit (const char * comport); Remark: this function should be carefully used, it exits then Communication server also, if a communication is established from the own or from another application! description: begins communication with the Communication Server and sends the command to exit itself. The server can only receive this command when the server is not busy or or is busy in asynchronous action. This means: during actions from scale_open(), scale_close(), scale_command() the order to exit is queued and executed, when the previous actions are finished. During actions from scale_asyn_write() the exit command is executed immediately. comport : string of Comport, example: COM2 return value: >=0 function was successful <0 see the documentation in chapter "Error Code" Windows Driver description File : CommunicationLibraryDescription.odt Page: 8/15

9 Function name usage and overview The functions can be called using the described names, if the C-conform import lib files are used (Scal_cli.lib). Other program languages may have to use the names as declared in the following table: DLL-Entry Name or Alternative DLL-Name. Ordinal number Documentation name DLL-Entry name Alternative DLL name 1 scale_write _scale_write@12 Scale_write 2 scale_close _scale_close@4 Scale_close 4 scale_command _scale_command@12 Scale_command 6 scale_test_server _scale_test_server@12 Scale_test_server 7 scale_open _scale_open@4 Scale_open 8 scale_read _scale_read@12 Sccle_read 9 scale_start_server _scale_start_server@8 Scale_start_server 10 scale_visible_server _scale_visible_server@12 Scale_visible_server 11 scale_asyn_behavior _scale_asyn_behavior@16 Scale_asyn_behavior 12 scale_asyn_write _scale_asyn_write@12 Scale_asyn_write 13 scale_force_exit _scale_force_exit@4 Scale_force_exit scale_command_unicode _scale_command_unicode Scale_command_unicode Windows Driver description File : CommunicationLibraryDescription.odt Page: 9/15

10 2.2.NET interface (scal_net.dll) The.NET interface supports the three methods ScaleOpen, ScaleClose and ScaleCommand of the class Scal_cli in the namespace DllWrapper ScaleOpen public static int ScaleOpen(string comport, string options) description: Please, refer to the Function scale_open in the chapter ScaleOen starts the communication to the Communication Server, opens the communication port to the scale and reads the identification data of the scale. comport: string of Comport, eg.: COM2 (in case of an Ethernet connection the same syntax has to be used for this parameter, but it may contain a non existent COM port number) options: option string with following possibilities: /B <baud rate> sets communication speed to baud rate, default 9600 (possible values are 9600, 19200, 38400) /R <Retry> sets number of retries; default: 3 /ip <IP-Address> sets Ethernet communication address, e.g. "/ip " /pt <Port>" sets Ethernet communication port, e.g. "/pt 21554" return value: if ret>=0, the function execution was successful. The returned value has to be used as handle for the functions ScaleCommand and ScaleClose. If it is <0, please refer to the documentation in chapter "Error Codes" ScaleClose public static int ScaleClose(int handle) description: Please, refer to the Function scale_close in the chapter The communication to the scale and the communication channel to the Communication Server is closed. handle: value that has been returned from ScaleOpen return value: 1 function was successful completed communication channel closed, 0 communication channel closed, but server not reached this may occur, if the server is already stopped <0 refer to the documentation in chapter "Error Codes" ScaleCommand public static int ScaleCommand(int handle, string senddata, StringBuilder recdata) description: handle: senddata: recdata: return value: Please, refer to the Function scale_command and Function scale_command_unicode in the chapters and It sends a command to the scale and reads the response. handle value that has been returned from ScaleOpen command string to be send. StringBuilder buffer to obtain the received result. A size of 256 is recommended. if the return value is > 0 then function was successful and the value contains the length of the data which had actual been put to the recdata buffer. If it is <0, please refer to the documentation in chapter "Error Codes" Windows Driver description File : CommunicationLibraryDescription.odt Page: 10/15

11 2.3 Window message processing While the scale_... functions are executing, window messages are processed and not blocked, so the application programmer should secure that these functions are not called twice. 2.4 Error codes This is a list of the error codes, that can be received as result of the functions: scale_open, scale_command, scale_read, scale_write, scale_close Name No. When does the error occur SCALE_ERR_DDE_BUFFLEN -1 write string is longer than internal buffers SCALE_ERR_DDE_CONNECT -2 Cannot connect server This can happen, if you assume that the Server is started, but this is not true. SCALE_ERR_DDE_INIT -3 Cannot initiate DDE interface This error may perhaps happen, if the Windows system is not complete installed or corrupt. SCALE_ERR_OPENSTRING -4 begins not "COM SCALE_ERR_OPENSTATUS -5 cannot receive Open status from server Internal error, please report to SARTORIUS SCALE_ERR_OPENSCALE -6 cannot connect to scale The server is working, but the scale on the announced COM-port is not accessible. The retry mechanism implies, that this error will be received after about 30 to 45 secs. SCALE_ERR_READTIMEOUT1-7 Read time out on COM-Port SCALE_ERR_READTIMEOUT2-8 Read time out on COM-Port SCALE_ERR_CONNECT_FIRST -9 Internal error communication module: may happen, if scale_command() is called before scale_open() SCALE_ERR_CONNECT_RECEIVE0-10 Internal error communication Client -> Server the connection channel is not opened, but a receive is initiated. SCALE_ERR_CONNECT_RECEIVE1-11 Internal error communication Client -> Server may happen, if the server process is stopped, although a connection from a client process is open you can try, to force a scale_close() call, so the assumed connection will be closed and a newly call of scale_open() will be successful. SCALE_ERR_CONNECT_RECEIVE2-12 Internal error communication Client -> Server Internal error, please report to SARTORIUS SCALE_ERR_CONNECT_RECEIVE3-13 Internal error communication Client -> Server The announced receive buffer is smaller than the length of the received data SCALE_ERR_CONNECT_RECEIVE4-14 Internal error communication Client -> Server Internal error, please report to SARTORIUS SCALE_ERR_OPENSTATUSCOUNT -15 Open status from server is too short Internal error, please report to SARTORIUS SCALE_ERR_ALREADYOPEN -16 Open status from server signals: Scale is already open the scale interface can be opened only once at a time SCALE_ERR_SERVERSTARTFAILED -17 Automatic server start was not possible the program SRVCOM.EXE must in the working directory of the calling program or must be accessible with the PATH environment variable SCALE_ERR_STARTNOTSUPPORTE -18 Automatic server start yet not supported for 16-bit D SCALE_ERR_OPENCOMPORT -19 Comport can not be opened, not available, or used by another application SCALE_ERR_DDE_READTIMEOUT -20 Read timeout in DDE-Interface SCALE_ERR_DDE_WRITEFAULT -21 No Success on Write to DDE-Server SCALE_ERR_LOAD_DLL -22 No Success on Loading Server-DLL SCALE_ERR_DLL_CORRUPT -23 No Success on Loading Server-DLL function calls SCALE_ERR_DLL_ILLEGAL_USE -24 Server-DLL function calls illegal used SCALE_ERR_UNKNOWN_SCALE -25 Connection successful, but scale unknown SCALE_ERR_COMMUNICATION -26 Problems on serial Communication SCALE_ERR_MAXPORTS -27 Com port number too high, at moment COM1... COM8 allowed SCALE_ERR_ASYN_BEHAVIOR_NOT -28 Call back function and Window handle not zero _UNIQUE SCALE_ERR_ASYN_BEHAVIOR_NOT -29 Call back function and Window handle are zero _SPECIFIED SCALE_ERR_ASYN_WRITE_NO_BEH -30 Call back function and Window handle are zero AVIOR_KNOWN SCALE_ERR_CONNECT_RECEIVE5-31 Internal error communication Client -> Server Internal error, please report to SARTORIUS Windows Driver description File : CommunicationLibraryDescription.odt Page: 11/15

12 3 Srvcom In the normal case (if you are using the interface Dll SCAL_CLI.DLL) SRVCOM is started automatically and unvisible at a call of scale_open(). For tests it is possible, too, to start SRVCOM by hand. Then you can use following command line options. 3.1 Command line SRVCOM uses COM1 as default comport, but there is available a command line parameter to set it. Otherwise it has to be set using the menu entry File SRVCOM normally starts with a visible dialog window. A menu item Invisible (menu entry File ) and a command line parameter (any odd digit) are available to hide it. Examples: SRVCOM SRVCOM COM2 1 SRVCOM COM3 0 will start the server on COM1 with visible option will start the server on COM2 with invisible option will start the server on COM3 with visible option 3.2 Menu items Mainitem subitem description File Invisible sets window of program invisible Set_COM 1..8 select comport COM1 to COM8 Exit terminates program ScaleTest tests communication to scale, gives some Information Help About Sartorius Appl. Version information of program package Windows Driver description File : CommunicationLibraryDescription.odt Page: 12/15

13 4 How to use the scale server interface (program samples) 4.1 Synchronous Mode An application example program is \clientst\clientst.c. The following extract of this program demonstrates how to use the scale_xxxxx functions: // Include files #include scal_cli.h // declaration part unsigned long int comhandle; char buffer[132]; long int itmp,incount; // execution part // commands to get some Scale information (Menu Item Scale_info) comhandle = scale_open (com_str,"test"); sprintf (buffer,"open Status: %ld\r\n",comhandle); outwindow (buffer); if (comhandle >= 0) { itmp = scale_command (comhandle,"si;m",4,buffer,120,&incount); buffer[incount]=0; outwindow (buffer); itmp = scale_command (comhandle,"si;n",4,buffer,120,&incount); buffer[incount]=0; outwindow (buffer); itmp = scale_command (comhandle,"w;s;",4,buffer,120,&incount); buffer[incount]=0; outwindow (buffer); itmp = scale_close (comhandle); } 4.2 Asynchronous Mode The following extract of \clientst\clientst.c demonstrates how to use the scale_xxxxx functions in asynchronous mode: // Include files #include scal_cli.h // declaration part unsigned long int comhandle; char buffer[132]; long int itmp, incount; // execution part // commands to get some Scale information (Menu Item Scale_info) comhandle = scale_open (com_str,"test"); sprintf (buffer,"open Status: %ld\r\n",comhandle); outwindow (buffer); if(comhandle >= 0) { #ifdef WINMESSAGE itmp = scale_asyn_behavior (com_str, NULL, m_hwnd, WM_USER + 5); #else itmp = scale_asyn_behavior (com_str, TestCallback, NULL, 0); #endif itmp = scale_asyn_write (comhandle,"si;m",4); // Waiting for windows message itmp = scale_asyn_write (comhandle,"si;n",4); // Waiting for windows message itmp = scale_asyn_write(comhandle,"w;s;",4); // Waiting for windows message itmp = scale_close (comhandle); } void CALLBACK TestCallback (char * response, unsigned long int resplen) { mydisplay (response, resplen); } Windows Driver description File : CommunicationLibraryDescription.odt Page: 13/15

14 5 Command Syntax All requests obey the following syntax: The requests (commands and all parameters) are written down as ASCII sequence. As well the returned response. All parts of a sequence (command, sub command, parameter 1..n) are separated by colons. Floating point parameters use the decimal point (not comma). A thousand separator comma is not allowed. Any command sequence must be terminated by a carriage return (ASCII code 13 / 0DH) Spaces in the command sequence are trimmed (except string parameters, which are double quoted). String parameters, which contain special characters (like the colon or spaces), should be double quoted. The structure of the return sequence is like the command sequence. If the command has been executed without errors, the response starts with a repetition of the command (part in front of the first colon) and if necessary followed by answer parameters, otherwise an error message starting with EF is returned. Spaces between command and parameters are allowed and should be trimmed before parsing the response. 5.1 Parameters Possible types of request or response parameters are: ENUM One or two uppercase letters, usually specifying a subcommand. INT Integer values as an ASCII string containing characters , -, +. Default value is 0 FLOAT Floating point values represented by an ASCII string containing the characters -, +,. and Default value is 0.0 STRING An ASCII string. 5.2 Request Syntax A scale request consists of a one to three characters long command identifier followed by several parameters. Example: W;S;5<CR><LF> requests for a weight value ( W ), subcommand stable weight value ( S ) within 5 seconds (time-out parameter). 5.3 Response Syntax The response of an error free executed request starts with the command identifier of the request possibly followed by some result values of the executed command. Example: W;S;10.0;g<CR> is the response to the command W, showing a stable ( S ) weight value of 10.0 gram ( g ). The returned length of scale_read() and scale_command() includes the terminating <CR>. Windows Driver description File : CommunicationLibraryDescription.odt Page: 14/15

15 6 Error messages 6.1 Error Response If the command execution was not successful an error response is sent back. Following error groups are distinguished: ERROR FUNCTION: Parameter- or Execution- Errors Code: 'EF' ERROR DEVICE: Hardware - Errors Code: 'ED' Syntax: EF;<code>;<command identifier>;<number of parameter (1..n)> or ED;<code>;<number of error> Function errors EF: <Code> Identifies error reason EF; B <B>locked: function cannot be executed at this time EF; L <L>ength: parameter 'parameter_number' is too long EF; T <T>imeout: function broken, because the given maximal waiting time was exceeded EF; U <U>nknown: unknown command identifier EF; W <W>rong: parameter 'parameter_number' has a non-acceptable value EF; + Too much parameters EF; - Not enough parameters EF; > Value of parameter is too big EF; < Value of parameter is too small Device errors ED: <Code> Identifies error reason ED; I <I>nitialization: scale initialisation is not completed ED; F <F>atal error: <number of error> <number of error> Identifies error reason Internal error number of scale. The actual error number depends on the scale device connected. Some error numbers are shown here: 2 Weight is not zero at start of calibration 54 Weight underflow 300 Internal error number of device driver 310 Scale communication time-out 311 Scale communication time-out 312 Initialisation of scale communication failed 399 Illegal scale type: the connected scale is not supported by the used scale driver. Windows Driver description File : CommunicationLibraryDescription.odt Page: 15/15

Version changes. Paint Mixing Windows Data Communication Library. for series

Version changes. Paint Mixing Windows Data Communication Library. for series Version changes Paint Mixing Windows Data Communication Library for series PMA.Evolution PMA7501 PMA5000 PMA7200 & PMA7500 ECOMIX-Terminals EM01-* ECOMIX.Compact-Terminals EM02*-* SpeedMix PMC7500-* Version

More information

6.096 Introduction to C++ January (IAP) 2009

6.096 Introduction to C++ January (IAP) 2009 MIT OpenCourseWare http://ocw.mit.edu 6.096 Introduction to C++ January (IAP) 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. Welcome to 6.096 Lecture

More information

VARIABLES AND CONSTANTS

VARIABLES AND CONSTANTS UNIT 3 Structure VARIABLES AND CONSTANTS Variables and Constants 3.0 Introduction 3.1 Objectives 3.2 Character Set 3.3 Identifiers and Keywords 3.3.1 Rules for Forming Identifiers 3.3.2 Keywords 3.4 Data

More information

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14 C introduction Variables Variables 1 / 14 Contents Variables Data types Variable I/O Variables 2 / 14 Usage Declaration: t y p e i d e n t i f i e r ; Assignment: i d e n t i f i e r = v a l u e ; Definition

More information

Call DLL from Limnor Applications

Call DLL from Limnor Applications Call DLL from Limnor Applications There is a lot of computer software in the format of dynamic link libraries (DLL). DLLCaller performer allows your applications to call DLL functions directly. Here we

More information

Tokens, Expressions and Control Structures

Tokens, Expressions and Control Structures 3 Tokens, Expressions and Control Structures Tokens Keywords Identifiers Data types User-defined types Derived types Symbolic constants Declaration of variables Initialization Reference variables Type

More information

Key Switch Control Software Windows driver software for Touch Panel Classembly Devices

Key Switch Control Software Windows driver software for Touch Panel Classembly Devices IFKSMGR.WIN Key Switch Control Software Windows driver software for Touch Panel Classembly Devices Help for Windows www.interface.co.jp Contents Chapter 1 Introduction 3 1.1 Overview... 3 1.2 Features...

More information

Java Notes. 10th ICSE. Saravanan Ganesh

Java Notes. 10th ICSE. Saravanan Ganesh Java Notes 10th ICSE Saravanan Ganesh 13 Java Character Set Character set is a set of valid characters that a language can recognise A character represents any letter, digit or any other sign Java uses

More information

INTRODUCTION 1 AND REVIEW

INTRODUCTION 1 AND REVIEW INTRODUTION 1 AND REVIEW hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Programming: Advanced Objectives You will learn: Program structure. Program statements. Datatypes. Pointers. Arrays. Structures.

More information

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language 1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC

More information

University of Technology. Laser & Optoelectronics Engineering Department. C++ Lab.

University of Technology. Laser & Optoelectronics Engineering Department. C++ Lab. University of Technology Laser & Optoelectronics Engineering Department C++ Lab. Second week Variables Data Types. The usefulness of the "Hello World" programs shown in the previous section is quite questionable.

More information

Basic Elements of C. Staff Incharge: S.Sasirekha

Basic Elements of C. Staff Incharge: S.Sasirekha Basic Elements of C Staff Incharge: S.Sasirekha Basic Elements of C Character Set Identifiers & Keywords Constants Variables Data Types Declaration Expressions & Statements C Character Set Letters Uppercase

More information

CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square)

CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square) CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square) Introduction This semester, through a project split into 3 phases, we are going

More information

The SPL Programming Language Reference Manual

The SPL Programming Language Reference Manual The SPL Programming Language Reference Manual Leonidas Fegaras University of Texas at Arlington Arlington, TX 76019 fegaras@cse.uta.edu February 27, 2018 1 Introduction The SPL language is a Small Programming

More information

Java How to Program, 10/e. Copyright by Pearson Education, Inc. All Rights Reserved.

Java How to Program, 10/e. Copyright by Pearson Education, Inc. All Rights Reserved. Java How to Program, 10/e Education, Inc. All Rights Reserved. Each class you create becomes a new type that can be used to declare variables and create objects. You can declare new classes as needed;

More information

CSE 1001 Fundamentals of Software Development 1. Identifiers, Variables, and Data Types Dr. H. Crawford Fall 2018

CSE 1001 Fundamentals of Software Development 1. Identifiers, Variables, and Data Types Dr. H. Crawford Fall 2018 CSE 1001 Fundamentals of Software Development 1 Identifiers, Variables, and Data Types Dr. H. Crawford Fall 2018 Identifiers, Variables and Data Types Reserved Words Identifiers in C Variables and Values

More information

A Fast Review of C Essentials Part I

A Fast Review of C Essentials Part I A Fast Review of C Essentials Part I Structural Programming by Z. Cihan TAYSI Outline Program development C Essentials Functions Variables & constants Names Formatting Comments Preprocessor Data types

More information

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary GATE- 2016-17 Postal Correspondence 1 C-Programming Computer Science & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts, Analysis

More information

Communications API. TEAM A : Communications and Integration Group. April 15, 1995

Communications API. TEAM A : Communications and Integration Group. April 15, 1995 Communications API TEAM A : Communications and Integration Group April 15, 1995 1 Introduction This document specifies the API provided by the Communications and Integration group for use in the AMC system.

More information

Gabriel Hugh Elkaim Spring CMPE 013/L: C Programming. CMPE 013/L: C Programming

Gabriel Hugh Elkaim Spring CMPE 013/L: C Programming. CMPE 013/L: C Programming 1 Literal Constants Definition A literal or a literal constant is a value, such as a number, character or string, which may be assigned to a variable or a constant. It may also be used directly as a function

More information

Chapter 1 Getting Started

Chapter 1 Getting Started Chapter 1 Getting Started The C# class Just like all object oriented programming languages, C# supports the concept of a class. A class is a little like a data structure in that it aggregates different

More information

CSc Introduction to Computing

CSc Introduction to Computing CSc 10200 Introduction to Computing Lecture 2 Edgardo Molina Fall 2011 - City College of New York Thursday, September 1, 2011 Introduction to C++ Modular program: A program consisting of interrelated segments

More information

C++_ MARKS 40 MIN

C++_ MARKS 40 MIN C++_16.9.2018 40 MARKS 40 MIN https://tinyurl.com/ya62ayzs 1) Declaration of a pointer more than once may cause A. Error B. Abort C. Trap D. Null 2Whice is not a correct variable type in C++? A. float

More information

BLM2031 Structured Programming. Zeyneb KURT

BLM2031 Structured Programming. Zeyneb KURT BLM2031 Structured Programming Zeyneb KURT 1 Contact Contact info office : D-219 e-mail zeynebkurt@gmail.com, zeyneb@ce.yildiz.edu.tr When to contact e-mail first, take an appointment What to expect help

More information

DECLARATIONS. Character Set, Keywords, Identifiers, Constants, Variables. Designed by Parul Khurana, LIECA.

DECLARATIONS. Character Set, Keywords, Identifiers, Constants, Variables. Designed by Parul Khurana, LIECA. DECLARATIONS Character Set, Keywords, Identifiers, Constants, Variables Character Set C uses the uppercase letters A to Z. C uses the lowercase letters a to z. C uses digits 0 to 9. C uses certain Special

More information

Flow Control. CSC215 Lecture

Flow Control. CSC215 Lecture Flow Control CSC215 Lecture Outline Blocks and compound statements Conditional statements if - statement if-else - statement switch - statement? : opertator Nested conditional statements Repetitive statements

More information

LSN 4 GUI Programming Using The WIN32 API

LSN 4 GUI Programming Using The WIN32 API LSN 4 GUI Programming Using The WIN32 API ECT362 Operating Systems Department of Engineering Technology LSN 4 Why program GUIs? This application will help introduce you to using the Win32 API Gain familiarity

More information

QUIZ. What is wrong with this code that uses default arguments?

QUIZ. What is wrong with this code that uses default arguments? QUIZ What is wrong with this code that uses default arguments? Solution The value of the default argument should be placed in either declaration or definition, not both! QUIZ What is wrong with this code

More information

Variables. Data Types.

Variables. Data Types. Variables. Data Types. The usefulness of the "Hello World" programs shown in the previous section is quite questionable. We had to write several lines of code, compile them, and then execute the resulting

More information

Computers Programming Course 5. Iulian Năstac

Computers Programming Course 5. Iulian Năstac Computers Programming Course 5 Iulian Năstac Recap from previous course Classification of the programming languages High level (Ada, Pascal, Fortran, etc.) programming languages with strong abstraction

More information

Introduction to C# Applications

Introduction to C# Applications 1 2 3 Introduction to C# Applications OBJECTIVES To write simple C# applications To write statements that input and output data to the screen. To declare and use data of various types. To write decision-making

More information

Presented By : Gaurav Juneja

Presented By : Gaurav Juneja Presented By : Gaurav Juneja Introduction C is a general purpose language which is very closely associated with UNIX for which it was developed in Bell Laboratories. Most of the programs of UNIX are written

More information

Basic Types, Variables, Literals, Constants

Basic Types, Variables, Literals, Constants Basic Types, Variables, Literals, Constants What is in a Word? A byte is the basic addressable unit of memory in RAM Typically it is 8 bits (octet) But some machines had 7, or 9, or... A word is the basic

More information

Lecture 2 Tao Wang 1

Lecture 2 Tao Wang 1 Lecture 2 Tao Wang 1 Objectives In this chapter, you will learn about: Modular programs Programming style Data types Arithmetic operations Variables and declaration statements Common programming errors

More information

Approximately a Final Exam CPSC 206

Approximately a Final Exam CPSC 206 Approximately a Final Exam CPSC 206 Sometime in History based on Kelley & Pohl Last name, First Name Last 4 digits of ID Write your section number: All parts of this exam are required unless plainly and

More information

Programming in C++ 4. The lexical basis of C++

Programming in C++ 4. The lexical basis of C++ Programming in C++ 4. The lexical basis of C++! Characters and tokens! Permissible characters! Comments & white spaces! Identifiers! Keywords! Constants! Operators! Summary 1 Characters and tokens A C++

More information

CS242 COMPUTER PROGRAMMING

CS242 COMPUTER PROGRAMMING CS242 COMPUTER PROGRAMMING I.Safa a Alawneh Variables Outline 2 Data Type C++ Built-in Data Types o o o o bool Data Type char Data Type int Data Type Floating-Point Data Types Variable Declaration Initializing

More information

Binghamton University. CS-211 Fall Syntax. What the Compiler needs to understand your program

Binghamton University. CS-211 Fall Syntax. What the Compiler needs to understand your program Syntax What the Compiler needs to understand your program 1 Pre-Processing Any line that starts with # is a pre-processor directive Pre-processor consumes that entire line Possibly replacing it with other

More information

Chapter 2: Using Data

Chapter 2: Using Data Chapter 2: Using Data TRUE/FALSE 1. A variable can hold more than one value at a time. F PTS: 1 REF: 52 2. The legal integer values are -2 31 through 2 31-1. These are the highest and lowest values that

More information

ME240 Computation for Mechanical Engineering. Lecture 4. C++ Data Types

ME240 Computation for Mechanical Engineering. Lecture 4. C++ Data Types ME240 Computation for Mechanical Engineering Lecture 4 C++ Data Types Introduction In this lecture we will learn some fundamental elements of C++: Introduction Data Types Identifiers Variables Constants

More information

Data Types and Variables in C language

Data Types and Variables in C language Data Types and Variables in C language Basic structure of C programming To write a C program, we first create functions and then put them together. A C program may contain one or more sections. They are

More information

COMP322 - Introduction to C++ Lecture 02 - Basics of C++

COMP322 - Introduction to C++ Lecture 02 - Basics of C++ COMP322 - Introduction to C++ Lecture 02 - Basics of C++ School of Computer Science 16 January 2012 C++ basics - Arithmetic operators Where possible, C++ will automatically convert among the basic types.

More information

softmc Servotronix Motion API Reference Manual Revision 1.0

softmc Servotronix Motion API Reference Manual Revision 1.0 Servotronix Motion API Reference Manual Revision 1.0 Revision History Document Revision Date 1.0 Nov. 2014 Initial release Copyright Notice Disclaimer Trademarks 2014 Servotronix Motion Control Ltd. All

More information

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above P.G.TRB - COMPUTER SCIENCE Total Marks : 50 Time : 30 Minutes 1. C was primarily developed as a a)systems programming language b) general purpose language c) data processing language d) none of the above

More information

Index COPYRIGHTED MATERIAL

Index COPYRIGHTED MATERIAL Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes

More information

Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies

Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies 1 Table of Contents 1 Getting Started... 3 Help Contents... 3 Overview... 3 2 Device Setup... 3 Device Setup... 3 Cable Diagram... 4 Modem

More information

InTouch Client Driver PTC Inc. All Rights Reserved.

InTouch Client Driver PTC Inc. All Rights Reserved. 2018 PTC Inc. All Rights Reserved. 2 Table of Contents 1 Table of Contents 2 4 Overview 4 External Dependencies 5 System Configuration 5 Driver Setup 6 Channel Properties General 6 Channel Properties Write

More information

Memory Based Driver PTC Inc. All Rights Reserved.

Memory Based Driver PTC Inc. All Rights Reserved. 2017 PTC Inc. All Rights Reserved. 2 Table of Contents Memory Based Driver 1 Table of Contents 2 Memory Based Driver 3 Overview 3 Channel Properties - General 3 Channel Properties - Write Optimizations

More information

Analog Devices Driver Kepware, Inc.

Analog Devices Driver Kepware, Inc. 2016 Kepware, Inc. 2 Table of Contents Table of Contents 2 Analog Devices Driver 3 Overview 3 Driver Setup 4 Device Setup 5 Data Format 6 Modem Setup 6 Data Types Description 7 Address Descriptions 8 6B11

More information

BASIC ELEMENTS OF A COMPUTER PROGRAM

BASIC ELEMENTS OF A COMPUTER PROGRAM BASIC ELEMENTS OF A COMPUTER PROGRAM CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING LOGO Contents 1 Identifier 2 3 Rules for naming and declaring data variables Basic data types 4 Arithmetic operators

More information

EMS CPC 104I. CAN-PC Interface. User Manual THOMAS WÜNSCHE. Documentation for plug-in board CPC-104I.

EMS CPC 104I. CAN-PC Interface. User Manual THOMAS WÜNSCHE. Documentation for plug-in board CPC-104I. Documentation for plug-in board CPC-104I. Document version: V1.2 Documentation date: January 17th, 2005 No part of this document or the software described herein may be reproduced in any form without prior

More information

1 GB IO INTRODUCTION 1

1 GB IO INTRODUCTION 1 1 GB IO INTRODUCTION 1 1. Introduction. This is GB IO, the input/output module used by all GraphBase routines to access data files. It doesn t actually do any output; but somehow input/output sounds like

More information

Appendix G: Writing Managed C++ Code for the.net Framework

Appendix G: Writing Managed C++ Code for the.net Framework Appendix G: Writing Managed C++ Code for the.net Framework What Is.NET?.NET is a powerful object-oriented computing platform designed by Microsoft. In addition to providing traditional software development

More information

Xpert / XLite GPRS232 Serial Interface Block USERS MANUAL. Part No Rev. 3.3 July 27, 2009

Xpert / XLite GPRS232 Serial Interface Block USERS MANUAL. Part No Rev. 3.3 July 27, 2009 Xpert / XLite GPRS232 Serial Interface Block USERS MANUAL Part No. 8800-1164 Rev. 3.3 July 27, 2009 Sutron Corporation 22400 Davis Drive Sterling, VA 20164 703.406.2800 www.sutron.com sales@sutron.com

More information

The type of all data used in a C (or C++) program must be specified

The type of all data used in a C (or C++) program must be specified The type of all data used in a C (or C++) program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values

More information

These are reserved words of the C language. For example int, float, if, else, for, while etc.

These are reserved words of the C language. For example int, float, if, else, for, while etc. Tokens in C Keywords These are reserved words of the C language. For example int, float, if, else, for, while etc. Identifiers An Identifier is a sequence of letters and digits, but must start with a letter.

More information

Programming in C. What is C?... What is C?

Programming in C. What is C?... What is C? C Programming in C UVic SEng 265 Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier, in 1969, Ritchie and Thompson developed the Unix operating system We will be focusing on a version

More information

Omron Toolbus Driver Help Kepware Technologies

Omron Toolbus Driver Help Kepware Technologies Omron Toolbus Driver Help 2012 Kepware Technologies 2 Table of Contents Table of Contents 2 4 Overview 4 Device Setup 5 Modem Setup 5 Data Types Description 6 CS1/CJ1 Address Descriptions 7 Error Descriptions

More information

Programming in C UVic SEng 265

Programming in C UVic SEng 265 Programming in C UVic SEng 265 Daniel M. German Department of Computer Science University of Victoria 1 SEng 265 dmgerman@uvic.ca C Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier,

More information

CANopen Library User Manual

CANopen Library User Manual CANopen Library User Manual V1.03 June 2010-1 - Table of Contents 1. Introduction... 1 1.1. CANopen architecture... 1 1.2. Object Dictionary setting... 3 1.2.1. Service Data Objects (SDO)... 4 1.2.2. Process

More information

COMP322 - Introduction to C++

COMP322 - Introduction to C++ COMP322 - Introduction to C++ Winter 2011 Lecture 2 - Language Basics Milena Scaccia School of Computer Science McGill University January 11, 2011 Course Web Tools Announcements, Lecture Notes, Assignments

More information

Computer System and programming in C

Computer System and programming in C 1 Basic Data Types Integral Types Integers are stored in various sizes. They can be signed or unsigned. Example Suppose an integer is represented by a byte (8 bits). Leftmost bit is sign bit. If the sign

More information

MOBY. 3964R Protocol under Windows NT 4.0/95. Table of Contents. Introduction 1. Installation 2. Parameterization 3. Programming Interface 4

MOBY. 3964R Protocol under Windows NT 4.0/95. Table of Contents. Introduction 1. Installation 2. Parameterization 3. Programming Interface 4 Table of Contents Introduction 1 Installation 2 MOBY 3964R Protocol under Windows NT 4.0/95 Parameterization 3 Programming Interface 4 User s Manual Release 06.99 afety Guidelines This manual contains

More information

C# INTRODUCTION. Object. Car. data. red. moves. action C# PROGRAMMERS GUIDE LESSON 1. CsGuideL1.doc. Date Started: May 8,2001

C# INTRODUCTION. Object. Car. data. red. moves. action C# PROGRAMMERS GUIDE LESSON 1. CsGuideL1.doc. Date Started: May 8,2001 1 C# PROGRAMMERS GUIDE LESSON 1 File: CsGuideL1.doc Date Started: May 8,2001 Last Update: Aug 10, 2006 Version 2003-2005 C# INTRODUCTION This manual introduces the C# programming language techniques and

More information

CMSC 202 Midterm Exam 1 Fall 2015

CMSC 202 Midterm Exam 1 Fall 2015 1. (15 points) There are six logic or syntax errors in the following program; find five of them. Circle each of the five errors you find and write the line number and correction in the space provided below.

More information

Host Communication Tester Instruction Manual

Host Communication Tester Instruction Manual InfoSOSA Series Host Communication Tester Instruction Manual InfoSOSA Version 2.1 Seedsware Corporation http://www.seedsware.co.jp/global/ 12A4A5-00083E-3 Introduction This document describes the operation

More information

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION EDIABAS Electronic Diagnostic Basic System BEST/2 LANGUAGE DESCRIPTION VERSION 6b Copyright BMW AG, created by Softing AG BEST2SPC.DOC CONTENTS CONTENTS...2 1. INTRODUCTION TO BEST/2...5 2. TEXT CONVENTIONS...6

More information

Programming in C. What is C?... What is C?

Programming in C. What is C?... What is C? Programming in C UVic SEng 265 C Developed by Brian Kernighan and Dennis Ritchie of Bell Labs Earlier, in 1969, Ritchie and Thompson developed the Unix operating system We will be focusing on a version

More information

Variables in C. Variables in C. What Are Variables in C? CMSC 104, Fall 2012 John Y. Park

Variables in C. Variables in C. What Are Variables in C? CMSC 104, Fall 2012 John Y. Park Variables in C CMSC 104, Fall 2012 John Y. Park 1 Variables in C Topics Naming Variables Declaring Variables Using Variables The Assignment Statement 2 What Are Variables in C? Variables in C have the

More information

Error Code. GO Software Pty Limited Map: 27 Tacoma Blvd, Pasadena SA 5042 ABN: ACN:

Error Code. GO Software Pty Limited Map: 27 Tacoma Blvd, Pasadena SA 5042 ABN: ACN: GO Software Pty Limited Map: 27 Tacoma Blvd, Pasadena SA 5042 Phn: 0403-063-991 Fax: none ABN: 54-008-044-906 ACN: 008-044-906 Eml: support@gosoftware.com.au Web: www.gosoftware.com.au Error Code GW-Basic

More information

PDF Document structure, that need for managing of PDF file. It uses in all functions from EMF2PDF SDK.

PDF Document structure, that need for managing of PDF file. It uses in all functions from EMF2PDF SDK. EMF2PDF SDK Pilot Structures struct pdf_document { PDFDocument4 *pdfdoc; }; PDF Document structure, that need for managing of PDF file. It uses in all functions from EMF2PDF SDK. typedef enum { conone

More information

C++ for Java Programmers

C++ for Java Programmers Basics all Finished! Everything we have covered so far: Lecture 5 Operators Variables Arrays Null Terminated Strings Structs Functions 1 2 45 mins of pure fun Introduction Today: Pointers Pointers Even

More information

Declaration Syntax. Declarations. Declarators. Declaration Specifiers. Declaration Examples. Declaration Examples. Declarators include:

Declaration Syntax. Declarations. Declarators. Declaration Specifiers. Declaration Examples. Declaration Examples. Declarators include: Declarations Based on slides from K. N. King Declaration Syntax General form of a declaration: declaration-specifiers declarators ; Declaration specifiers describe the properties of the variables or functions

More information

Differentiate Between Keywords and Identifiers

Differentiate Between Keywords and Identifiers History of C? Why we use C programming language Martin Richards developed a high-level computer language called BCPL in the year 1967. The intention was to develop a language for writing an operating system(os)

More information

JOSE LUIS JUAREZ VIVEROS com) has a. non-transferable license to use this Student Guide

JOSE LUIS JUAREZ VIVEROS com) has a. non-transferable license to use this Student Guide Module 3 Identifiers, Keywords, and Types Objectives Upon completion of this module, you should be able to: Use comments in a source program Distinguish between valid and invalid identifiers Recognize

More information

Operating Instructions Sartorius

Operating Instructions Sartorius Operating Instructions Sartorius Description of the Interface for GD, GE and TE Balances/Scales Contents Intended Use 2 Contents 2 Intended Use 2 Configuring the Interface Parameter Settings (Menu) 3 Data

More information

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4

int fnvgetconfig(handle h, UINT32 id, const void *cfg, size_t sz);... 4 RP-VL-UTIL-V1 Developer s Guide [ Contents ] 1. Introduction... 1 2. Building Environment... 1 3. Operating Environment... 1 4. Function Explanation... 2 4.1. Common API for Transmitting and Receiving...

More information

VueMetrix Firmware Uploader

VueMetrix Firmware Uploader VueMetrix Firmware Uploader Release 1.0 Date of this document: August 20. 2010 The Firmware Uploader is a set of C language programming tools that uploads a new version of firmware into any VueMetrix controller.

More information

Week 3 Lecture 2. Types Constants and Variables

Week 3 Lecture 2. Types Constants and Variables Lecture 2 Types Constants and Variables Types Computers store bits: strings of 0s and 1s Types define how bits are interpreted They can be integers (whole numbers): 1, 2, 3 They can be characters 'a',

More information

HP C/iX Reference Manual

HP C/iX Reference Manual HP C/iX Reference Manual HP 3000 MPE/iX Computer Systems Edition 3 Manufacturing Part Number: 31506-90011 E0499 U.S.A. April 1999 Notice The information contained in this document is subject to change

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

The following expression causes a divide by zero error:

The following expression causes a divide by zero error: Chapter 2 - Test Questions These test questions are true-false, fill in the blank, multiple choice, and free form questions that may require code. The multiple choice questions may have more than one correct

More information

3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space.

3. Except for strings, double quotes, identifiers, and keywords, C++ ignores all white space. Chapter 2: Problem Solving Using C++ TRUE/FALSE 1. Modular programs are easier to develop, correct, and modify than programs constructed in some other manner. ANS: T PTS: 1 REF: 45 2. One important requirement

More information

Topic 6: A Quick Intro To C

Topic 6: A Quick Intro To C Topic 6: A Quick Intro To C Assumption: All of you know Java. Much of C syntax is the same. Also: Many of you have used C or C++. Goal for this topic: you can write & run a simple C program basic functions

More information

C++ Programming: From Problem Analysis to Program Design, Third Edition

C++ Programming: From Problem Analysis to Program Design, Third Edition C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine

More information

USB-910H API DLL and Include File Reference Manual

USB-910H API DLL and Include File Reference Manual USB-910H API DLL and Include File Reference Manual APPLICABLE ADAPTERS This Application Note applies to the following Keterex products: KXUSB-910H. AN2101 Application Note INTRODUCTION The Keterex USB-910H

More information

The type of all data used in a C++ program must be specified

The type of all data used in a C++ program must be specified The type of all data used in a C++ program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values There are

More information

UNIVERSAL SERIAL INTERFACE

UNIVERSAL SERIAL INTERFACE UNIVERSAL SERIAL INTERFACE Coastal Environmental Systems Application Note ZENO_MANUAL_USI.DOC 4/21 UNIVERSAL SERIAL INTERFACE Overview The Universal Serial Interface lets you program your ZENO to communicate

More information

C Programming Language (Chapter 2 of K&R) Variables and Constants

C Programming Language (Chapter 2 of K&R) Variables and Constants C Programming Language (Chapter 2 of K&R) Types, Operators and Expressions Variables and Constants Basic objects manipulated by programs Declare before use: type var1, var2, int x, y, _X, x11, buffer;

More information

Fundamental of Programming (C)

Fundamental of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamental of Programming (C) Lecturer: Vahid Khodabakhshi Lecture 3 Constants, Variables, Data Types, And Operations Department of Computer Engineering

More information

gcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world

gcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world alun@debian:~$ gcc hello.c alun@debian:~$ a.out Hello, world alun@debian:~$ gcc -o hello hello.c alun@debian:~$ hello Hello, world alun@debian:~$ 1 A Quick guide to C for Networks and Operating Systems

More information

Today. o main function. o cout object. o Allocate space for data to be used in the program. o The data can be changed

Today. o main function. o cout object. o Allocate space for data to be used in the program. o The data can be changed CS 150 Introduction to Computer Science I Data Types Today Last we covered o main function o cout object o How data that is used by a program can be declared and stored Today we will o Investigate the

More information

Contents Lecture 3. C Preprocessor, Chapter 11 Declarations, Chapter 8. Jonas Skeppstedt Lecture / 44

Contents Lecture 3. C Preprocessor, Chapter 11 Declarations, Chapter 8. Jonas Skeppstedt Lecture / 44 Contents Lecture 3 C Preprocessor, Chapter 11 Declarations, Chapter 8 Jonas Skeppstedt (js@cs.lth.se) Lecture 3 2014 1 / 44 C Preprocessor Predefined macros Macro replacement Conditional inclusion Source

More information

MW100 Setting for Data Communications via Modbus Protocol. Connect to Ethernet. Enter Ethernet settings. Enter Server Settings

MW100 Setting for Data Communications via Modbus Protocol. Connect to Ethernet. Enter Ethernet settings. Enter Server Settings User s Manual Setting for Data Communications via Modbus Protocol Overview This is an explanation of the procedure for entering settings for Modbus communications with the DAQMASTER. This manual descries

More information

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017

C++\CLI. Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017 C++\CLI Jim Fawcett CSE687-OnLine Object Oriented Design Summer 2017 Comparison of Object Models Standard C++ Object Model All objects share a rich memory model: Static, stack, and heap Rich object life-time

More information

Object oriented programming. Instructor: Masoud Asghari Web page: Ch: 3

Object oriented programming. Instructor: Masoud Asghari Web page:   Ch: 3 Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning

More information

CSCE : Computer Systems Homework #1 Part 1 (25 pts) Due date: 1/24/19

CSCE : Computer Systems Homework #1 Part 1 (25 pts) Due date: 1/24/19 1. Purpose CSCE 313-200: Computer Systems Homework #1 Part 1 (25 pts) Due date: 1/24/19 Understand the Visual Studio environment, creation of projects, simple process debugging, search algorithms, and

More information

Model Viva Questions for Programming in C lab

Model Viva Questions for Programming in C lab Model Viva Questions for Programming in C lab Title of the Practical: Assignment to prepare general algorithms and flow chart. Q1: What is a flowchart? A1: A flowchart is a diagram that shows a continuous

More information

Microprocessors & Assembly Language Lab 1 (Introduction to 8086 Programming)

Microprocessors & Assembly Language Lab 1 (Introduction to 8086 Programming) Microprocessors & Assembly Language Lab 1 (Introduction to 8086 Programming) Learning any imperative programming language involves mastering a number of common concepts: Variables: declaration/definition

More information