( )*!+,!)*-!.*, /0!*1(02)3 40*45!6,7! 45!(!18*9 :* -*1) :*() ABC DEFGH DEFG 98* :* J/0K4!6+)))*/!6/1!0,L5+, :*)!! MABC DEFGN!!

Size: px
Start display at page:

Download "( )*!+,!)*-!.*, /0!*1(02)3 40*45!6,7! 45!(!18*9 :* -*1) :*() ABC DEFGH DEFG 98* :* J/0K4!6+)))*/!6/1!0,L5+, :*)!! MABC DEFGN!!"

Transcription

1 !"#$%&!!"##$%&' ( )*!+,!)*-!.*, /0!*1(02)3 40*45!6,7! 45!(!18*9 :* ;<=>?@ -*1) :*() ABC DEFGH DF@IG<F DEFG 98* :* J/0K4!6+)))*/!6/1!0,L5+, :*)!! MABC DEFGN!!) '()'*)+,-.!! /, 1!,! (-1!)*!! /(,7)*! )*1)(9040*! )*/0K : /0K4)*ABCDEFG4!60*! /0(!8*O1P:()!! /*QRBS1020.*)*3/*QRBS2!,T( U,T( :!.():202! )*)*31),7 ). (10! **-1!)*!! M19)*!(0)N(V W@IXEYZ[D +)20!! ( *!!20/+( ()* :!20*/0!.( +0(0-.20! /, 1! 1(10 +(0-* W@IXEYZ\]UC^U\] S^H W@IXEYZ_``Ù[D :W@IXEYZ_`à-.+(0!/8-!M.+(0 1)!/8-)-N (Kb!,T( (0b,!!!)!): 0*.! 8 )+,-

2 c#,t(1de,7:/*! +(01!) ABCcH ABC_H ABCa : ABCf _#))dt!maeig@hifjg@ein/*,t( a#, )0*! f#!.()dt! k#.! )/0K!1de1! /0K! 1//0K*1de 1! )*/0K!* l#.!,t(1m(mnjix=<n/*,t(+0!/--*l-:/,7, 1! (0;<=>?@!6/,70(, 1! +(0 (*- M4/0/-k+, +)+(0)*/*-*(N procedure TFormc#ButtoncClick(Ser: TObject); var hcom1othandle; ccom1otcommconfig; scom1odword; { Step 1. } hcomcopcreatefile('com1', GENERIC_READ or GENERIC_WRITE,0, NIL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,0); if (GetLastError() = ERROR_ALREADY_EXISTS) then MessageBox(handle,'CREATE_ALWAYS or OPEN_ALWAYS', 'Error', MB_OK); if (GetLastError() = INVALID_HANDLE_VALUE) then MessageBox(handle,'CINVALID_HANDLE_VALUE', 'Error', MB_OK); { Step 2. Read the COM1 config. } if hcom1 <> 0 then if GetCommConfig(hCom1, ccom1, scom1)=true then msg.items.add('::: Default setting :::'); msg.items.add('comc version = '+IntToStr(cComc#wVersion)); msg.items.add('baud rate = '+IntToStr(cComc#dcb.BaudRate)); msg.items.add('byte size = '+IntToStr(cComc#dcb.ByteSize)); if (ccom1#dcb.parity = 0)then msg.items.add('parity bit = no') else if (ccom1#dcb.parity = 1)then msg.items.add('parity bit = odd') else if (ccom1#dcb.parity = 2)then msg.items.add('parity bit = even') /

3 else if (ccom1#dcb.parity = 3) then msg.items.add('parity bit = mark') else if (ccom1#dcb.parity = 4)then msg.items.add('parity bit = space') // Parity bit if (ccom1#dcb.stopbits = 0)then msg.items.add('stop bit = 1') else if (ccom1#dcb.stopbits = 1)then msg.items.add('stop bits = 1.5') else if (ccom1#dcb.stopbits = 2)then msg.items.add('stop bits = 2') // StopBits // GetCommSetting { Step 3. } ccom1#dcb.baudrate := 9200; // 9200 bps ccom1#dcb.bytesize := 8; // data 8 bits ccom1#dcb.parity := 0; // no parity bit ccom1#dcb.stopbits := 0; // 1 stop bit { Step 4. } SetCommConfig(hCom1, ccom1, scom1n; if GetCommConfig(hCom1, ccom1, scom1)=true then msg.items.add('::: My setting :::'); msg.items.add('comc version = '+IntToStr(cComc#wVersion)); msg.items.add('baud rate = '+IntToStr(cComc#dcb.BaudRate)); msg.items.add('byte size = '+IntToStr(cComc#dcb.ByteSize)); if (ccom1#dcb.parity = 0)then msg.items.add('parity bit = no'); else if (ccom1#dcb.parity = 1)then msg.items.add('parity bit = odd'); else if (ccom1#dcb.parity = 2) then msg.items.add('parity bit = even'); else if (ccom1#dcb.parity = 3)then msg.items.add('parity bit = mark'); else if (ccom1#dcb.parity = 4)then msg.items.add('parity bit = space'); // Parity bit if (ccom1#dcb.stopbits = 0)then msg.items.add('stop bit = 1'); else if (ccom1#dcb.stopbits = 1)then msg.items.add('stop bits = 1.5'); else if (ccom1#dcb.stopbits = 2)then 0

4 msg.items.add('stop bits // StopBits // GetCommSetting = 2'); // hcom1 <> 0 { Step 6. } if hcom1 <> 0 then CloseHandle(hComcN; 6).,70* K0! )1( +(0!*:;<=>?@^>@ZEX< R( OP6(K 2* -* 0*! ( 62!.*10*8!O-*(20/02!)10)q+ /8-(r- B><ISEiFs< 20 ((0(/* /8!O:/0210 q/8-2),7/** :,+,)/ q!6+(0m19+(0 (2! q(0),74k08*-.b><iseifs<n 4!6+)!b:(100(!620+(00*+)+(00*)*4/04!-!.20 ( M0(0N!6*0(K###110!6! B><I ZEiFs< )*( + ()!! 20!;<=>?@1AttQi@=X<F4!6:!8* :ADEFG ::63:AEuDEFGv@wFjFxy<FZ@EI_#lfgEF;<=>?@aHfHkHlHzjIXAtt Qi@=X<F ah fh kh lp8*q(;<{ji AFI@=j1vjFZ;xwXj?=.) ! ;<=>?@z+(0(0 + -K)21des>EFGa#< <M/(z``!)!+((W@I}~}N4 1! /0*2d( f:< ju>=<z!6)*, 1! H?<=>!61de):H =Esj=<.!6.b)*OMO9###+)O+ N 1ZEiFs<Z!60(0V 1

5 ,3456)'*)78!):201de s>efga#< <(0! XEiw=< :1de10:! *!-/0+,2d( : SEiFs<Z -!60*(K) ;<=>?@ )+90,7 ) z :!/*4!620 XEiw=< =@s 1de:)ADEFGv@wz#X> :!1de **10 0)*:(* K,c K,c0)* **/*A>EFGv@wz#X> 20! AEu>@=< 10(0! RIZGj= *!-,T(;<=>?@/-)+,20 XEiw=< s=@s 1de;ZhIADEFGz#X> 10+(00: K,_ 20.! AEu>@=< 1 RIZGj=:/-!)0-*!-20,T(, 1! ;<=>?@ 2

