LabWindows/CVIBasicsICourseManualCourseSoftwareVersion3.0January1999EditionPartNumber320803F-01LabWindows/CVIBasicsICourseManualCopyrightCopyright©1998byNationalInstrumentsCorporation,11500NorthMopacExpressway,Austin,Texas78759.Underthecopyrightlaws,thispublicationmaynotbereproducedortransmittedinanyform,electronicormechanical,includingphotocopying,recording,storinginaninformationretrievalsystem,ortranslating,inwholeorinpart,withoutthepriorwrittenconsentofNationalInstrumentsCorporation.TrademarksCVI™,DAQCard™-700,DAQPad™-1200,NI-488.2™,NI-DAQ™,NI-VXI™,andTheSoftwareistheInstrument™aretrademarksofNationalInstrumentsCorporation.Productandcompanynameslistedaretrademarksortradenamesoftheirrespectivecompanies.InternetSupportE-mail:support@natinst.comFTPSite:ftp.natinst.comWebAddress::01635551422BBSFrance:0148651559Fax-on-DemandSupport5124181111TelephoneSupport(USA)Tel:5127958248Fax:5127945678InternationalOfficesAustralia0398795166,Austria06624579900,Belgium027570020,Brazil0112883336,Canada(Ontario)9057850085,Canada(Québec)5146948521,Denmark45762600,Finland0972572511,France0148142424,Germany0897413130,HongKong26453186,Israel036120092,Italy02413091,Japan0354722970,Korea025967456,Mexico55202635,Netherlands0348433466,Norway32848400,Singapore2265886,Spain916400085,Sweden087304970,Switzerland0562005151,Taiwan023771200,UnitedKingdom01635523545NationalInstrumentsCorporateHeadquarters11500NorthMopacAustin,Texas78759USATel:5126830100©Copyright1998NationalInstrumentsCorporation.Allrightsreserved.Contents©NationalInstrumentsCorporationiiiLabWindows/CVIBasicsICourseManualCourseSlidesandTextIntroduction.................................................................................................................1Lesson1—IntroductiontoLabWindows/CVI............................................................11Lesson2—CreatingaGraphicalUserInterface.........................................................46Lesson3—DataAcquisition.......................................................................................95Lesson4—FormattingandScanning..........................................................................129Lesson5—General-PurposeInterfaceBus.................................................................143Lesson6—SerialCommunication..............................................................................172Lesson7—InstrumentDrivers....................................................................................183Lesson8—StandaloneExecutables............................................................................209Lesson1ExercisesExercise1-1................................................................................................................1-1Exercise1-2................................................................................................................1-4Exercise1-3................................................................................................................1-8Exercise1-4................................................................................................................1-12Exercise1-5................................................................................................................1-19Exercise1-6................................................................................................................1-20Exercise1-7................................................................................................................1-24Lesson2ExercisesExercise2-1................................................................................................................2-1Exercise2-2................................................................................................................2-2Exercise2-3................................................................................................................2-6Exercise2-4................................................................................................................2-10Exercise2-5................................................................................................................2-12Exercise2-6................................................................................................................2-13Exercise2-7................................................................................................................2-15Exercise2-8(AdditionalChallengeExercise)...........................................................2-18ContentsLabWindows/CVIBasicsICourseManualiv©NationalInstrumentsCorporationLesson3ExercisesExercise3-1................................................................................................................3-1Exercise3-2................................................................................................................3-3Exercise3-3......................................................................................