6 K,_0)* **/*;ZhIADEFGz#X> /-)+,-.5! +, 1! 0*20! 1de )+,-2! +0/* :0*(!1de(*!)+,+02d( vrq/* 020*+ ADEFG10 4 CPort.dcu CPortAbout.dcu CPortCtl.dcu CPortEsc.dcu CPortImg.res CPortSetup.dcu CPortSetup.dfm CPortTrmSet.dcu CPortTrmSet.dfm gnugettext.dcu ),:+8;<5 )*, 1! -: **)CEX <ZG#X>FP8*K)2d( ^ ju>=<z;<=>?@ /*1de20(( 2)*-,7! /, 1! 1(P MAEIZE=< CEX<N :0!2:/*(!O 0(, 1! /*)*-,7(*- program ModTest; {$APPTYPE CONSOLE} uses SysUtils, CPort, Windows, SyncObjs; 9

7 var ComPort: TComPort; Events: TComEvents; Answer, Data: string; Step: Integer; Event: TEvent; function CtrlHandler(CtrlType: LongWord): Boolean; Event.SetEvent; Result := True; Event := TEvent.Create(nil, True, False, ''); True); try ComPort := TComPort.Create(nil); try if ParamCount > 0 then ComPort.Port := ParamStr(1) else ComPort.Port := 'COM1'; ComPort.Events := []; ComPort.FlowControl.ControlDTR := dtrenable; ComPort.FlowControl.ControlRTS := rtsenable; ComPort.Open; // open port ComPort.WriteStr('AT'#13#10); // s test command Answer := ''; Step := 0; repeat Events := [evrxchar]; // wait for characters ComPort.WaitForEvent(Events, Event.Handle, 5000); if evrxchar in Events then ComPort.ReadStr(Data, ComPort.InputCount); Answer := Answer + Data; if Pos('OK', Answer) > 0 then Break; Inc(Step) until (Events = []) or (Step = 20); if Pos('OK', Answer) > 0 then WriteLn('Modem found on ' + ComPort.Port) else WriteLn('Modem NOT found on ' + ComPort.Port); finally ComPort.Free; except on E: Exception do WriteLn('Error: ' + E.Message); Event.Free;. =

8 , 1! -.!,T( ABCc :,T( /0 )*,7!, 1! ) Modtest COM2 *!-.! *20,T( MComport.OpenN 1.! )*/0K+,,7 ~ ) AT #13#10 P8*,7! * (6:20(6)* /0!! 10 /0K)!!)! M^y<IGZN,7))* :. _` (21) -!!!! /0K, k1 90/0K4)* (if evrxchar in Events then ) * )/0. (0.* Comport.ReadStr!621, Data,7.ComPort.InputCount!O :!!! )/0) Bƒ :+)901(*)(6 1)90+)!61(*/0)+)(6) :*/* exception )*.) tryh finally1except-902 )+)/02*0**:! /, 1! (0 ;<=>?@)10) ),:+8;<5/ )**:C@I@ <Fu#X>F )*-!!(4((6!0 :* 1de ***+)#}^SP8*98*10)+)1de(*!);<=>?@!6}<sF<jG<20 K)10 0/*, 1! -,7(* K,a6)(0!/*+ ADEFG ).,70*20*nx><F <Fu@Ij=!6+(0 * 20!6*. /, 1! +(0!1:*!)*-b10)/0*4/!,7! 0)! *(K ), 1! *+ 0*902 :-;<=>?@!)!6! 20+)!1)90*+)8!O!)102 0)!6/1.)( K*10*:;<=>?@8!O)* **!+(010 >

9 @< *)4K0)**6) !+(0)*+ 1*)* q,, *,7/* +(0. 6 (00*//* ^ 1!! 4,7)*K**20!42! /!)+,1// 1: )***20!.*24 0*,7)* :* /!0*) P8* *310 :* / 4,!!!!+0101)4!64((K) :,!!1de0VK5 +,!m ((!M/(,e*!)*(10 +)*m0n/2)!6+) 1)2) 6:+!.+ 3 *!6010 Mm)33 N 20b!,7!610! (r!6,7)*1m!)4( (/b 1)4)!!2!!!6!+,)!m)33N /20!!! /, 1! 4)4/+,1!0,L5)!) 9(+,,7(:0 4/20,7 :*,7 200! /(: -* 4?

10 K,a0, 1! <Fu A

REAL TIME OPERATING SYSTEM PROGRAMMING-II: II: Windows CE, OSEK and Real time Linux. Lesson-9: WCE Serial Communication, Network, device-to

REAL TIME OPERATING SYSTEM PROGRAMMING-II: II: Windows CE, OSEK and Real time Linux. Lesson-9: WCE Serial Communication, Network, device-to REAL TIME OPERATING SYSTEM PROGRAMMING-II: II: Windows CE, OSEK and Real time Linux Lesson-9: WCE Serial Communication, Network, device-to to-device socket and Communication Functions 1 1. Windows CE Serial

More information

CC Pilot XS. Backlight interface description

CC Pilot XS. Backlight interface description CC Pilot XS Backlight interface description Table of Contents Introduction... 3 Purpose... 3 References... 3 History... 3 Backlight device interface... 4 Summary of IOCTLs... 4 IOCTL_BACKLIGHT_GET_RESOLUTION...

More information

&'()*+,-./0&(1& $ :;

&'()*+,-./0&(1& $ :; &'()*+,-./0&(1& $234567859:; raek@etteam.com %!"# $%# &#$ ' (!) * %#+,-./0$1"# 22(3 45416 (! 57 5 71 " *7 *7 ( 89:9-,- 8;:< 16 *! =)5> 7# &$%# 45?"16 * @! (! 5 *) 8,:A;B9- C;D.E

More information

Controlling the motors: DSPIC 33F RS232

Controlling the motors: DSPIC 33F RS232 LOW LEVEL PROTOCOLE Single DSPIC 33F using RS232 To control the chassis you need to send via RS232 at 19200 bauds some special char that will be received by the DSPIC 33F that controls the motors. To get

More information

Files, Registry and Databases for storing data

Files, Registry and Databases for storing data REAL TIME OPERATING SYSTEM PROGRAMMING-II: II: Windows CE, OSEK and Real time Linux Lesson-4: Files, Registry and Databases for storing data 1 1. WCE Files 2 File Creation function arguments CreateFile

More information

Configuring Terminal Settings and Sessions

Configuring Terminal Settings and Sessions This chapter contains the following sections: Information About Terminal Settings and Sessions, page 1 Configuring the Console Port, page 3 Configuring the COM1 Port, page 5 Configuring Virtual Terminals,

More information

Part 1 The first steps

Part 1 The first steps course DELPHI FOR ELECTRONIC ENGINEERS Part 1 The first steps Detlef Overbeek & Anton Vogelaar This article is the first part in a series about programming in Delphi, which concentrates on the practical

More information

LAMPIRAN A. Listing Program. Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6

LAMPIRAN A. Listing Program. Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6 A Listing Program Program pada Borland Delphi 7.0 A-1 Program pada CodeVisionAVR C Compiler A-6 LISTING PROGRAM BORLAND DELPHI 7.0 Inisialisasi ==========================================================

More information

Pass-Through Function

Pass-Through Function Pass-Through Function Chapter 29 Pass-through Function... 2 29.1 Ethernet Mode... 3 29.1.1 How to install virtual serial port driver... 3 29.1.2 How to Change the Virtual Serial Port... 4 29.1.3 How to

More information

Configuring Terminal Settings and Sessions

Configuring Terminal Settings and Sessions This chapter describes how to manage the terminal settings and sessions on a Cisco NX-OS device. This chapter includes the following sections: Information About Terminal Settings and Sessions, page 1 Licensing

More information

Vhand 2.0 SDK Manual. DGTech Engineering Solutions

Vhand 2.0 SDK Manual. DGTech Engineering Solutions Vhand 2.0 SDK Manual DGTech Engineering Solutions www.dg-tech.it Release 1.1 October 2007 Table of Contents Introduction...3 Class Project...5 Global project manipulation...6 int LoadProject()...6 int

More information

HUMAN COMPUTER INTERFACE

HUMAN COMPUTER INTERFACE HUMAN COMPUTER INTERFACE Human Computer Interface The Changing Face of Communication Until the recent process of computerisation began, the mode of communication had always been a human to human interface.

More information

& WizChan. Driver Documentation

& WizChan. Driver Documentation DYNAMIC ENGINEERING 150 DuBois St. Suite C, Santa Cruz, CA 95060 831-457-8891 Fax 831-457-4793 http://www.dyneng.com sales@dyneng.com Est. 1988 PmcWiz & WizChan Driver Documentation Win32 Driver Model

More information

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif. 95005 831-336-8891 Fax 831-336-3840 http://www.dyneng.com sales@dyneng.com Est. 1988 PB3Hw1 Driver Documentation Win32 Driver Model Revision A Corresponding

More information

Serial C Programming 03/11/2008. Lecture 15 1

Serial C Programming 03/11/2008. Lecture 15 1 2 #include ! int main(int argc, char* argv[])! // type definitions! // open serial port as COMXX (COM1 if built-in)! // establish whether 5 or 7 bits through argv[1],

More information

Delphi Generics.Collections

Delphi Generics.Collections Delphi Generics.Collections Copyright(C) 2008 Embarcadero Technologies, Inc. All Rights Reserved. Delphi Generics.Collections Table of Contents Generics.Collections.TCollectionNotification 1 Generics.Collections.TCollectionNotifyEvent

More information

GCE AS and A Level. Computing. AS exams 2009 onwards A2 exams 2010 onwards. Unit 1: Approved specimen question paper. Version 1.1

GCE AS and A Level. Computing. AS exams 2009 onwards A2 exams 2010 onwards. Unit 1: Approved specimen question paper. Version 1.1 GCE AS and A Level Computing AS exams 2009 onwards A2 exams 2010 onwards Unit 1: Approved specimen question paper Version 1.1 Version 1.1 General Certificate of Education Advanced Subsidiary Specimen Paper

More information

SPDM id 201 Programming Guide

SPDM id 201 Programming Guide SPDM id 201 Programming Guide Version 4.0 November 2008 id Quantique Ch. de la Marbrerie 3 CH-1227 Carouge Switzerland sales@idquantique.com www.idquantique.com Copyright 2003, 2004, 2005, 2006, 2007,

More information

unit SrTapi; v1.0 (9/23/2002): The first release of this module. interface uses Classes, SysUtils, Contnrs, Windows, Tapi; {$INCLUDE TAPI.

unit SrTapi; v1.0 (9/23/2002): The first release of this module. interface uses Classes, SysUtils, Contnrs, Windows, Tapi; {$INCLUDE TAPI. {*******************************************************} { SoftReal TAPI Components (Delphi 5) } { Copyright (c) 2002 SoftReal Kft. } { All rights reserved. } { Version: v1.1 } { Compiler: Delphi 5 }

More information

SETcc Set Byte on Condition

SETcc Set Byte on Condition Leg 0F 97 SETA r/m8 M Valid Valid Set byte if above (CF=0 and ZF=0). REX + 0F 97 SETA r/m8* M Valid N.E. Set byte if above (CF=0 and ZF=0). 0F 93 SETAE r/m8 M Valid Valid Set byte if above or equal (CF=0).

More information

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif. 95005 831-336-8891 Fax 831-336-3840 http://www.dyneng.com sales@dyneng.com Est. 1988 PB3Oseh Driver Documentation Win32 Driver Model Revision A Corresponding

More information

3. Conditional Execution

3. Conditional Execution 3. Conditional Execution Topics: Boolean values Relational operators if statements The Boolean type Motivation Problem: Assign positive float values to variables a and b and print the values a**b and b**a.

More information

CS302: Self Check Quiz 2

CS302: Self Check Quiz 2 CS302: Self Check Quiz 2 name: Part I True or False For these questions, is the statement true or false? Assume the statements are about the Java programming language. 1.) The result of an expression with

More information

Selection Statement ( if )

Selection Statement ( if ) Islamic University Of Gaza Faculty of Engineering Computer Engineering Department Lab 4 Selection Statement ( if ) Eng. Ibraheem Lubbad October 10, 2016 In this lab we will constructs program that allow

More information

for more: efesotomasyon - sanch inverter S2000 is RS-232C built-in. It is available for RS-485 when WI-K2 interface card is added.

for more: efesotomasyon - sanch inverter S2000 is RS-232C built-in. It is available for RS-485 when WI-K2 interface card is added. COMMAND FORMAT 1.Instruction S2000 can be connected with PLC and PC performing Serial Communication by using MODBUS protocol at 1:1 or 1:N (add a SI-K2 interface card, N maximum up to 31) trams mission

More information

omit A ] omit E, + (superlinear) A 1:17 Vs. 17 found only in mss DG 1:25 ] omit BDEFG ABDEFG ] omit D

omit A ] omit E, + (superlinear) A 1:17 Vs. 17 found only in mss DG 1:25 ] omit BDEFG ABDEFG ] omit D 1:1 ] omit C 1:2 ] DEFG ] BEF 1:3 ] BDEFG 2 ] EF 1:4 ] ABDG ] ABDG ] ABDG ] omit A 1:5 ] omit A ] omit ABDEFG ] ABCDEFG 1:6 1,2 ] + A ] ABCDG ] F 1:8 1,2 ] B 2 ] EF ] EF 1:9 1 ] + ADG 1:10 1 ] omit EF

More information

DYNAMIC ENGINEERING 150 DuBois, Suite C, Santa Cruz, CA Fax Est

DYNAMIC ENGINEERING 150 DuBois, Suite C, Santa Cruz, CA Fax Est DYNAMIC ENGINEERING 150 DuBois, Suite C, Santa Cruz, CA 95060 831-457-8891 Fax 831-457-4793 http://www.dyneng.com sales@dyneng.com Est. 1988 IpPlr Driver Documentation Win32 Driver Model Revision B Corresponding

More information

uvi ... Universal Validator Interface Software Developers Kit Revision /29/04 Happ Controls

uvi ... Universal Validator Interface Software Developers Kit Revision /29/04 Happ Controls Happ Controls 106 Garlisch Drive Elk Grove, IL 60007 Tel: 888-289-4277 / 847-593-6130 Fax: 847-593-6137 www.happcontrols.com uvi Universal Validator Interface Software Developers Kit.......... Revision

More information

Lecture 11: while loops CS1068+ Introductory Programming in Python. for loop revisited. while loop. Summary. Dr Kieran T. Herley

Lecture 11: while loops CS1068+ Introductory Programming in Python. for loop revisited. while loop. Summary. Dr Kieran T. Herley Lecture 11: while loops CS1068+ Introductory Programming in Python Dr Kieran T. Herley Python s while loop. Summary Department of Computer Science University College Cork 2017-2018 KH (24/10/17) Lecture

More information

In Delphi script, when values are assigned to variables, the colon-equal operator is used; :=

In Delphi script, when values are assigned to variables, the colon-equal operator is used; := Statements and Operators Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: DelphiScript DelphiScript Statements A statement in DelphiScript is considered as simple when

More information

This document hosted by: 10. OPTIONS

This document hosted by:  10. OPTIONS This document hosted by: www.oldwillknottscales.com 10. OPTIONS The following options are available for the FG series: OP-23 (FG-23) RS-232C serial interface OP-24 (FG-24) RS-232C serial interface and

More information

DYNAMIC ENGINEERING 150 DuBois St., Suite C Santa Cruz, CA (831) Fax (831) Est.

DYNAMIC ENGINEERING 150 DuBois St., Suite C Santa Cruz, CA (831) Fax (831) Est. DYNAMIC ENGINEERING 150 DuBois St., Suite C Santa Cruz, CA 95060 (831) 457-8891 Fax (831) 457-4793 http://www.dyneng.com sales@dyneng.com Est. 1988 DartBase & DartChan Driver Documentation Win32 Driver

More information

1 Short Answer (15 Points Each)

1 Short Answer (15 Points Each) Name: Write all of your responses on these exam pages. If you need extra space please use the backs of the pages. 1 Short Answer (15 Points Each) 1. Write the following Java declarations, (a) A double

More information

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif. 95005 831-336-8891 Fax 831-336-3840 http://www.dyneng.com sales@dyneng.com Est. 1988 PcBis3 & Bis3Chan Driver Documentation Win32 Driver Model Revision

More information

3. Conditional Execution

3. Conditional Execution 3. Conditional Execution Topics: Boolean values Relational operators if statements The Boolean type Motivation Problem: Assign positive float values to variables a and b and print the values a**b and b**a.

More information

Software Verification : Introduction

Software Verification : Introduction Software Verification : Introduction Ranjit Jhala, UC San Diego April 4, 2013 What is Algorithmic Verification? Algorithms, Techniques and Tools to ensure that Programs Don t Have Bugs (What does that

More information

Assembly Language LAB

Assembly Language LAB Assembly Language LAB Islamic University Gaza Engineering Faculty Department of Computer Engineering 2013 ECOM 2125: Assembly Language LAB Created by: Eng. Ahmed M. Ayash Modified and Presented By: Eihab

More information

YOLOP Language Reference Manual

YOLOP Language Reference Manual YOLOP Language Reference Manual Sasha McIntosh, Jonathan Liu & Lisa Li sam2270, jl3516 and ll2768 1. Introduction YOLOP (Your Octothorpean Language for Optical Processing) is an image manipulation language

More information

Variable initialization and assignment

Variable initialization and assignment Variable initialization and assignment int variable_name; float variable_name; double variable_name; String variable_name; boolean variable_name; Initialize integer variable Initialize floating point variable

More information

Objectives. After completing this module, you will be able to. Create new parameters. CODESYS_04R0101. page 2

Objectives. After completing this module, you will be able to. Create new parameters. CODESYS_04R0101. page 2 DCS800 CODESYS_04R0101. page 1 DC Drives CoDeSys Exercise User Parameters Note: This module is an exercise without a speaker! Objectives After completing this module, you will be able to Create new parameters

More information

4 Is this model available for special primary current and special primary voltage?

4 Is this model available for special primary current and special primary voltage? Category: Sales 1 Is it possible to exchange the backlights? The backlights are LED, no need to exchange. Fukuyama Works, Mitsubishi Electric Corporation March, 2018 2 Which standards does this model support?

More information

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA 95060 (831) 457-8891 Fax (831) 457-4793 http://www.dyneng.com sales@dyneng.com Est. 1988 PBBae Driver Documentation Win32 Driver Model Revision A

More information

% echo $SHELL /usr/local/bin/bash. % sh $

% echo $SHELL /usr/local/bin/bash. % sh $ % echo $SHELL /usr/local/bin/bash % sh $ #!/bin/sh chmod +x test.sh./test.sh my=test export my set my=test setenv my test $ export PAGER=/usr/bin/less % setenv PAGER /usr/bin/less $ current_month=`date

More information

Table Of Contents. Rev. 1.0 Page 2

Table Of Contents. Rev. 1.0 Page 2 Table Of Contents Copyrights And Warranties... 1 Scope... 1 Table Of Contents... 2 1 System Requirements... 3 2 Extent of Supply... 3 3 Driver Installation... 3 4 Driver Deinstallation... 4 5 Customizing

More information

CIS October 16, 2018

CIS October 16, 2018 CIS 1068 October 16, 2018 administrative stuff @@@ ADD ME @@@ Midterm Remember, the material is cumulative You ll see this stuff again Legal Identifiers c00lg33k is a legal identifier Legal Identifiers

More information

Hamming Codes. s 0 s 1 s 2 Error bit No error has occurred c c d3 [E1] c0. Topics in Computer Mathematics

Hamming Codes. s 0 s 1 s 2 Error bit No error has occurred c c d3 [E1] c0. Topics in Computer Mathematics Hamming Codes Hamming codes belong to the class of codes known as Linear Block Codes. We will discuss the generation of single error correction Hamming codes and give several mathematical descriptions

More information

Java. Programming: Chapter Objectives. Why Is Repetition Needed? Chapter 5: Control Structures II. Program Design Including Data Structures

Java. Programming: Chapter Objectives. Why Is Repetition Needed? Chapter 5: Control Structures II. Program Design Including Data Structures Chapter 5: Control Structures II Java Programming: Program Design Including Data Structures Chapter Objectives Learn about repetition (looping) control structures Explore how to construct and use count-controlled,

More information

Name Roll No. Section

Name Roll No. Section Indian Institute of Technology, Kharagpur Computer Science and Engineering Department Class Test I, Autumn 2012-13 Programming & Data Structure (CS 11002) Full marks: 30 Feb 7, 2013 Time: 60 mins. Name

More information

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est.

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est. DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA 95060 (831) 457-8891 Fax (831) 457-4793 http://www.dyneng.com sales@dyneng.com Est. 1988 IpCan, BCan & PCan Driver Documentation Win32 Driver Model

More information

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif. 95005 831-336-8891 Fax 831-336-3840 http://www.dyneng.com sales@dyneng.com Est. 1988 PmcB2B Driver Documentation Win32 Driver Model Revision A Corresponding

More information

Homework 3 COSE212, Fall 2018

Homework 3 COSE212, Fall 2018 Homework 3 COSE212, Fall 2018 Hakjoo Oh Due: 10/28, 24:00 Problem 1 (100pts) Let us design and implement a programming language called ML. ML is a small yet Turing-complete functional language that supports

More information

(c) ((!(a && b)) == (!a!b)) TRUE / FALSE. (f) ((!(a b)) == (!a &&!b)) TRUE / FALSE. (g) (!(!a) && (c-d > 0) && (b!b))

(c) ((!(a && b)) == (!a!b)) TRUE / FALSE. (f) ((!(a b)) == (!a &&!b)) TRUE / FALSE. (g) (!(!a) && (c-d > 0) && (b!b)) ComS 207: Programming I Midterm 2, Tue. Mar 21, 2006 Student Name: Student ID Number: Recitation Section: 1. True/False Questions (10 x 1p each = 10p) Determine the value of each boolean expression given

More information

Decision Making in C

Decision Making in C Decision Making in C Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed

More information

Department of Computer Science Purdue University, West Lafayette

Department of Computer Science Purdue University, West Lafayette Department of Computer Science Purdue University, West Lafayette Fall 2011: CS 180 Problem Solving and OO Programming Exam 1 Solutions Q 1 Answer the questions below assuming that binary integers are represented

More information

1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST. 1. A computer program is:

1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST. 1. A computer program is: 1996 ILLINOIS JETS TEAMS DISTRICT COMPUTER FUNDAMENTALS TEST 1. A computer program is: a. a sequence of binary machine instructions b. a sequence of operations to carry out a defined task c. a set of computer

More information

Issue with Implementing PrimeSieve() in Go

Issue with Implementing PrimeSieve() in Go Slices 02-201 Issue with Implementing PrimeSieve() in Go func PrimeSieve(n int) [n+1]bool { var iscomposite [n+1]bool //ERROR! biggestprime := 2 for biggestprime < n for i:=2; i

More information

Lecture 7. Search. Search. Foundations of Constraint Programming

Lecture 7. Search. Search. Foundations of Constraint Programming Lecture 7 1 Outline Introduce search trees Discuss various types of labeling trees, in particular trees for - forward checking - partial look ahead - maintaining arc consistency (MAC) Discuss various search

More information

WEO. Technical documentation

WEO. Technical documentation WEO Technical documentation Table of Contents 1 INTRODUCTION..... 4 2 HARDWARE.. 5 2.1 Display..... 5 2.2 Processor.. 5 2.3 Volatile memory.. 5 2.4 Non volatile memory... 6 2.5 Wifi 6 2.6 Power.... 6 2.7

More information

Powerful serial port utility in Unity

Powerful serial port utility in Unity Powerful serial port utility in Unity for Android, Linux, Mac OS, and Windows https://portutility.com/ Version 2.0 Released November 8, 2018 Contents 1 Introduction 1.1 Features 1.2 Free Version 2 System

More information

LAMPIRAN Listing Program

LAMPIRAN Listing Program LAMPIRAN Listing Program unit umain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, StdCtrls, ExtCtrls, ExtDlgs, DCPcrypt2, DCPrc4, DCPsha1,

More information

RS-232 Port Configuration Mode Commands

RS-232 Port Configuration Mode Commands The RS-232 Port Configuration Mode is used to manage the RS-232 ports on the SPIO cards. Command Modes Exec > Global Configuration > RS-232 Port Configuration configure > port rs232 slot_number/port_number

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

University of Massachusetts Amherst, Electrical and Computer Engineering

University of Massachusetts Amherst, Electrical and Computer Engineering University of Massachusetts Amherst, Electrical and Computer Engineering ECE 122 Midterm Exam 1 Makeup Answer key March 2, 2018 Instructions: Closed book, Calculators allowed; Duration:120 minutes; Write

More information

Welcome to the Bash Workshop!

Welcome to the Bash Workshop! Welcome to the Bash Workshop! If you prefer to work on your own, already know programming or are confident in your abilities, please sit in the back. If you prefer guided exercises, are completely new

More information

3/12/2018. Structures. Programming in C++ Sequential Branching Repeating. Loops (Repetition)

3/12/2018. Structures. Programming in C++ Sequential Branching Repeating. Loops (Repetition) Structures Programming in C++ Sequential Branching Repeating Loops (Repetition) 2 1 Loops Repetition is referred to the ability of repeating a statement or a set of statements as many times this is necessary.

More information

Architecture of 8086 Microprocessor

Architecture of 8086 Microprocessor MCQ on Microprocessor and Interfacing Technique S.E.Compure (Sem-II) UNIT 1 Architecture of 8086 Microprocessor 1 marks Questions 1. Which is first microprocessor? (a) 8008 (b) 8085 (c) 8086 (d) 4004 2.

More information

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif. 95005 831-336-8891 Fax 831-336-3840 http://www.dyneng.com sales@dyneng.com Est. 1988 PmcPario Driver Documentation Win32 Driver Model Revision A Corresponding

More information

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS THE STACK

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS THE STACK Contents: Definition and Examples Representing stacks in C Example: infix, prefix, and postfix Exercises THE STACK Definition and Examples A stack is an ordered collection of items into which new items

More information

Review for Test 1 (Chapter 1-5)

Review for Test 1 (Chapter 1-5) Review for Test 1 (Chapter 1-5) 1. Introduction to Computers, Programs, and Java a) What is a computer? b) What is a computer program? c) A bit is a binary digit 0 or 1. A byte is a sequence of 8 bits.

More information

Introduction to Computer Architecture

Introduction to Computer Architecture Boolean Operators The Boolean operators AND and OR are binary infix operators (that is, they take two arguments, and the operator appears between them.) A AND B D OR E We will form Boolean Functions of

More information

Towards Verified Java Code Generation from Concurrent State Machines. Luc Engelen

Towards Verified Java Code Generation from Concurrent State Machines. Luc Engelen Towards Verified Java Code Generation from Concurrent State Machines Dan Zhang Dragan Bosnacki Mark van den Brand Luc Engelen Cornelis Huizing Ruurd Kuiper Anton Wijs Outline Setting the scope A model

More information

Flow Control: Branches and loops

Flow Control: Branches and loops Flow Control: Branches and loops In this context flow control refers to controlling the flow of the execution of your program that is, which instructions will get carried out and in what order. In the

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 2 : C# Language Basics Lecture Contents 2 The C# language First program Variables and constants Input/output Expressions and casting

More information

Logic Gates and Boolean Algebra ENT263

Logic Gates and Boolean Algebra ENT263 Logic Gates and Boolean Algebra ENT263 Logic Gates and Boolean Algebra Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels make

More information

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Assembly Language Lab # 2 Assembly Language Fundamentals

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Assembly Language Lab # 2 Assembly Language Fundamentals Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2011 Assembly Language Lab # 2 Assembly Language Fundamentals Assembly Language Lab # 2 Assembly Language Fundamentals

More information

CSE 142, Summer 2013 Midterm Exam, Friday, July 26, 2013

CSE 142, Summer 2013 Midterm Exam, Friday, July 26, 2013 CSE 142, Summer 2013 Midterm Exam, Friday, July 26, 2013 Name: Section: TA: Student ID #: You have 60 minutes to complete this exam. You may receive a deduction if you keep working after the instructor

More information

JNIOR Series 3. Serial-to-Ethernet Manual. A Network I/O Resource Utilizing the JAVA Platform. Release 3.0. NOTE: JNIOR OS 3.1 or greater required

JNIOR Series 3. Serial-to-Ethernet Manual. A Network I/O Resource Utilizing the JAVA Platform. Release 3.0. NOTE: JNIOR OS 3.1 or greater required JNIOR Series 3 A Network I/O Resource Utilizing the JAVA Platform Serial-to-Ethernet Manual Release 3.0 NOTE: JNIOR OS 3.1 or greater required INTEG Process Group, Inc. 2919 East Hardies Rd, First Floor

More information

Introduction to the DLL for the USB Interface Board K8061

Introduction to the DLL for the USB Interface Board K8061 K8061.DLL 1 Introduction to the DLL for the USB Interface Board K8061 The K8061 interface board has 8 digital input channels and 8 digital output channels. In addition, there are 8 analogue inputs, 8 analogue

More information

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est

DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA (831) Fax (831) Est DYNAMIC ENGINEERING 150 DuBois, Suite 3 Santa Cruz, CA 95060 (831) 457-8891 Fax (831) 457-4793 www.dyneng.com sales@dyneng.com Est. 1988 PciAlt Driver Documentation Win32 Driver Model Revision D Corresponding

More information

Type Checking. Outline. General properties of type systems. Types in programming languages. Notation for type rules.

Type Checking. Outline. General properties of type systems. Types in programming languages. Notation for type rules. Outline Type Checking General properties of type systems Types in programming languages Notation for type rules Logical rules of inference Common type rules 2 Static Checking Refers to the compile-time

More information

Control of Flow. There are several Python expressions that control the flow of a program. All of them make use of Boolean conditional tests.

Control of Flow. There are several Python expressions that control the flow of a program. All of them make use of Boolean conditional tests. Control of Flow There are several Python expressions that control the flow of a program. All of them make use of Boolean conditional tests. If Statements While Loops Assert Statements 6 If Statements if

More information

Использование ассиметричных алгоритмов криптографического преобразования информации в приложениях Windows

Использование ассиметричных алгоритмов криптографического преобразования информации в приложениях Windows Государственное образовательное учреждение высшего профессионального образования «Петербургский государственный университет путей сообщения» Кафедра «Информационные и вычислительные системы» Лабораторная

More information

Outline. General properties of type systems. Types in programming languages. Notation for type rules. Common type rules. Logical rules of inference

Outline. General properties of type systems. Types in programming languages. Notation for type rules. Common type rules. Logical rules of inference Type Checking Outline General properties of type systems Types in programming languages Notation for type rules Logical rules of inference Common type rules 2 Static Checking Refers to the compile-time

More information

M-BUS/MODBUS CONFIGURATION SOFTWARE FOR GINEERS MMCR-64

M-BUS/MODBUS CONFIGURATION SOFTWARE FOR GINEERS MMCR-64 M-BUS/MODBUS CONFIGURATION SOFTWARE FOR GINEERS MMCR-64 U S E R M A N U A L TABLE OF CONTENTS 1. General information 3 2. Starting the program 4 3. Main window 4 3.1.Setting serial port 5 3.2.Setting general

More information

=0 Read/Write IER Interrupt Enable Register =1 Read/Write - Divisor Latch High Byte + 2

=0 Read/Write IER Interrupt Enable Register =1 Read/Write - Divisor Latch High Byte + 2 EEE 410 Microprocessors I Spring 04/05 Lecture Notes # 20 Outline of the Lecture Interfacing the Serial Port Serial Port registers Transmitting Serial Data Receiving Serial Data INTERFACING THE SERIAL

More information

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a.

REFERENCE MATERIALS. Assignment, Display, and Input Evaluates expression and assigns the result to the variable a. a expression Assignment, Display, and Input Evaluates expression and assigns the result to the variable a. DISPLAY (expression) Displays the value of expression, followed by a space. INPUT () Accepts a

More information

Lab1. Introduction to Python. Lab 4: Selection Statement. Eng. Mai Z. Alyazji

Lab1. Introduction to Python. Lab 4: Selection Statement. Eng. Mai Z. Alyazji Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Introduction to Computers Lab (ENGG 1003) Lab1 Introduction to Python Lab 4: Selection Statement Eng. Mai Z. Alyazji In this

More information

Welcome to the Bash Workshop!

Welcome to the Bash Workshop! Welcome to the Bash Workshop! If you prefer to work on your own, already know programming or are confident in your abilities, please sit in the back. If you prefer guided exercises, are completely new

More information

CIS 110 Spring 2013 Final Exam, 29 April 2013, Answer Key. Miscellaneous

CIS 110 Spring 2013 Final Exam, 29 April 2013, Answer Key. Miscellaneous CIS 110 1 CIS 110 Spring 2013 Final Exam, 29 April 2013, Answer Key Miscellaneous 0. (1 points) (a) Write your name, recitation number, and PennKey (username) on the front of the exam. (b) Sign the certification

More information

AUTO OM MGEN RUNTIME C source Runtime for AUTOMGEN Open Source 2008 IRAI

AUTO OM MGEN RUNTIME C source Runtime for AUTOMGEN Open Source 2008 IRAI AUTOMGEN RUNTIME C source Runtime for AUTOMGEN Open Source 2008 IRAI www.irai.com The purpose is to propose a free AUTOMGEN runtime which can be used to build AUTOMGEN compatible targets. The runtime

More information

CoDeSys Library Extension for EASY242 Applications. FBE - Library. Reference Guide for use with EASY242

CoDeSys Library Extension for EASY242 Applications. FBE - Library. Reference Guide for use with EASY242 CoDeSys FBE - Library Reference Guide for use with EASY242 frenzel + berg electronic GmbH & Co. KG Turmgasse 4 89073 Ulm Germany - phone +49(0)731/970 570 - fax +49(0)731/970 5739 www.frenzel-berg.de FbeE242Libraries_rev2.doc

More information

Homework 6: Big- & small-step semantics for LC

Homework 6: Big- & small-step semantics for LC Homework 6: Big- & small-step semantics for LC CIS 352: Programming Languages 23 February 2018, Version 2 Administrivia Typo corrections in red. Trade ideas with another student? Document it in your source

More information

Chapter 4: Control structures. Repetition

Chapter 4: Control structures. Repetition Chapter 4: Control structures Repetition Loop Statements After reading and studying this Section, student should be able to Implement repetition control in a program using while statements. Implement repetition

More information

Modbus Server. ARSoft International

Modbus Server. ARSoft International Modbus Server ARSoft International Description The ModBus server allows: The cyclic or acyclique interrogation of equipments connected to the serial comport COM1 to COM10. Up to 115200 Bauds. The communication

More information

EC 333 Microprocessor and Interfacing Techniques (3+1)

EC 333 Microprocessor and Interfacing Techniques (3+1) EC 333 Microprocessor and Interfacing Techniques (3+1) Lecture 6 8086/88 Microprocessor Programming (Arithmetic Instructions) Dr Hashim Ali Fall 2018 Department of Computer Science and Engineering HITEC

More information

LAMPIRAN A. Foto Alat

LAMPIRAN A. Foto Alat LAMPIRAN A Foto Alat A-1 A-2 Rangkaian Skematik PCB Sistem Monitoring Infus A-3 LAMPIRAN B Program pada Mikrokontroller AVR Atmega16...B-1 Program pada Borlan Delhpi 7.0...B-9 PROGRAM UTAMA /*****************************************************

More information

unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, CPort, LPComponent, SLCommonGen, SLSignalGen, Menus, SLComponentCollection, LPDrawLayers,

More information

All written answers are limited to their question boxes. Make sure all answers are easily legible.

All written answers are limited to their question boxes. Make sure all answers are easily legible. All written answers are limited to their question boxes. Make sure all answers are easily legible. 1. (1 point) Print your name and email id. 2. (2 points) What makes functions so important? Ability to

More information

/Users/Bruce/Documents/Devel/LocalizeString/main.c

/Users/Bruce/Documents/Devel/LocalizeString/main.c / main.c LocalizeString XFcn Created by Bruce Martin on 3/26/06. Copyright Martin Solution 2006. All rights reserved. / / Includes / #include "commonext_460.h" #include "InternalsToolbox_460.h" / Defines

More information

Engineering Innovation Center LabVIEW Basics

Engineering Innovation Center LabVIEW Basics Engineering Innovation Center LabVIEW Basics LabVIEW LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is a graphical programming language that uses icons instead of lines of text to create

More information